/* Tilliver holding page · "Tea Merchant" brand
   Mobile-first. Tokens from the brand decision of 31 Oct 2026.
   index.html carries this file INLINED (no render-blocking request). After editing
   it, run `python3 ../inline-css.py` so the homepage picks the change up. The
   secondary pages (privacy.html, 404.html) link it directly. */

/* Self-hosted fonts (Google Fonts' own latin + latin-ext subsets, unmodified, OFL:
   fonts/OFL.txt). No request leaves tilliver.com for a font. latin-ext only downloads
   if a character in its range is on screen. */
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/young-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/young-serif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --leaf: #2F4540;        /* hero, text, headings */
  --leaf-deep: #1E2B28;   /* text on brass, bezel */
  --brass: #D4A24A;       /* buttons, focus. Never small text. */
  --brass-hover: #C4913A;
  --clay: #9A6951;        /* badges (white text), large numerals only */
  --paper: #F4EEDF;       /* ground */
  --surface: #FFFDF7;
  --stone: #4F5957;       /* secondary text */
  --walnut: #7A4E39;      /* links */
  --hair: #DCD2BC;        /* hairlines */
  --paid: #2F6B4F;
  --error: #A8382B;
  --warn-bg: #F1E2C2;
  --warn: #6B4A12;
  --on-dark: #F4EEDF;
  --on-dark-2: #C9D3CF;   /* 6.7:1 on leaf */

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max: 76rem;
  --tooth: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--leaf);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--walnut); text-underline-offset: .18em; text-decoration-thickness: 1px; }
@media (hover: hover) { a:hover { text-decoration-thickness: 2px; } }

/* Focus: brass ring with a leaf inner ring, so it reads on paper and on leaf */
:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--leaf);
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--brass); color: var(--leaf-deep); padding: .6rem 1rem; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- shared type ---------- */
.kicker {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: .75rem;
}
.kicker::before { content: ""; width: 1.75rem; height: 2px; background: var(--brass); flex: none; }
.kicker--dark { color: var(--walnut); }
.kicker--dark::before { background: var(--clay); }

.h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--leaf);
  text-wrap: balance;
  max-width: 22ch;
}
.h2--light { color: var(--on-dark); max-width: 28ch; }
.h3 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }

.sec-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }


/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3.25rem;
  padding: .85rem 1.5rem;
  background: var(--brass); color: var(--leaf-deep);
  border: 0; border-radius: 3px;
  font: 600 1.0625rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(30, 43, 40, .18);
  transition: background-color .15s ease, transform .15s ease;
}
.btn::after { content: "→"; font-weight: 500; transition: transform .15s ease; }
@media (hover: hover) {
  .btn:hover { background: var(--brass-hover); }
  .btn:hover::after { transform: translateX(3px); }
}
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; }

.textlink { font-weight: 600; }

/* 44px hit areas for the small text links, without moving a pixel of what you see:
   a transparent box at least 44px tall, centred on the link. */
a.wordmark, .masthead__cta, .textlink, .backlink, .check { position: relative; }
a.wordmark::after, .masthead__cta::after, .textlink::after, .backlink::after, .check::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: max(100%, 44px); transform: translateY(-50%);
}
.textlink--light { color: var(--on-dark); }

/* ---------- masthead ---------- */
.masthead { background: var(--leaf); color: var(--on-dark); border-bottom: 1px solid rgba(244, 238, 223, .14); }
.masthead__inner { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.wordmark {
  font-family: var(--serif); font-size: 1.6rem; line-height: 1;
  color: var(--on-dark); text-decoration: none; letter-spacing: -.01em;
}
.wordmark--small { font-size: 1.3rem; }
.masthead__cta {
  margin-left: auto; color: var(--on-dark); font-weight: 600; font-size: .95rem;
  text-decoration: none; border-bottom: 2px solid var(--brass); padding: .35rem 0 .15rem;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--leaf);
  color: var(--on-dark);
  padding: clamp(2.75rem, 8vw, 6rem) 0 calc(clamp(3.5rem, 8vw, 6.5rem) + var(--tooth));
  /* receipt tear along the bottom edge */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
}
.hero__grid { display: grid; gap: clamp(2.75rem, 7vw, 4rem); align-items: center; }
.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 1.5rem + 4.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
  max-width: 12ch;
  margin-bottom: 1.5rem;
}
.hero__title em { font-style: normal; color: var(--brass); } /* large only: 4.4:1, passes AA large */
.hero__lede { font-size: clamp(1.125rem, 1rem + .5vw, 1.3rem); line-height: 1.5; color: var(--on-dark-2); max-width: 30ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem 2rem; }
.hero__cta { display: grid; gap: .75rem; justify-items: start; }
.hero__small { font-size: .95rem; line-height: 1.45; color: var(--on-dark-2); margin: 0; max-width: 24rem; }
.hero__actions .textlink { padding-top: .9rem; }

@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4.5rem; }
}

/* ---------- product visual: till + ticket ---------- */
.counter {
  margin: 0;
  position: relative;
  container-type: inline-size;
  padding-bottom: 7.25rem; /* the kitchen ticket hangs below the till */
}
.counter__stage { position: relative; }
.till {
  --u: clamp(7.5px, 2.5cqi, 14px);
  font-size: var(--u);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  background: var(--leaf-deep);
  border-radius: 1.6em;
  padding: 1.1em;
  box-shadow:
    0 0 0 1px rgba(244, 238, 223, .08),
    0 2.5em 4em -1.5em rgba(0, 0, 0, .55);
  color: var(--leaf);
}
.till__bar {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--leaf); color: var(--on-dark);
  border-radius: .7em .7em 0 0;
  padding: .7em 1.1em; font-weight: 600; font-size: 1.05em;
}
.till__shop { font-family: var(--serif); font-weight: 400; font-size: 1.15em; }
.till__time { color: var(--on-dark-2); font-size: .95em; }
.till__body {
  display: grid; grid-template-columns: 1.35fr 1fr;
  background: var(--surface);
  border-radius: 0 0 .7em .7em;
  min-height: 25em;
  overflow: hidden;
}
.till__menu { padding: 1em; background: var(--paper); }
.till__tabs { display: flex; gap: .4em; margin-bottom: .9em; font-weight: 600; font-size: .95em; }
.till__tabs span { padding: .35em .7em; border-radius: 99em; color: var(--stone); }
.till__tabs .is-on { background: var(--leaf); color: var(--on-dark); }
.till__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55em; }
.key {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 1 / .82;
  padding: .65em .7em;
  border-radius: .5em;
  font-weight: 600; font-size: 1em; line-height: 1.15;
  color: var(--leaf);
  box-shadow: inset 0 -.2em 0 rgba(47, 69, 64, .1);
}
.key b { font-weight: 500; color: var(--stone); font-size: .95em; }
.key--a { background: #E8D9BA; }
.key--b { background: #D9E3DD; }
.key--c { background: #EBD5C6; }
.key--d { background: #FFFDF7; box-shadow: inset 0 0 0 1px var(--hair); }
.key--low { background: var(--warn-bg); box-shadow: inset 0 0 0 .14em #D9B66F; }
.key b { display: flex; justify-content: space-between; align-items: center; gap: .3em; }
.key--low i {
  font-style: normal; font-size: .78em; font-weight: 700;
  background: var(--warn); color: #FFF7E6; padding: .1em .45em; border-radius: 99em;
}

.till__order { display: flex; flex-direction: column; padding: 1em 1.05em; border-left: 1px solid var(--hair); }
.till__head { display: flex; flex-direction: column; gap: .6em; font-weight: 700; font-size: 1.05em; margin-bottom: .6em; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: .45em; padding: .2em; font-size: .85em; font-weight: 600; }
.seg span { text-align: center; padding: .35em 0; border-radius: .3em; color: var(--stone); }
.seg .is-on { background: var(--leaf); color: var(--on-dark); }
.lines { list-style: none; margin: 0; padding: 0; flex: 1; }
.lines li {
  display: grid; grid-template-columns: 1fr auto 3.2em; gap: .5em; align-items: baseline;
  padding: .5em 0; border-bottom: 1px dashed var(--hair); font-size: .98em;
}
.lines span { font-weight: 600; }
.lines b { font-weight: 600; text-align: right; }
.lines em {
  font-style: normal; font-size: .78em; font-weight: 700; letter-spacing: .02em;
  color: var(--stone);
}
.lines em:empty { visibility: hidden; }
.lines em.zero { background: var(--paid); color: #fff; padding: .05em .4em; border-radius: .3em; }
.lines li:has(+ .sub) { border-bottom: 0; padding-bottom: .15em; }
.lines .sub { padding-top: 0; }
.lines .sub:has(+ .sub) { border-bottom: 0; }
.lines .sub span { font-weight: 500; color: var(--stone); padding-left: .6em; }
.lines .allergen { border-bottom: 1px dashed var(--hair); padding-bottom: .5em; }
.lines .allergen span { color: var(--clay); font-weight: 600; font-size: .9em; }
.lines .allergen span::before { content: "▲ "; font-size: .7em; vertical-align: .15em; }
.till__total { display: flex; justify-content: space-between; align-items: baseline; padding: .8em 0 .7em; font-weight: 700; }
.till__total b { font-weight: 700; font-size: 1.5em; letter-spacing: -.01em; }
.till__pay {
  display: block; text-align: center; background: var(--brass); color: var(--leaf-deep);
  font-weight: 700; padding: .85em; border-radius: .5em; font-size: 1.05em;
  box-shadow: inset 0 -.2em 0 rgba(30, 43, 40, .18);
}

/* the printed kitchen ticket */
.ticket {
  position: absolute;
  left: 7%;
  top: calc(100% - 1.6rem);
  width: clamp(9.5rem, 38cqi, 13.5rem);
  transform: rotate(2.2deg);
  transform-origin: top center;
  filter: drop-shadow(0 .9rem 1rem rgba(0, 0, 0, .35));
}
.ticket__in {
  background: var(--surface);
  color: var(--leaf-deep);
  font-family: var(--mono);
  font-size: clamp(.68rem, 2.1cqi, .82rem);
  line-height: 1.45;
  padding: 1em 1.1em calc(1.2em + 8px);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
}
/* till.js hides the ticket until the till is half in view, then prints it once.
   Without JS, or with reduced motion, the ticket is simply shown. */
.js-ink .counter .ticket { visibility: hidden; }  /* html.js-ink is set in <head>, before first paint */
.js-ink .counter .ticket.is-printing { visibility: visible; }
.ticket.is-printing .ticket__in { animation: print 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.ticket p { margin: 0; }
.ticket__h { display: flex; justify-content: space-between; font-weight: 700; letter-spacing: .12em; border-bottom: 2px solid var(--leaf-deep); padding-bottom: .35em; margin-bottom: .45em !important; }
.ticket__meta { color: var(--stone); }
.ticket__item { font-size: 1.35em; font-weight: 700; margin: .4em 0 !important; letter-spacing: -.01em; }
.ticket__note { background: var(--leaf-deep); color: var(--surface); padding: .2em .45em; display: inline-block; font-weight: 700; font-size: .9em; letter-spacing: .04em; }
.ticket__foot { color: var(--hair); letter-spacing: .1em; margin-top: .5em !important; overflow: hidden; white-space: nowrap; }

@keyframes print {
  from { clip-path: inset(0 0 100% 0); transform: translateY(-1.5rem); }
  to   { clip-path: inset(0 0 0 0);    transform: translateY(0); }
}

@media (min-width: 62rem) {
  .ticket { left: 9%; }
}

/* ---------- story ---------- */
.story { padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.story__grid { display: grid; gap: 1.75rem; }
.margin-note { margin: 0; display: flex; align-items: baseline; gap: .9rem; }
.margin-note__fig { font-family: var(--serif); font-size: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); line-height: .9; color: var(--clay); letter-spacing: -.03em; }
.margin-note__cap { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); line-height: 1.4; }
.story__body { max-width: 40rem; }
.story__body .h2 { margin-bottom: 1.5rem; }
.story__lead { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem); line-height: 1.4; color: var(--leaf); margin-bottom: 1.25rem; }
.story__body > p:not(.story__lead) { color: var(--stone); font-size: 1.125rem; max-width: 36rem; }

@media (min-width: 56rem) {
  .story__grid { grid-template-columns: 14rem minmax(0, 1fr); gap: 3rem; }
  .margin-note { flex-direction: column; gap: .75rem; padding-top: .4rem; border-top: 2px solid var(--leaf); padding-top: 1.25rem; }
}

/* ---------- ledger (features) ---------- */
.ledger-sec { padding: 0 0 clamp(4rem, 10vw, 8rem); }
.ledger-sec .wrap { border-top: 0; }
.ledger-sec .sec-head { padding-top: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--hair); }
.ledger {
  list-style: none; margin: 0; padding: 0;
  border-top: 2px solid var(--leaf);
  border-bottom: 2px solid var(--leaf);
}
.ledger__row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  column-gap: 1.1rem;
  padding: 1.6rem 0 1.75rem;
  border-bottom: 1px solid var(--hair);
  position: relative;
}
.ledger__row:last-child { border-bottom: 0; }
/* the double margin rule of an account book */
.ledger__row::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 3.25rem;
  width: 4px; border-left: 1px solid var(--clay); border-right: 1px solid var(--clay); opacity: .55;
}
.ledger__no {
  grid-row: span 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: .35rem;
  font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: var(--clay);
  font-variant-numeric: tabular-nums;
}
.ledger__title, .ledger__text { padding-left: .9rem; }
.ledger__title { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); line-height: 1.2; margin-bottom: .55rem; text-wrap: balance; }
.ledger__text { color: var(--stone); margin: 0; max-width: 38rem; }

@media (min-width: 56rem) {
  .ledger__row { grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 2.5rem; padding: 2.1rem 0 2.25rem; align-items: baseline; }
  .ledger__row::before { left: 5.5rem; }
  .ledger__no { grid-row: auto; font-size: 2.25rem; }
  .ledger__title { margin: 0; padding-left: 1.5rem; }
  .ledger__text { padding-left: 0; }
}

/* hand-drawn tick beside each ledger number; ink.js draws it once as the row scrolls in */
.tick { flex: none; width: 2rem; height: 1.6rem; overflow: visible; }
.tick__shape { fill: var(--leaf); }
/* the mask stroke follows the pen's path; drawing it reveals the tapered tick */
.tick__ink {
  fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 46 60; stroke-dashoffset: 0;
}
.js-ink .tick__ink { stroke-dashoffset: 51; }  /* fully hidden, caps included */
.js-ink .is-ticked .tick__ink { stroke-dashoffset: 0; transition: stroke-dashoffset .65s cubic-bezier(.45, .05, .35, 1) var(--d, 0s); }
@media (min-width: 56rem) {
  .ledger__no { flex-direction: row; align-items: center; gap: .7rem; }
  .tick { width: 2.4rem; height: 1.9rem; }
}

/* ---------- beta ---------- */
.beta {
  background: var(--leaf); color: var(--on-dark);
  padding: clamp(4rem, 10vw, 7.5rem) 0;
}
.account { position: relative; display: grid; gap: 2.5rem; padding-top: 2rem; }
.account::before { /* the double rule across the top of the account */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  border-top: 1px solid rgba(244, 238, 223, .5); border-bottom: 1px solid rgba(244, 238, 223, .5);
}
/* every rule is a pseudo-element so ink.js can rule it left to right, once */
.account::before, .account__h::after, .account__list li::after { transform-origin: left center; }
.js-ink .account__h::after, .js-ink .account__list li::after { transform: scaleX(0); }
.js-ink .account.is-ruled::before,
.js-ink .account__col.is-ruled .account__h::after,
.js-ink .account__col.is-ruled .account__list li::after {
  transform: scaleX(1);
  transition: transform .25s cubic-bezier(.4, 0, .3, 1) var(--d, 0s);
}
.account__h {
  font-family: var(--sans); font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-dark-2); padding-bottom: .9rem; margin-bottom: .4rem;
  position: relative;
}
.account__h::after, .account__list li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(244, 238, 223, .2);
}
.account__list li::after { background: rgba(244, 238, 223, .12); }
.account__list { list-style: none; margin: 0; padding: 0; }
.account__list li {
  position: relative; padding: .9rem 0 .9rem 2rem;
  font-size: 1.125rem; line-height: 1.45;
}
.account__list li::before {
  content: ""; position: absolute; left: 0; top: 1.55rem;
  width: 1.1rem; height: 2px; background: var(--brass);
}
.account__when { margin: 1.75rem 0 0; display: grid; gap: 1rem; }
.account__when div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: baseline; }
.account__when dt { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); }
.account__when dd { margin: 0; font-size: 1.05rem; }
.beta__close {
  margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.75rem;
  border-top: 1px solid rgba(244, 238, 223, .2);
  max-width: 40rem;
}
.beta__close-lead { font-family: var(--serif); font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); line-height: 1.4; max-width: 34ch; margin-bottom: .9rem !important; }
.beta__close p:not(.beta__close-lead) { color: var(--on-dark-2); font-size: 1.0625rem; }
.beta__why { margin-top: 1.25rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); color: var(--on-dark-2); max-width: 36rem; }

@media (min-width: 56rem) {
  .account { grid-template-columns: 1fr 1fr; gap: 0; }
  .account__col { padding-right: 3rem; }
  .account__col + .account__col { padding: 0 0 0 3rem; border-left: 1px solid rgba(244, 238, 223, .2); }
}

/* ---------- register (docket) ---------- */
.register { padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(4.5rem, 10vw, 8rem); }
.register__grid { display: grid; gap: 2.25rem; }
.register__intro p:not(.kicker) { color: var(--stone); font-size: 1.125rem; max-width: 26rem; margin-top: 1.25rem; }
.register__intro .h2 { max-width: 12ch; }

.docket {
  position: relative;
  background: var(--surface);
  padding: calc(1.5rem + var(--tooth)) clamp(1.25rem, 4vw, 2.5rem) clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 1px 0 var(--hair), 0 1.5rem 3rem -1.5rem rgba(47, 69, 64, .35);
  /* torn top edge, like a docket off the spike */
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
}
.docket__head {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--stone);
  padding-bottom: .9rem; margin-bottom: 1.5rem;
  border-bottom: 2px dashed var(--hair);
}

.form { display: block; }
.step { display: grid; gap: 1.25rem 1.5rem; }
.step__title { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; outline: none; }
.form__error { margin-bottom: 1.25rem !important; }
.field { margin: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .98rem; margin-bottom: .4rem; color: var(--leaf); }
.field--choice { border: 0; padding: 0; }
.field--choice legend { padding: 0; }
.opt { font-weight: 400; color: var(--stone); font-size: .9em; }
.opt::before { content: "· "; }
.hint { font-size: .9rem; color: var(--stone); margin: .4rem 0 0; }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  font: 400 1.0625rem/1.4 var(--sans);   /* >=16px stops iOS zoom */
  color: var(--leaf);
  background: var(--surface);
  border: 1px solid var(--stone);
  border-radius: 3px;
  padding: .8rem .85rem;
  min-height: 3.1rem;
  box-shadow: inset 0 2px 0 rgba(47, 69, 64, .06);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 7rem; }
input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brass); outline-offset: 1px; border-color: var(--leaf); box-shadow: none;
}
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); border-width: 2px; }
.field .err { color: var(--error); font-size: .9rem; font-weight: 600; margin: .4rem 0 0; }

.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.chips--wrap { display: flex; flex-wrap: wrap; }
.chips--wrap .chip span { padding: .5rem 1rem; }
.chips--stack { grid-template-columns: 1fr; }
.chips--stack .chip span { justify-content: flex-start; padding: .5rem 1rem; text-align: left; }
.chips--stack .chip span::before {
  content: ""; flex: none; width: 1.1rem; height: 1.1rem; margin-right: .75rem;
  border: 1.5px solid var(--stone); border-radius: 50%; background: var(--surface);
}
.chips--stack .chip input:checked + span::before { border-color: var(--on-dark); box-shadow: inset 0 0 0 3px var(--leaf); background: var(--brass); }

/* select */
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: .55rem; height: .55rem;
  border-right: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
select {
  width: 100%; appearance: none; -webkit-appearance: none;
  font: 400 1.0625rem/1.4 var(--sans); color: var(--leaf);
  background: var(--surface); border: 1px solid var(--stone); border-radius: 3px;
  padding: .8rem 2.75rem .8rem .85rem; min-height: 3.1rem; cursor: pointer;
}
select:focus-visible { outline: 3px solid var(--brass); outline-offset: 1px; border-color: var(--leaf); box-shadow: none; }
.field.is-invalid select { border-color: var(--error); border-width: 2px; }

/* checkbox */
.check { display: flex !important; align-items: flex-start; gap: .75rem; font-weight: 500 !important; cursor: pointer; margin: 0 !important; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; margin: .1rem 0 0;
  width: 1.4rem; height: 1.4rem; border: 1.5px solid var(--stone); border-radius: 3px; background: var(--surface);
  display: grid; place-content: center; cursor: pointer;
}
.check input::after { content: ""; width: .4rem; height: .75rem; border: solid var(--on-dark); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.check input:checked { background: var(--leaf); border-color: var(--leaf); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.promise {
  margin: 0; padding: 1rem 1.1rem; background: var(--paper);
  border-left: 3px solid var(--clay); font-size: 1rem; color: var(--leaf);
}
.backlink {
  justify-self: start; background: none; border: 0; padding: .4rem 0; cursor: pointer;
  font: 600 .95rem/1.4 var(--sans); color: var(--walnut); text-decoration: underline; text-underline-offset: .18em;
}
.backlink::before { content: "← "; }
.chip { position: relative; margin: 0 !important; display: grid; }
.chip span { height: 100%; }
.field--narrow input { max-width: 20rem; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; justify-content: center;
  min-height: 3.1rem; border: 1px solid var(--stone); border-radius: 3px;
  font-weight: 600; font-variant-numeric: tabular-nums; background: var(--surface);
  transition: background-color .15s ease, color .15s ease;
}
.chip input:checked + span { background: var(--leaf); color: var(--on-dark); border-color: var(--leaf); }
.chip input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
.field--choice.is-invalid .chip span { border-color: var(--error); }

.form__error { margin: 0; padding: .8rem 1rem; border-left: 4px solid var(--error); background: #F7E3DF; color: var(--error); font-weight: 600; }
.form__foot { display: grid; gap: 1rem; padding-top: 1.25rem; border-top: 2px dashed var(--hair); margin-top: .25rem; }
.fine { font-size: .9rem; color: var(--stone); margin: 0; }

.docket__done { text-align: center; padding: 3rem 0 2rem; outline: none; }
.docket__done p:last-child { color: var(--stone); margin-top: .5rem; }
.stamp {
  display: inline-block; margin: 0 0 1.5rem !important;
  font-family: var(--mono); font-weight: 700; font-size: 1.4rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--paid); border: 3px solid var(--paid); border-radius: 4px; padding: .3rem .9rem;
  transform: rotate(-4deg);
}

@media (min-width: 40rem) {
  .step { grid-template-columns: 1fr 1fr; }
  .step__title, .field--wide, .field--choice, .form__foot, .promise, .backlink { grid-column: 1 / -1; }
  .chips--stack { grid-template-columns: repeat(3, 1fr); }
  .chips--stack .chip span { justify-content: center; text-align: center; }
  .chips--stack .chip span::before { display: none; }
  .form__foot { grid-template-columns: auto 1fr; align-items: center; gap: 1.5rem; }
  .btn--block { width: auto; min-width: 11rem; }
}
@media (min-width: 62rem) {
  .register__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4.5rem; align-items: start; }
  .register__intro { position: sticky; top: 2rem; padding-top: 2rem; }
}

/* ---------- footer ---------- */
.foot { background: var(--leaf); color: var(--on-dark-2); padding: 2rem 0; font-size: .95rem; }
.foot__inner { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: baseline; justify-content: space-between; }
.foot p { margin: 0; }
.foot a { color: var(--on-dark); }
.foot__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }

/* honeypot: off-screen for people, still in the form for bots */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- secondary pages (privacy notice, 404) ---------- */
body:has(> main.doc) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.doc { flex: 1 0 auto; padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 7rem); }
.doc__body { max-width: 40rem; }
.doc__title { font-family: var(--serif); font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.015em; margin: 1rem 0 1.25rem; }
.doc__meta { color: var(--stone); font-size: .95rem; }
.doc h2 { font-family: var(--serif); font-size: clamp(1.35rem, 1.2rem + .7vw, 1.7rem); line-height: 1.2; margin: 2.5rem 0 .75rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); }
.doc ul { padding-left: 1.25rem; margin: 0 0 1em; }
.doc li { margin-bottom: .4em; }
.doc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.nowrap { white-space: nowrap; }
