/* Emanci — product website. One stylesheet, no build step.
   Design: a parcel in transit. The page is the cardboard; forms are shipping
   labels, steps are hang tags on a conveyor, the price is a receipt.
   Fonts are self-hosted (assets/fonts) so the site loads nothing from third
   parties until the checkout widgets are used. */

@font-face { font-family: "Stardos Stencil"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/stardos-stencil-400.woff2") format("woff2"); }
@font-face { font-family: "Stardos Stencil"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/stardos-stencil-700.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/space-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/space-mono-700.woff2") format("woff2"); }
@font-face { font-family: "Permanent Marker"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/permanent-marker-400.woff2") format("woff2"); }

:root {
  --kraft: #D3AE7E;
  --kraft-dark: #B88B52;
  --ink: #1B1A17;
  --paper: #FCF9F0;
  --paper-2: #F1EBD9;
  --stamp: #C8321B;
  --stamp-deep: #7B1D0F;
  --muted: #55503f;
  --stencil: "Stardos Stencil", "Courier New", monospace;
  --mono: "Space Mono", "Courier New", monospace;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-color: var(--kraft);
  background-image:
    repeating-linear-gradient(90deg, rgba(110, 70, 25, .06) 0 2px, transparent 2px 7px),
    radial-gradient(ellipse at 15% 0%, rgba(255, 240, 205, .35), transparent 55%),
    radial-gradient(ellipse at 95% 100%, rgba(90, 50, 10, .22), transparent 55%);
}

.page { position: relative; overflow: hidden; isolation: isolate; }
.page-inner { position: relative; z-index: 1; }
.noise { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: multiply; opacity: .32; }

a { color: inherit; }
code { font-family: var(--mono); font-weight: 700; }
h1, h2, h3, p, ul { margin-top: 0; }

.w { max-width: 1200px; margin: 0 auto; padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); }
.st { font-family: var(--stencil); text-transform: uppercase; }
.mk { font-family: var(--marker); }
.label-cap { font-size: 11px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; }

:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; }

/* ---------- Materials ---------- */

.paper {
  position: relative;
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 1px rgba(60, 35, 10, .4), 0 18px 28px -14px rgba(60, 35, 10, .65);
}

.tape {
  position: absolute;
  height: 34px;
  width: 150px;
  z-index: 3;
  background: linear-gradient(180deg, rgba(248, 238, 196, .93), rgba(224, 206, 138, .9));
  clip-path: polygon(0 0, 100% 0, 97% 16%, 100% 33%, 97% 50%, 100% 66%, 97% 83%, 100% 100%, 0 100%, 3% 83%, 0 66%, 3% 50%, 0 33%, 3% 16%);
}

.tagwrap { filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .4)); }
.tag {
  position: relative;
  background: linear-gradient(180deg, var(--paper), #EDE5D0);
  clip-path: polygon(16% 0, 84% 0, 100% 8%, 100% 100%, 0 100%, 0 8%);
}
.htag {
  position: relative;
  background: linear-gradient(270deg, #EDE5D0, var(--paper) 12%);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%);
}

/* ---------- Buttons and fields ---------- */

.btn3d {
  display: inline-block;
  font-family: var(--stencil);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .06em;
  font-size: 20px;
  line-height: 1.2;
  color: var(--paper);
  background: linear-gradient(180deg, #DB4A31, var(--stamp));
  border: 0;
  border-radius: 8px;
  padding: 17px 28px 15px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 6px 0 var(--stamp-deep), 0 12px 16px rgba(50, 20, 5, .4);
  transition: transform .08s, box-shadow .08s;
}
.btn3d:hover { transform: translateY(1px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 5px 0 var(--stamp-deep), 0 10px 14px rgba(50, 20, 5, .4); }
.btn3d:active { transform: translateY(5px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 1px 0 var(--stamp-deep), 0 3px 6px rgba(50, 20, 5, .4); }
.btn3d:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-ink { background: linear-gradient(180deg, #3B352E, var(--ink)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), 0 6px 0 #000, 0 12px 16px rgba(50, 20, 5, .4); }
.btn-ink:hover { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), 0 5px 0 #000, 0 10px 14px rgba(50, 20, 5, .4); }
.btn-ink:active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1), 0 1px 0 #000, 0 3px 6px rgba(50, 20, 5, .4); }
.btn-small { font-size: 14px; padding: 10px 18px 8px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), 0 4px 0 #000, 0 8px 10px rgba(50, 20, 5, .4); }

.field {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 19px;
  color: var(--ink);
  background: #FBF8EF;
  border: 1px solid #B5A889;
  border-radius: 4px;
  padding: 13px 14px;
  box-shadow: inset 0 3px 5px rgba(60, 35, 10, .25), 0 1px 0 #fff;
}
.field::placeholder { color: #857a62; }

/* ---------- Header ---------- */

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.wordmark { font-weight: 700; font-size: 30px; letter-spacing: .04em; text-decoration: none; }
.header-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 14px; font-weight: 700; }
.nl { text-decoration: none; padding: 2px 4px; border-radius: 3px; }
.nl:hover { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */

.hero .w { padding-top: clamp(16px, 3vw, 40px); padding-bottom: clamp(56px, 7vw, 100px); }
.hero-title {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: clamp(3.2rem, 10.5vw, 9.6rem);
  line-height: .92;
  letter-spacing: .01em;
  text-shadow: 0 1px 0 rgba(255, 235, 200, .5);
}
.hero-lead { margin: 0 0 clamp(28px, 4vw, 48px); max-width: 38rem; font-size: clamp(15px, 1.6vw, 18px); }

.scene { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 0; max-width: 1100px; margin-bottom: clamp(40px, 5vw, 64px); }

.window { flex: 0 0 200px; border-radius: 8px; overflow: hidden; transform: rotate(-2deg); }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: linear-gradient(180deg, #E9E3D2, #CFC7B1); border-bottom: 1px solid #A89E86; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: radial-gradient(circle at 35% 30%, #ff9a8a, var(--stamp)); }
.dot-y { background: radial-gradient(circle at 35% 30%, #ffe58a, #d9a21c); }
.dot-g { background: radial-gradient(circle at 35% 30%, #b6e59a, #4d9a2c); }
.window-url { flex: 1; margin-left: 6px; background: #FBF8EF; border-radius: 9px; padding: 1px 8px; font-size: 10px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); white-space: nowrap; overflow: hidden; }
.window-body { padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.window-img { height: 46px; background: repeating-linear-gradient(135deg, #d8cfb8 0 6px, #cfc5ab 6px 12px); }
.window-line { height: 7px; background: #cfc6ae; }

.carry { flex: 1 1 240px; min-width: 0; padding: 0 6px; }
.carry-note { margin: 0 0 4px 12px; font-size: 17px; transform: rotate(-2deg); }

.box3d { flex: 0 0 176px; position: relative; height: 150px; transform: rotate(1.5deg); }
.box3d-top { position: absolute; left: 10px; right: 10px; top: 0; height: 40px; background: linear-gradient(180deg, #EACB98, #DDB880); clip-path: polygon(9% 0, 91% 0, 100% 100%, 0 100%); }
.box3d-front { position: absolute; left: 0; right: 0; top: 38px; bottom: 0; background: linear-gradient(180deg, #CFA46B, var(--kraft-dark)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 16px 18px -8px rgba(50, 25, 5, .6); }
.box3d-tape { position: absolute; left: 50%; top: -38px; width: 34px; height: 64px; transform: translateX(-50%); background: linear-gradient(90deg, rgba(248, 238, 196, .5), rgba(240, 226, 160, .8), rgba(248, 238, 196, .5)); }
.box3d-up { position: absolute; left: 12px; bottom: 10px; margin: 0; font-weight: 700; font-size: 11px; line-height: 1.15; letter-spacing: .08em; opacity: .85; }
.box3d-arrows { position: absolute; right: 10px; bottom: 10px; }
.box3d-label { position: absolute; left: 12px; top: 30px; padding: 3px 7px; font-size: 9px; font-weight: 700; transform: rotate(-3deg); }

/* ---------- The shipping label (the checkout) ---------- */

.label { max-width: 1100px; border: 3px solid var(--ink); border-radius: 3px; }
.label .tape-l { left: 6%; top: -17px; transform: rotate(-4deg); }
.label .tape-r { right: 6%; top: -17px; transform: rotate(3deg); }
.label-route { display: flex; flex-wrap: wrap; border-bottom: 3px solid var(--ink); }
.label-route > div { flex: 1 1 300px; min-width: 0; padding: 20px 24px; }
.label-route > div + div { border-left: 3px solid var(--ink); }
.label-route p { margin: 0; }
.label-route .big { margin-top: 2px; font-size: 18px; font-weight: 700; }
.label-route .small { font-size: 13px; }

.label-fields { display: flex; flex-wrap: wrap; gap: 20px 24px; padding: 26px 24px 30px; align-items: flex-end; }
.label-fields .f-url { flex: 2 1 280px; min-width: 0; }
.label-fields .f-email { flex: 1.4 1 220px; min-width: 0; }
.label-fields .f-go { flex: 1 1 200px; }
.label-fields label { display: block; margin: 0 0 7px; }

.label-status { padding: 0 24px 26px; }
.label-status:empty { padding: 0; }
.turnstile { margin: 0 0 14px; min-height: 0; }

.label-cut { border-top: 3px dashed var(--ink); }
.label-foot { display: flex; flex-wrap: wrap; align-items: stretch; }
.label-foot > div { padding: 18px 24px; }
.label-foot .l-text { flex: 2 1 320px; min-width: 0; font-size: 14px; }
.label-foot .l-text p { margin: 0; }
.label-foot .l-text .mk { margin-top: 10px; font-size: 18px; color: var(--stamp); transform: rotate(-1.5deg); transform-origin: left; }
.label-foot .l-code { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; border-left: 3px solid var(--ink); }
.barcode { height: 46px; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 14px, transparent 14px 16px); }
.l-code p { margin: 0; font-size: 11px; letter-spacing: .14em; }

.stamp {
  position: absolute;
  right: clamp(10px, 3vw, 44px);
  top: -30px;
  z-index: 4;
  transform: rotate(7deg);
  border: 4px double var(--stamp);
  color: var(--stamp);
  padding: 5px 16px;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 2.2rem);
  letter-spacing: .08em;
  background: rgba(252, 249, 240, .88);
  mix-blend-mode: multiply;
}

/* Checkout feedback boxes (the classes checkout.js sets) */

.box { padding: 12px 14px; border: 2px solid var(--ink); border-radius: 3px; background: #FBF8EF; font-size: 13.5px; margin-top: 14px; box-shadow: inset 0 2px 4px rgba(60, 35, 10, .15); }
.box.ok { border-color: #2f6b34; background: #E3EED6; }
.box.err { border-color: var(--stamp); background: #F7DFD7; }
.box.warn { border-color: #8a6a00; background: #F6EBBB; }
.price-line { margin-top: 8px; }
#paypal-button-container { margin-top: 16px; }
.mode-pill { font-weight: 700; color: var(--stamp); }

/* ---------- Conveyor belts ---------- */

.beltwrap { position: relative; height: 78px; }
.belt { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; border-radius: 13px; background: linear-gradient(180deg, #4a443d, #1d1b18); box-shadow: 0 8px 10px rgba(0, 0, 0, .4), inset 0 2px 0 rgba(255, 255, 255, .14); overflow: hidden; }
.belt::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 3px, transparent 3px 26px); animation: roll .9s linear infinite; }
.chip { position: absolute; top: 10px; width: 56px; height: 38px; z-index: 2; animation: ride 9s linear infinite; }
.chip span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--ink); background: linear-gradient(180deg, var(--paper), #EAE2CC); border: 1px solid #9d9072; box-shadow: 0 5px 5px -2px rgba(0, 0, 0, .45); clip-path: polygon(0 0, 78% 0, 100% 24%, 100% 100%, 0 100%); }

@keyframes ride {
  0%   { left: -70px; opacity: 0; transform: rotate(-4deg); }
  8%   { opacity: 1; }
  84%  { opacity: 1; transform: rotate(1deg); }
  100% { left: calc(100% - 44px); opacity: 0; transform: rotate(7deg) scale(.5); }
}
@keyframes roll { to { background-position-x: -26px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .belt::before, .chip { animation: none !important; }
  .chip { opacity: 1 !important; }
}

/* ---------- Sections ---------- */

.section-title { margin: 0 0 28px; font-weight: 700; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; }

.line {
  background: linear-gradient(180deg, #201A15, #2E261E 40%, #201A15);
  box-shadow: inset 0 14px 18px -8px rgba(0, 0, 0, .6), inset 0 -14px 18px -8px rgba(0, 0, 0, .6);
  color: var(--paper);
}
.line .w { padding-top: clamp(44px, 6vw, 80px); padding-bottom: clamp(40px, 5vw, 64px); }
.line .kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; color: var(--kraft); }
.rail { height: 10px; border-radius: 5px; background: linear-gradient(180deg, #8d8c88, #4f4e4b); box-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
.stops { display: flex; flex-wrap: wrap; gap: 0 22px; margin-bottom: 10px; }
.stop { flex: 1 1 230px; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.stop-string { width: 2px; height: 26px; background: #cfc7b0; }
.stop .tagwrap { width: 100%; }
.stop .tag { color: var(--ink); padding: 34px 20px 22px; min-height: 180px; }
.stop .hole { position: absolute; left: 50%; top: 10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #2E261E; box-shadow: inset 0 2px 3px #000; }
.stop .status { margin: 0 0 4px; font-size: 11px; letter-spacing: .14em; font-weight: 700; color: #7a6f57; }
.stop .status.final { color: var(--stamp); }
.stop h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.25; }
.stop p:last-child { margin: 0; font-size: 13.5px; }
.line .beltwrap { margin-top: 18px; }

.inside .w { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.inside .section-title { margin-bottom: 8px; }
.inside-lead { margin: 0 0 clamp(24px, 3vw, 40px); max-width: 36rem; }
.crate { max-width: 1080px; padding: 14px; background: linear-gradient(180deg, #E3C595, #C9A06A); border-radius: 4px; box-shadow: 0 20px 30px -14px rgba(50, 25, 5, .7); }
.crate-in { background: linear-gradient(180deg, #8E6B3F, #A88050 60%, #B38A58); padding: clamp(20px, 3vw, 40px); box-shadow: inset 0 10px 22px rgba(30, 15, 0, .65), inset 0 0 0 2px rgba(40, 20, 0, .3); display: flex; flex-wrap: wrap; gap: 30px 28px; align-items: flex-start; }
.crate-in > * { min-width: 0; }
.item-sheet { flex: 1 1 230px; padding: 18px 18px 20px; transform: rotate(-1.5deg); }
.item-sheet .name { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.item-sheet .code { margin: 0 0 10px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.item-sheet p:last-child { margin: 0; font-size: 13.5px; }
.item-folder { flex: 1 1 230px; position: relative; padding-top: 20px; transform: rotate(1.2deg); }
.item-folder .tab { position: absolute; left: 0; top: 0; width: 90px; height: 24px; background: #DDB35F; border-radius: 6px 6px 0 0; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4); }
.item-folder .body { background: linear-gradient(180deg, #EAC77C, #D9AF5B); padding: 18px 18px 20px; border-radius: 0 6px 6px 6px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 14px 22px -10px rgba(30, 15, 0, .8); }
.item-folder .name { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.item-folder .prints { display: flex; gap: 8px; margin-bottom: 12px; }
.item-folder .prints span { width: 44px; height: 34px; }
.item-folder .prints span:nth-child(1) { background: repeating-linear-gradient(135deg, #d8cfb8 0 5px, #c9bfa4 5px 10px); transform: rotate(-5deg); }
.item-folder .prints span:nth-child(2) { background: repeating-linear-gradient(45deg, #cbd2c0 0 5px, #b9c2ab 5px 10px); transform: rotate(3deg); }
.item-folder .prints span:nth-child(3) { background: repeating-linear-gradient(135deg, #e1c9b9 0 5px, #d1b6a3 5px 10px); transform: rotate(-2deg); }
.item-folder .body p:last-child { margin: 0; font-size: 13.5px; }
.item-note { flex: 1 1 220px; background: linear-gradient(180deg, #F7E87F, #F0DA5F); padding: 20px 20px 24px; transform: rotate(-3deg); box-shadow: 0 14px 18px -8px rgba(30, 15, 0, .7), inset 0 -14px 14px -10px rgba(150, 110, 0, .35); }
.item-note .name { margin: 0 0 6px; font-size: 22px; line-height: 1.1; }
.item-note p:last-child { margin: 0; font-size: 13.5px; }
.item-book { flex: 1 1 220px; background: linear-gradient(90deg, #26303f, #33415a 8%, #2c3850); padding: 20px 20px 22px 26px; color: var(--paper); transform: rotate(2deg); box-shadow: 0 14px 18px -8px rgba(30, 15, 0, .8), inset 4px 0 0 rgba(0, 0, 0, .35); }
.item-book .name { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.item-book p:last-child { margin: 0; font-size: 13.5px; }

.pricing .w { padding-bottom: clamp(56px, 7vw, 100px); display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; }
.printer { flex: 1 1 440px; min-width: 0; max-width: 520px; }
.printer-slot { height: 26px; background: linear-gradient(180deg, #4a443d, #161412); border-radius: 13px; box-shadow: 0 6px 10px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .14); position: relative; z-index: 2; }
.receipt { margin: -6px 18px 12px; padding: 30px 24px 34px; box-shadow: 0 18px 22px -14px rgba(60, 35, 10, .7); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; background: linear-gradient(135deg, var(--paper-2) 5px, transparent 0) 0 0 / 14px 10px, linear-gradient(225deg, var(--paper-2) 5px, transparent 0) 0 0 / 14px 10px; }
.receipt .brand { margin: 0; text-align: center; font-weight: 700; font-size: 24px; letter-spacing: .1em; }
.receipt .sub { margin: 0 0 16px; text-align: center; font-size: 11px; letter-spacing: .14em; }
.receipt .rows { border-top: 2px dashed #8d8063; padding-top: 14px; font-size: 13.5px; display: flex; flex-direction: column; gap: 8px; }
.lead-row { display: flex; gap: 8px; align-items: baseline; }
.lead-row i { flex: 1; border-bottom: 2px dotted #8d8063; transform: translateY(-4px); }
.receipt .total { border-top: 2px dashed #8d8063; margin-top: 16px; padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.receipt .total b { letter-spacing: .1em; }
.receipt .total .amount { font-weight: 700; font-size: clamp(2.8rem, 6vw, 4rem); line-height: 1; }
.receipt .fine { margin: 8px 0 0; text-align: center; font-size: 11px; letter-spacing: .12em; }
.price-aside { flex: 1 1 280px; min-width: 0; padding-top: clamp(0px, 3vw, 40px); }
.price-aside h2 { margin: 0 0 14px; font-weight: 700; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.price-aside p { margin: 0 0 30px; max-width: 26rem; }

.faq .w { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); max-width: 900px; }
.tags { display: flex; flex-direction: column; gap: 16px; }
.htag { padding: 18px 52px 18px 22px; }
.htag .hole { position: absolute; right: 20px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--kraft-dark); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .7); }
.htag summary { display: flex; justify-content: flex-start; align-items: center; gap: 16px; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.htag summary::-webkit-details-marker { display: none; }
.htag .tog { order: -1; flex: none; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.htag[open] .tog { background: var(--ink); color: var(--paper); }
.htag .tog::before { content: "+"; }
.htag[open] .tog::before { content: "\2013"; }
.htag p { margin: 10px 0 0 42px; max-width: 38rem; font-size: 14px; }

/* ---------- Footer ---------- */

.site-footer { background: linear-gradient(180deg, #3A2E22, #241C14); color: var(--paper); box-shadow: inset 0 10px 16px -8px rgba(0, 0, 0, .6); }
.footer-inner { padding-top: 30px; padding-bottom: 30px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; font-size: 13px; }
.footer-who { display: flex; flex-direction: column; gap: 4px; }
.footer-who p { margin: 0; }
.footer-who a { text-decoration: underline; }
.footer-care { margin: 0; font-weight: 700; letter-spacing: .14em; color: var(--kraft); }
.site-footer nav { display: flex; gap: 22px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }

/* ---------- Legal pages: a document on the box ---------- */

.legal .w { padding-top: clamp(16px, 3vw, 40px); padding-bottom: clamp(56px, 7vw, 100px); }
.doc { max-width: 860px; border: 3px solid var(--ink); border-radius: 3px; padding: clamp(24px, 4vw, 48px); margin-top: 18px; }
.doc .tape-l { left: 8%; top: -17px; transform: rotate(-3deg); }
.doc .tape-r { right: 8%; top: -17px; transform: rotate(4deg); }
.doc .kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; color: var(--stamp); font-weight: 700; }
.doc h1 { margin: 0 0 10px; font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1; }
.doc .updated { margin: 0 0 28px; font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.doc .summary { margin: 0 0 32px; padding: 16px 18px; border: 2px dashed var(--ink); background: rgba(255, 255, 255, .45); font-size: 14.5px; }
.doc .summary p { margin: 0; }
.doc h2 { margin: 34px 0 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding-top: 14px; border-top: 2px solid var(--ink); }
.doc p, .doc li { font-size: 14.5px; line-height: 1.7; max-width: 66ch; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc a { text-decoration: underline; }
.doc .back { display: inline-block; margin-top: 30px; font-weight: 700; }

/* ---------- Narrow screens ---------- */

@media (max-width: 720px) {
  .header-inner nav a.nl { display: none; }
  .label-route > div + div { border-left: 0; border-top: 3px solid var(--ink); }
  .label-foot .l-code { border-left: 0; border-top: 3px solid var(--ink); }
  .window { flex-basis: 100%; max-width: 240px; }
  .box3d { flex-basis: 100%; max-width: 176px; margin-top: 8px; }
}
