@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("/assets/fonts/hanken.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Marker"; src: url("/assets/fonts/marker.woff2") format("woff2"); font-display: swap; }

:root {
  --counter: #101211;         /* logo ground: graphite counter */
  --counter-deep: #090a0a;
  --on-counter: #f2f1ec;      /* logo ink: text on the counter */
  --on-counter-soft: #a7aca8; /* secondary text on the counter */
  --lime: #c6f432;            /* logo lime: tape, buttons, focus */
  --lime-deep: #4a6600;       /* lime for text on white paper */
  --marker-ink: #101211;      /* marker on lime tape */
  --card: #ffffff;
  --rule-red: #d9534f;        /* recipe card top rule */
  --ink: #0e1412;
  --ink-soft: #46524e;
  --cut: #b42318;             /* errors only */
  --line: 40px;               /* card ruling pitch, matches paper-ruled.png */
  --pad: clamp(20px, 4vw, 64px);
  --display: "Bricolage", "Arial Narrow", sans-serif;
  --text: "Hanken", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--on-counter-soft) var(--counter-deep); }
body {
  background: var(--counter) url("/assets/material/counter.webp") repeat;
  background-size: 384px 384px;
  color: var(--on-counter);
  font: 400 18px/1.55 var(--text);
  min-height: 100vh;
}
::selection { background: var(--lime); color: var(--ink); }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
img, video { display: block; max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px var(--pad); max-width: 1440px; margin: 0 auto; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--display); font-stretch: 85%; color: #fff; }
.mark svg { width: 30px; height: 30px; }
.nav ul { display: flex; align-items: center; gap: 28px; list-style: none; font-weight: 700; font-size: 16px; }
.nav ul a { text-decoration: none; }
.nav ul a:not(.btn):hover { text-decoration: underline; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--lime); color: var(--ink); font: 800 17px/1 var(--text); text-decoration: none;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.45);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(0,0,0,.5); }
.btn:active { transform: translateY(1px); box-shadow: 0 3px 8px -4px rgba(0,0,0,.45); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- type ---------- */
.display { font: 800 clamp(54px, 6.3vw, 92px)/.9 var(--display); font-stretch: 75%; letter-spacing: -.01em; color: #fff; }
.display .sm-cap { display: none; }
.h2 { font: 800 clamp(36px, 4.6vw, 60px)/.95 var(--display); font-stretch: 80%; color: #fff; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--on-counter-soft); max-width: 36ch; }

/* ---------- recipe card ---------- */
.card {
  position: relative; color: var(--ink); border-radius: 3px;
  background: var(--card) url("/assets/material/paper.png") repeat;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 2px 0 -1px #e9ecea, 0 34px 60px -24px rgba(0,0,0,.55);
  padding: 46px clamp(22px, 3.4vw, 44px) 36px;
}
.card .head { border-bottom: 2px solid var(--rule-red); padding-bottom: 14px; margin-bottom: 6px; }
.tape {
  position: absolute; left: -16px; top: -20px; transform: rotate(-2.5deg);
  background: url("/assets/material/tape.png") no-repeat center / 100% 100%;
  color: var(--marker-ink); padding: 12px 30px 10px 26px;
  font: 400 21px/1 "Marker", cursive; letter-spacing: .02em;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.14));
}
.stamp {
  position: absolute; right: clamp(10px, 2.4vw, 28px); top: 22px; width: 190px; height: 78px;
  background: url("/assets/material/stamp-keep-it.png") no-repeat center / contain;
  transform: rotate(8deg); mix-blend-mode: multiply;
}
.card h1, .card h2 { font: 800 clamp(32px, 3.4vw, 46px)/.98 var(--display); font-stretch: 80%; max-width: 15ch; text-wrap: balance; position: relative; }
.stamp { z-index: 2; }
.card .with { margin-top: 10px; color: var(--ink-soft); font-size: 17px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 30px; margin-top: 18px; font-weight: 700; font-size: 17px; line-height: 1.2; }
.meta dt { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.label { margin-top: 16px; font: 800 18px/var(--line) var(--display); font-stretch: 90%; letter-spacing: .05em; text-transform: uppercase; color: var(--lime-deep); }

/* ruled rows: text sits on the card's own ruling */
.ruled { list-style: none; background: url("/assets/material/paper-ruled.png") repeat; background-size: 240px var(--line); }
.ruled > li, .ruled > div { line-height: var(--line); font-size: 17.5px; min-height: var(--line); }
.ruled .cost { color: var(--ink-soft); font-size: 15px; margin-left: 8px; }
.steps { counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 34px; transition: background .25s; }
.steps li::before { content: counter(s) "."; position: absolute; left: 0; font-weight: 700; }
.steps li.out::after { content: ""; position: absolute; left: 34px; top: calc(50% + 2px); height: 2px; background: var(--ink); width: var(--w, 80%); max-width: calc(100% - 34px); }
.steps li.range::before { content: "3–7."; }
.steps li.range { padding-left: 44px; }
.steps li.range::after { left: 44px; }
.steps li.lit { background: rgba(198,244,50,.55); }
.steps li.range-sm { display: none; }

/* email on the card */
.pass-form { margin-top: 22px; background: var(--ink); border-radius: 12px; padding: 10px; display: flex; gap: 8px; }
.pass-form input {
  flex: 1; min-width: 0; height: 52px; border: 0; border-radius: 8px; padding: 0 16px;
  font: 500 17px var(--text); color: var(--ink); background: #fff;
}
.pass-form input::placeholder { color: #66716d; }
.pass-form input:focus-visible { outline: 3px solid var(--lime); outline-offset: 0; }
.pass-form input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--cut); }
.pass-form .btn { min-height: 52px; border-radius: 8px; box-shadow: none; white-space: nowrap; }
.pass-form .btn[disabled] { opacity: .65; cursor: progress; }
.form-note { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.4; }
.form-note.err { color: var(--cut); font-weight: 600; }
.form-note.ok { color: var(--lime-deep); font-weight: 700; font-size: 16px; }

/* phone with the reel */
.phone { width: 100%; max-width: 230px; aspect-ratio: 9 / 16; border-radius: 30px; background: #1b1e1d; padding: 7px; box-shadow: inset 0 0 0 1px rgba(242,241,236,.16), 0 30px 50px -24px rgba(0,0,0,.8); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; background: #111; }
.phone-cap { margin-top: 12px; font-size: 15px; color: var(--on-counter-soft); }

/* ---------- home hero ---------- */
.hero { max-width: 1440px; margin: 0 auto; padding: clamp(16px, 3vw, 40px) var(--pad) clamp(70px, 9vw, 120px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 690px); column-gap: clamp(28px, 3.4vw, 48px); align-items: start; }
.hero-copy { padding-top: clamp(10px, 4vw, 60px); }
.hero-copy .lead { margin: 26px 0 30px; }
.proof { margin-top: 18px; font-weight: 700; font-size: 15.5px; color: var(--on-counter-soft); }
.proof b { color: #fff; }
.hero .stack { position: relative; padding-right: 214px; }
.hero .stack .card { z-index: 1; }
.hero .phone-wrap { position: absolute; z-index: 0; top: 70px; right: 0; width: 200px; transform: rotate(3deg); }
.hero .phone-wrap .phone-cap { transform: rotate(-3deg); text-align: right; padding-right: 6px; }

/* ---------- how we test ---------- */
.band { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad) clamp(80px, 10vw, 140px); }
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.how .h2 { margin-bottom: 18px; }
.how p.lead { max-width: 30ch; }
.terms { display: grid; grid-template-columns: max-content 1fr; column-gap: 28px; }
.terms dt { line-height: var(--line); }
.terms dt span { display: inline-block; font: 400 19px/1 "Marker", cursive; color: var(--marker-ink); padding: 7px 14px 5px 12px; background: url("/assets/material/tape.png") no-repeat center / 100% 100%; transform: rotate(-1.5deg); }
.terms dd { line-height: var(--line); font-size: 17.5px; }

/* ---------- recipe box (index) ---------- */
.box-head { margin-bottom: 28px; }
.index { list-style: none; display: grid; gap: 14px; }
.index a { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 24px; text-decoration: none;
  color: var(--ink); background: var(--card) url("/assets/material/paper.png") repeat; border-radius: 3px; padding: 22px clamp(18px, 3vw, 34px);
  box-shadow: 0 18px 30px -22px rgba(0,0,0,.6); transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.index a:hover { transform: translateY(-3px); }
.index .no { font: 400 22px/1 "Marker", cursive; color: var(--marker-ink); padding: 10px 14px 8px; text-align: center; transform: rotate(-2deg);
  background: url("/assets/material/tape.png") no-repeat center / 100% 100%; }
.index .what b { display: block; font: 800 clamp(24px, 2.4vw, 32px)/1 var(--display); font-stretch: 82%; }
.index .what span { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 15.5px; }
.index .v { width: 132px; height: 72px; background: url("/assets/material/stamp-keep.png") no-repeat center / contain; transform: rotate(5deg); mix-blend-mode: multiply; }
.index li.soon { border: 2px dashed rgba(242,241,236,.4); border-radius: 3px; padding: 22px clamp(18px, 3vw, 34px);
  display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: center; color: var(--on-counter-soft); }
.index li.soon .no { background: none; color: var(--on-counter-soft); border: 2px dashed rgba(242,241,236,.4); transform: none; }

/* ---------- lab pass ---------- */
.pass { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.pass .card h2 { padding-right: 0; max-width: none; }
.gets li { padding-left: 32px; position: relative; }
.gets li::before { content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 10.5l4.2 4.2L16.5 5.8' fill='none' stroke='%234a6600' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid rgba(242,241,236,.18); }
.foot .in { max-width: 1440px; margin: 0 auto; padding: 36px var(--pad) 48px; display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; font-size: 15px; color: var(--on-counter-soft); }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; }

/* ---------- test page ---------- */
.test { max-width: 1240px; margin: 0 auto; padding: 10px var(--pad) clamp(70px, 9vw, 120px);
  display: grid; grid-template-columns: minmax(0, 760px) 250px; gap: clamp(28px, 5vw, 70px); justify-content: center; align-items: start; }
.test .side { position: sticky; top: 24px; }
.found { list-style: none; }
.found li { display: grid; grid-template-columns: 116px 1fr; gap: 14px; line-height: var(--line); align-items: start; }
.found button { all: unset; cursor: pointer; font: 800 26px/var(--line) var(--display); font-stretch: 82%; color: var(--lime-deep); justify-self: start;
  text-decoration: underline dotted 2px; text-underline-offset: 6px; }
.found button:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.found button[aria-pressed="true"] { background: var(--lime); color: var(--ink); text-decoration: none; padding: 0 6px; }
.found li span { line-height: var(--line); }
.hint { font-size: 14.5px; color: var(--ink-soft); line-height: 1.4; margin-bottom: 6px; }
.why { font-size: 15px; color: var(--ink-soft); min-height: 1.4em; margin-top: 4px; }
.lock-note { line-height: 1.4; margin-top: 14px; font-weight: 700; }

/* stamp lands once, when the card first appears */
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: stamp-land .42s cubic-bezier(.16, 1, .3, 1); }
  @keyframes stamp-land { 0% { transform: rotate(13deg) scale(1.35); filter: blur(1.5px); } 100% { transform: rotate(8deg) scale(1); filter: blur(0); } }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero .phone-wrap { display: none; }
  .hero .stack { padding-right: 0; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
}
@media (max-width: 960px) {
  .hero, .how, .pass { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 0; }
  .test { grid-template-columns: 1fr; }
  .test .side { position: static; display: flex; gap: 18px; align-items: center; }
  .test .side .phone { max-width: 150px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav { padding-top: 18px; padding-bottom: 14px; }
  .nav ul li:not(:last-child) { display: none; }
  .display { font-size: 42px; white-space: nowrap; }
  .display .lg { display: none; }
  .display .sm-cap { display: inline; }
  .hero { row-gap: 26px; padding-top: 0; }
  .hero-copy .lead, .hero-copy > .btn, .hero .proof { display: none; }
  .hero .card .with, .hero .card .ing, .hero .meta .serves { display: none; }
  .card { padding-top: 36px; padding-bottom: 26px; }
  .card h1, .card h2 { padding-right: 0; margin-top: 30px; }
  .stamp { top: 52px; right: 6px; width: 132px; height: 54px; }
  .pass-form { flex-direction: column; }
  .pass-form input { flex: none; }
  .test .card { display: flex; flex-direction: column; }
  .test .card .with, .test .meta .serves, .test .meta .made { display: none; }
  .test .card .ing { order: 2; }
  .test .card .after { order: 3; }
  .steps li.out.full { display: none; }
  .steps li.range-sm { display: block; }
  .pass-form .btn { width: 100%; }
  .index a { grid-template-columns: 1fr auto; }
  .index a .no { grid-column: 1 / -1; justify-self: start; }
  .index .v { width: 96px; height: 52px; }
  .index li.soon { grid-template-columns: 1fr; }
  .terms { grid-template-columns: 1fr; }
  .found li { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Lab Pass: members ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.member-recipe { margin-top: 8px; }
.prompt { margin-top: 6px; white-space: pre-wrap; word-break: break-word; font: 500 15.5px/1.6 var(--text); background: #f6f7f5; border: 1px solid #dfe3df; border-radius: 3px; padding: 16px 18px; color: var(--ink); }
.btn.copy { margin-top: 12px; box-shadow: none; }
.label-note { font: 600 14.5px/1 var(--text); letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.raw-wrap { overflow-x: auto; margin-top: 4px; }
.raw { width: 100%; border-collapse: collapse; font-size: 15px; }
.raw th { text-align: left; font: 800 12px/1 var(--text); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); padding: 10px 8px; border-bottom: 2px solid var(--rule-red); }
.raw td { padding: 9px 8px; border-bottom: 1px solid #dbe6f2; }
.raw td:first-child { font-weight: 700; white-space: nowrap; }
.signin-wrap { max-width: 620px; margin: 0 auto; padding: 20px var(--pad) clamp(70px, 9vw, 120px); }
.signin-wrap .card h1 { padding-right: 0; max-width: none; }
.library-list { list-style: none; display: grid; gap: 14px; margin-top: 10px; }
.link-btn { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.link-btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
