/* ---------- Fonts (self-hosted, latin + latin-ext) ---------- */
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('/fonts/caveat-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: 'Caveat'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('/fonts/caveat-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: 'Fredoka'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/fonts/fredoka-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: 'Fredoka'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/fonts/fredoka-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: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/instrument-sans-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: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/instrument-sans-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: 'Newsreader'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/newsreader-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: 'Newsreader'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/newsreader-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: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/newsreader-italic-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: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/newsreader-italic-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; }

/* ---------- Tokens ---------- */
:root {
  --paper: #F7F3EA;
  --paper-2: #fbf8f2;
  --ink: #171715;
  --red: #FF4B2B;
  --rule: #DCD5C8;
  --muted: #6a645a;
  --forest: #173B32;
  --gold: #E9B83F;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --round: 'Fredoka', system-ui, sans-serif;
  --hand: 'Caveat', cursive;
  --gutter: 16px;
}

/* ---------- Base (mobile first) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, p, dl, dd, ol, figure { margin: 0; }
h2 { font-weight: 400; font-size: clamp(30px, 7vw, 40px); line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
.hand { font-family: var(--hand); font-weight: 600; color: var(--red); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 64px max(var(--gutter), env(safe-area-inset-left));
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0; padding-top: max(8px, env(safe-area-inset-top));
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter);
}
.nav-logo { flex: none; text-decoration: none; }
.nav-logo img { height: 36px; width: auto; transition: transform .2s; }
.nav-links {
  flex: 1 1 auto; min-width: 0;
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent 100%);
  padding: 10px 24px 10px 12px;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  flex: none; scroll-snap-align: start; white-space: nowrap;
  color: var(--ink);
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: text-decoration-color .2s;
}
.nav-links a.is-active { text-decoration-color: var(--red); }
.nav-print {
  flex: none;
  background: none; border: 1.5px solid var(--ink); color: var(--ink);
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s;
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 48px;
  align-items: center;
  padding: 40px 0 72px;
  border-bottom: 1px solid var(--rule);
}
.hero-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hero-for { font-size: 28px; font-weight: 500; transform: rotate(-2deg); }
.hero h1 { font-family: var(--round); font-weight: 700; font-size: clamp(48px, 13vw, 100px); line-height: .92; letter-spacing: -.03em; }
.hero-lede { font-size: 19px; line-height: 1.5; max-width: 24em; }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: var(--ink); text-decoration: none;
  font-family: var(--sans); font-weight: 600; font-size: 17px;
  padding: 15px 26px; border-radius: 999px;
  border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.cta:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.hero-media { position: relative; height: 360px; margin: 0 4px 0 8px; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; border-radius: 4px; background: #e9e2d4; }
.hero-sticker { position: absolute; left: -10px; bottom: -40px; width: 116px; transform: rotate(-4deg); transition: transform .25s; }
.hero-tag-top { position: absolute; right: 6px; top: -22px; transform: rotate(3deg); font-size: 21px; line-height: 1; background: var(--paper); padding: 2px 8px; pointer-events: none; }
.hero-tag-bottom { position: absolute; right: -4px; bottom: 20px; transform: rotate(-4deg); font-size: 20px; color: var(--ink); background: var(--paper); padding: 2px 10px; border-radius: 2px; pointer-events: none; }

/* ---------- Section scaffold ---------- */
.section {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
}
.section-journal { padding-top: 56px; }
.label { font-family: var(--round); font-weight: 600; font-size: 18px; display: flex; gap: 8px; align-items: baseline; }
.label > span:first-child, .label-title > span:first-child { color: var(--red); }
.label-stack { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.label-title { display: flex; gap: 8px; align-items: baseline; }
.body { min-width: 0; display: flex; flex-direction: column; }
.prose { gap: 18px; max-width: 40em; }
.prose p { font-size: 18px; line-height: 1.55; }
.stack-20 { gap: 20px; } .stack-24 { gap: 24px; } .stack-28 { gap: 24px; }
.display { font-size: clamp(40px, 10vw, 68px); line-height: 1; letter-spacing: -.02em; }
.prose .lede { font-size: 19px; line-height: 1.5; }
.subhead { margin: 14px 0 0; font-weight: 500; font-size: clamp(24px, 5.5vw, 28px); line-height: 1.2; }
.starter-note { font-size: 23px; font-weight: 500; transform: rotate(-1deg); align-self: flex-start; }
.journal-note { font-size: 24px; font-weight: 500; transform: rotate(-1deg); align-self: flex-start; }
.note { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 38em; }
.small-muted { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.muted-i { color: var(--muted); font-style: italic; }

/* Starter glossary */
.glossary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px 32px;
  margin-top: 8px; padding-top: 20px; border-top: 1px dashed var(--rule);
  font-size: 16px; line-height: 1.45;
}
.glossary dt { font-family: var(--sans); font-size: 12px; color: var(--red); margin-bottom: 4px; }

/* ---------- Recipe ---------- */
.recipe-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.badge { display: flex; align-items: center; gap: 12px; transform: rotate(-2deg); border: 1.5px solid var(--ink); border-radius: 6px; padding: 8px 12px; }
.badge img { height: 32px; width: auto; }
.badge span { font-family: var(--sans); font-size: 12px; line-height: 1.3; }
.controls { display: flex; flex-direction: column; gap: 16px; font-family: var(--sans); font-size: 14px; }
.control-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.control-label { flex-basis: 100%; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.control-note { color: var(--muted); margin-left: 4px; font-size: 13px; }
.pill {
  min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.pill.is-on { background: var(--ink); color: var(--paper); }
.ingredients { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.ing { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.ing-amt { font-family: var(--sans); font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; }
.ing-name { font-size: 18px; }

/* ---------- Method ---------- */
.method-meta { display: flex; align-items: baseline; gap: 12px; }
.link-btn { font-family: var(--sans); font-size: 12px; background: none; border: none; padding: 8px 0; color: var(--red); text-decoration: underline; cursor: pointer; }
.walk { position: relative; height: 96px; }
.walk-line { position: absolute; left: 0; right: 44px; bottom: 10px; border-bottom: 2px dashed var(--ink); }
.walk-bread { position: absolute; bottom: 5px; width: 64px; left: calc((100% - 120px) * var(--p, 0)); transition: left .7s cubic-bezier(.3, 1.4, .5, 1); }
.walk-goal { position: absolute; right: 0; bottom: 3px; width: 48px; }
.walk-note { position: absolute; right: 56px; top: 0; font-size: 21px; transform: rotate(-2deg); white-space: nowrap; }
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.day { font-family: var(--sans); font-size: 12px; color: var(--red); letter-spacing: .08em; padding: 18px 0 4px; }
.day-2 { padding-top: 28px; }
.step {
  width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 34px 22px minmax(0, 1fr); gap: 10px;
  padding: 18px 0; cursor: pointer; transition: opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.step .box {
  width: 26px; height: 26px; border: 1.5px solid var(--ink); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper); font-family: var(--sans); font-size: 16px; transition: background .15s;
}
.step .num { font-family: var(--sans); font-size: 14px; color: var(--muted); padding-top: 4px; }
.step-text { display: flex; flex-direction: column; gap: 6px; }
.step-text strong { font-weight: 600; font-size: 19px; }
.step-text > span:not(.margin-note):not(.step-tip) { font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.step-tip { font-size: 16px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.step-tip b { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-right: 4px; }
.margin-note { font-size: 22px; font-weight: 500; line-height: 1.2; }
.step.is-done { opacity: .5; }
.step.is-done .box { background: var(--red); }
.step.is-done .box::after { content: '✓'; }

/* ---------- Schedule ---------- */
.schedule-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.schedule-head .hand { font-size: 23px; font-weight: 500; transform: rotate(-2deg); }
.times { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px 32px; font-family: var(--sans); font-size: 12px; color: var(--muted); max-width: 520px; }
.times label { display: flex; flex-direction: column; gap: 6px; letter-spacing: .03em; }
.times input {
  font-family: var(--sans); font-size: 18px; min-height: 48px;
  padding: 8px 10px; border: 1px solid var(--ink); border-radius: 4px;
  background: var(--paper-2); color: var(--ink); width: 100%;
  -webkit-appearance: none; appearance: none;
}
.schedule { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 48px 56px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--rule); align-items: baseline; font-size: 17px; }
.row-day { font-family: var(--sans); font-size: 11px; color: var(--red); }
.row-time { font-family: var(--sans); font-size: 17px; font-variant-numeric: tabular-nums; }

/* ---------- Troubleshooting ---------- */
.issues { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px 40px; }
.issue { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--ink); padding-top: 14px; }
.issue strong { font-weight: 600; font-size: 19px; }
.issue > span:not(.tags) { font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.tags { font-family: var(--sans); font-size: 12px; color: var(--muted); }

/* ---------- Bake log ---------- */
.log-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
  background:
    linear-gradient(90deg, var(--paper) 30%, rgba(247,243,234,0)) left / 32px 100% no-repeat local,
    linear-gradient(270deg, var(--paper) 30%, rgba(247,243,234,0)) right / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 100% 50%, rgba(23,23,21,.14), transparent) right / 12px 100% no-repeat scroll;
}
.log { width: 100%; min-width: 560px; border-collapse: collapse; font-family: var(--sans); font-size: 16px; font-variant-numeric: tabular-nums; }
.log th, .log td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.log thead th { font-size: 12px; color: var(--muted); letter-spacing: .06em; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ink); }
.log tbody th { font-family: var(--serif); font-size: 16px; line-height: 1.3; width: min(46vw, 210px); }
.log { min-width: calc(min(46vw, 210px) + 300px); }
.log .best th { font-weight: 600; }
.log tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--paper); box-shadow: 8px 0 8px -8px rgba(23, 23, 21, .18); padding-left: .4em; }
.log .top { color: var(--red); font-weight: 500; }
.mark {
  background-image: linear-gradient(100deg, rgba(233,184,63,.15) 0%, rgba(233,184,63,.75) 3%, rgba(233,184,63,.5) 60%, rgba(233,184,63,.8) 96%, rgba(233,184,63,.1) 100%);
  border-radius: .9em .3em .8em .4em; padding: .05em .35em; margin: 0 -.35em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Photos ---------- */
.section-photos { display: flex; flex-direction: column; gap: 24px; padding: 48px 0 0; }
.photos-head { display: flex; flex-direction: column; gap: 12px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery figure { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.frame { aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: #e9e2d4; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery { grid-auto-flow: row dense; }
.gallery .wide { grid-column: span 2; }
.wide .frame { aspect-ratio: 3 / 2; }
.gallery figcaption { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.frame-upload {
  display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer;
  background: transparent; border: 1.5px dashed var(--muted);
}
.frame-upload img { position: absolute; inset: 0; }
.upload-hint { font-family: var(--sans); font-size: 13px; color: var(--muted); text-align: center; padding: 12px; }
.frame-upload:focus-within { outline: 2px solid var(--red); outline-offset: 3px; }
.signoff { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
.signoff-bread { width: 52px; flex: none; transition: transform .25s; }
.signoff p { font-size: 25px; font-weight: 500; line-height: 1.15; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 72px; background: var(--forest); color: var(--paper); border-radius: 6px;
  padding: 36px 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: end;
  margin-bottom: env(safe-area-inset-bottom);
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand img { width: 80%; max-width: 416px; }
.footer-brand .hand { font-size: 24px; font-weight: 500; color: var(--gold); }
.footer-meta { display: flex; flex-direction: column; gap: 6px; font-family: var(--sans); font-size: 15px; line-height: 1.5; }
.footer-meta a { color: var(--paper); font-weight: 600; font-size: 18px; text-decoration-color: var(--gold); }
.footer-dim { color: #c9d3cc; }

/* ---------- Tablet and up ---------- */
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .page { padding-bottom: 96px; }
  .nav { gap: 24px; padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 12px; }
  .nav-logo img { height: 42px; }
  .nav-links { gap: 24px; }
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; padding: 64px 0 88px; }
  .hero-copy { gap: 26px; }
  .hero-for { font-size: 30px; }
  .hero-lede { font-size: 21px; }
  .hero-media { height: 480px; margin: 0; }
  .hero-sticker { left: -28px; bottom: -56px; width: 170px; }
  .hero-tag-top { right: 10px; top: -34px; font-size: 25px; }
  .hero-tag-bottom { right: -6px; bottom: 24px; font-size: 23px; }

  .section { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px 48px; padding: 64px 0; }
  .section-journal { padding: 72px 0; }
  .label { font-size: 20px; }
  .label-stack { flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 10px; }
  .method-meta { flex-direction: column; gap: 4px; }
  .link-btn { padding: 0; }
  .prose p { font-size: 19px; }
  .prose .lede { font-size: 21px; }
  .stack-28 { gap: 28px; }
  .note { font-size: 17px; }

  .controls { flex-direction: row; flex-wrap: wrap; gap: 20px 40px; font-size: 13px; }
  .control-label { flex-basis: auto; margin-right: 4px; font-size: 13px; }
  .pill { min-height: 0; padding: 8px 14px; }
  .badge img { height: 36px; }
  .ing { grid-template-columns: 110px minmax(0, 1fr); gap: 20px; }
  .ing-amt { font-size: 18px; }
  .ing-name { font-size: 19px; }

  .walk { height: 118px; }
  .walk-line { right: 56px; bottom: 12px; }
  .walk-bread { width: 86px; bottom: 6px; left: calc((100% - 160px) * var(--p, 0)); }
  .walk-goal { width: 66px; bottom: 4px; }
  .walk-note { right: 76px; font-size: 24px; }
  .step { grid-template-columns: 44px 32px minmax(0, 1fr); gap: 12px; }
  .step-text strong { font-size: 20px; }
  .step-text > span:not(.margin-note):not(.step-tip) { font-size: 18px; }
  .margin-note { font-size: 23px; }

  .times input { min-height: 0; }
  .row { grid-template-columns: 72px 90px minmax(0, 1fr); gap: 16px; font-size: 18px; }
  .row-day { font-size: 12px; }
  .row-time { font-size: 18px; }

  .issues { gap: 36px 40px; }
  .issue strong { font-size: 20px; }

  .log-scroll { margin: 0; padding: 0; }
  .log { font-size: 17px; }
  .log { min-width: 560px; }
  .log tbody th { font-size: 17px; width: 40%; }
  .log tr > :first-child { position: static; box-shadow: none; padding-left: 0; }

  .section-photos { gap: 28px; padding-top: 64px; }
  .photos-head { flex-direction: row; flex-wrap: wrap; gap: 12px 48px; align-items: baseline; }
  .photos-head .label { min-width: 220px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .signoff { gap: 18px; margin-top: 48px; }
  .signoff-bread { width: 64px; }
  .signoff p { font-size: 30px; }

  .footer { margin-top: 96px; padding: 48px clamp(24px, 5vw, 56px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer-brand .hand { font-size: 25px; }
}

@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Hover effects only on devices that can hover, so taps don't stick */
@media (hover: hover) {
  a:hover { color: var(--ink); }
  .nav-logo:hover img { transform: rotate(-3deg); }
  .nav-links a:hover { color: var(--ink); text-decoration-color: var(--red); }
  .nav-print:hover { background: var(--ink); color: var(--paper); }
  .cta:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
  .hero-sticker:hover { transform: rotate(6deg) translateY(-6px) scale(1.05); }
  .signoff-bread:hover { transform: rotate(-10deg) translateY(-4px); }
  .pill:not(.is-on):hover { background: rgba(23, 23, 21, .06); }
  .footer-meta a:hover { color: var(--gold); }
}

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

@media print {
  [data-noprint] { display: none !important; }
  html, body { background: #fff; }
  .page { max-width: none; padding: 0; }
  section { break-inside: avoid-page; }
  .step.is-done { opacity: 1; }
  .footer { break-inside: avoid; }
}
