/* OpenSourdough — site styles.
 *
 * Two kinds of section alternate down every page: paper (flour and ink, for
 * reading) and char (near-black crust, for photography and video). Components
 * only ever use the semantic tokens, and .section--char redefines those tokens
 * locally, so the same card or button works on either without a variant.
 */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Brand constants — the same in both schemes. */
  --char: #120c09;
  --char-2: #1d140f;
  --char-3: #2a1d15;
  --ember: #e7a24a;
  --ember-hot: #f2b760;
  --crust-deep: #7c3415;
  --olive: #5f6b34;
  --sage: #a7b184;

  /* Semantic tokens: paper scheme. */
  --bg: #fbf6ee;
  --bg-alt: #f3eadc;
  --surface: #fffdf9;
  --surface-2: #efe4d3;
  --text: #1f1611;
  --text-muted: #5f4f43;
  --line: #e4d5c0;
  --accent: #a8491f;
  --accent-hover: #8e3b16;
  --on-accent: #fff8ef;
  --focus: #c75a24;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(31 22 17 / 0.06), 0 12px 32px -12px rgb(31 22 17 / 0.22);
  --shadow-lg: 0 2px 4px rgb(18 12 9 / 0.1), 0 40px 80px -24px rgb(18 12 9 / 0.45);
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 144px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .8 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17110d;
    --bg-alt: #1f1712;
    --surface: #241a14;
    --surface-2: #2e221a;
    --text: #f3e9da;
    --text-muted: #c4b19c;
    --line: #3a2c22;
    --accent: #eb9a52;
    --accent-hover: #f2b070;
    --on-accent: #1f1611;
    --focus: #f2b070;
  }
}
:root[data-theme="dark"] {
  --bg: #17110d;
  --bg-alt: #1f1712;
  --surface: #241a14;
  --surface-2: #2e221a;
  --text: #f3e9da;
  --text-muted: #c4b19c;
  --line: #3a2c22;
  --accent: #eb9a52;
  --accent-hover: #f2b070;
  --on-accent: #1f1611;
  --focus: #f2b070;
}

/* Char sections are dark in both schemes. */
.section--char,
.site-footer {
  --bg: var(--char);
  --bg-alt: var(--char-2);
  --surface: var(--char-2);
  --surface-2: var(--char-3);
  --text: #f3e9da;
  --text-muted: #bba88f;
  --line: #3a2a1f;
  --accent: var(--ember);
  --accent-hover: var(--ember-hot);
  --on-accent: #1a110b;
  --focus: var(--ember-hot);
  color-scheme: dark;
}

/* --------------------------------------------------------------- base */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
video,
svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 420;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.2vw + 1rem, 5.6rem); letter-spacing: -0.025em; line-height: 1; }
h2 { font-size: clamp(2rem, 3vw + 1rem, 3.6rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.35rem, 1vw + 1rem, 1.7rem); font-weight: 480; }
h4 { font-size: 1.15rem; font-weight: 520; }
em { font-style: italic; }
h1 em, h2 em, .display em { font-weight: 360; color: var(--accent); }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 620; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 820px; }
.container--prose { max-width: 720px; }

.section {
  position: relative;
  padding: var(--section-y) 0;
  background: var(--bg);
  color: var(--text);
}
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--char { background: var(--char); }
.section--char::before,
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.section > .container { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lede {
  font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 38em;
}
.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------ buttons */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1 var(--font-body);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 10px 24px -12px rgb(168 73 31 / 0.7);
  white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: color-mix(in srgb, var(--text) 28%, transparent);
  box-shadow: none;
}
.btn--ghost:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding-bottom: 2px;
  transition: gap 0.25s var(--ease), border-color 0.25s;
}
.link-arrow:hover { gap: 12px; border-color: var(--accent); }
.link-arrow::after { content: "→"; }

/* ----------------------------------------------------------------- nav */

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--text);
  transition: background 0.35s var(--ease), box-shadow 0.35s, color 0.35s, transform 0.4s var(--ease);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.site-nav.is-over-media { color: #f6ecdf; }
.site-nav.is-solid {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--text);
}
.site-nav.is-hidden { transform: translateY(-100%); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand svg { width: 32px; height: 32px; }
.brand b { font-weight: 500; opacity: 0.62; }

.site-nav__links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0.86;
  transition: opacity 0.2s, background 0.2s;
}
.site-nav__links a:hover { opacity: 1; background: color-mix(in srgb, currentColor 9%, transparent); }
.site-nav__links a[aria-current="page"] { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.site-nav .btn { box-shadow: none; }
.site-nav.is-over-media .btn--ghost { color: #f6ecdf; border-color: rgb(246 236 223 / 0.4); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  background: transparent;
  color: inherit;
  cursor: pointer;
  place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--char);
  color: #f3e9da;
  padding: 20px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.nav-sheet.is-open { opacity: 1; visibility: visible; }
.nav-sheet__top { display: flex; align-items: center; height: 56px; margin-bottom: 24px; }
.nav-sheet ul { list-style: none; margin: 0 0 auto; padding: 0; }
.nav-sheet li a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #2e2118;
  font-family: var(--font-display);
  font-size: 2rem;
  text-decoration: none;
}
.nav-sheet .btn { --btn-bg: var(--ember); --btn-fg: #1a110b; margin-top: 28px; }

@media (max-width: 900px) {
  .site-nav__links,
  .site-nav__inner > .btn--ghost { display: none; }
  .nav-toggle { display: grid; }
  .site-nav__inner { gap: 12px; height: 64px; }
  .site-nav__inner > .btn { min-height: 42px; padding: 0 16px; font-size: 0.9375rem; }
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: flex;
  align-items: flex-end;
  color: #f6ecdf;
  background: var(--char);
  overflow: hidden;
  isolation: isolate;
}
.hero__media,
.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
  z-index: -2;
}
.hero__media video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__media video.is-playing { opacity: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(14 9 6 / 0.9) 0%, rgb(14 9 6 / 0.62) 34%, rgb(14 9 6 / 0.05) 66%),
    linear-gradient(0deg, rgb(14 9 6 / 0.85) 0%, rgb(14 9 6 / 0) 38%);
}
.hero .grain-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.09;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__content {
  width: 100%;
  padding-top: 140px;
  padding-bottom: clamp(56px, 9vh, 112px);
}
.hero__title { max-width: 11.5em; margin-bottom: 26px; }
.hero__title em { color: var(--ember); }
.hero .lede { color: #d9c9b4; max-width: 32em; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn { --btn-bg: var(--ember); --btn-fg: #1a110b; box-shadow: 0 16px 40px -16px rgb(231 162 74 / 0.8); }
.hero .btn:hover { --btn-bg: var(--ember-hot); }
.hero .btn--ghost { --btn-bg: rgb(255 255 255 / 0.04); --btn-fg: #f6ecdf; border-color: rgb(246 236 223 / 0.35); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: #c9b79f;
}
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
}
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 34px;
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #bba88f;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 56px;
  background: linear-gradient(#bba88f, transparent);
  animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 720px) {
  .hero { align-items: flex-end; }
  .hero__media img,
  .hero__media video { object-position: 72% 30%; }
  .hero::after {
    background: linear-gradient(0deg, rgb(14 9 6 / 0.96) 0%, rgb(14 9 6 / 0.82) 42%, rgb(14 9 6 / 0.1) 75%);
  }
  .hero__scroll { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Inner-page hero: shorter, photo or illustration behind. */
.page-hero {
  position: relative;
  padding: clamp(140px, 18vw, 220px) 0 clamp(56px, 8vw, 104px);
  color: #f6ecdf;
  background: var(--char);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .eyebrow { color: var(--ember); }
.page-hero h1 { max-width: 12em; }
.page-hero h1 em { color: var(--ember); }
.page-hero .lede { color: #d9c9b4; }
.page-hero__media,
.page-hero__media img,
.page-hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(14 9 6 / 0.92) 0%, rgb(14 9 6 / 0.7) 45%, rgb(14 9 6 / 0.25) 100%),
    linear-gradient(0deg, rgb(14 9 6 / 0.7), transparent 50%);
}
.page-hero--plain::after { background: radial-gradient(ellipse at 80% 0%, rgb(231 162 74 / 0.16), transparent 60%); }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: #bba88f;
}
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #f6ecdf; }

/* ---------------------------------------------------------- fact strip */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact { padding: 34px 28px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact__n {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3vw + 1rem, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: var(--accent);
}
.fact__n small { font-size: 0.45em; letter-spacing: 0; margin-left: 4px; color: var(--text-muted); }
.fact p { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .fact { padding: 26px 18px; }
}

/* ------------------------------------------------------ feature rows */

.feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 7vw, 120px);
}
.feature + .feature { margin-top: clamp(96px, 12vw, 176px); }
.feature--flip .feature__copy { order: 2; }
.feature__copy h3 { font-size: clamp(1.9rem, 2vw + 1rem, 2.8rem); font-weight: 420; letter-spacing: -0.02em; }
.feature__copy .lede { margin-bottom: 26px; }
.checks { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--text-muted); }
.checks li strong { color: var(--text); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%23a8491f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.feature__art { position: relative; display: grid; place-items: center; }
.feature__art::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ember) 32%, transparent), transparent 68%);
  filter: blur(10px);
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__copy { order: 0; }
}

/* A phone frame around real screenshots of the app. */
.phone {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 48px;
  padding: 11px;
  background: linear-gradient(145deg, #3a2a20, #120c09 45%, #2a1d15);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  translate: -50% 0;
  width: 92px;
  height: 26px;
  border-radius: 20px;
  background: #0a0706;
  z-index: 2;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 38px;
  background: #fff8f4;
}
.phone--tilt { rotate: -4deg; }
.phone--tilt-r { rotate: 4deg; }

/* -------------------------------------------------------- clock widget */

.clock {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.clock__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 3.5vw, 44px);
  box-shadow: var(--shadow);
}
.clock__readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.clock__temp {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 5vw + 1rem, 5.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.clock__temp span { font-size: 0.42em; color: var(--text-muted); margin-left: 4px; letter-spacing: 0; }
.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  gap: 2px;
}
.seg button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: 600 0.875rem/1 var(--font-body);
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  background: transparent;
  margin: 12px 0 4px;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, #7fa3b8, #d6b37b 50%, #d9743c);
}
.range::-moz-range-track {
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, #7fa3b8, #d6b37b 50%, #d9743c);
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--text);
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.25);
}
.range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--text);
}
.range-labels { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 26px; }

.bars { display: grid; gap: 12px; margin: 0 0 22px; }
.bar-row { display: grid; grid-template-columns: 7.5em 1fr 5.2em; align-items: center; gap: 14px; font-size: 0.925rem; }
.bar-row .k { color: var(--text-muted); }
.bar-row .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bar-track { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar-fill {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--ember));
  transition: width 0.45s var(--ease);
}
.bar-row--fixed .bar-fill { background: var(--text-muted); opacity: 0.45; }
.clock__verdict {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.95rem;
}
@media (max-width: 860px) {
  .clock { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 6.2em 1fr 4.8em; gap: 10px; }
}

/* --------------------------------------------------------- media split */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}
.split__media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--char-2);
}
.split__media img,
.split__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split__media video { opacity: 0; transition: opacity 1s var(--ease); }
.split__media video.is-playing { opacity: 1; }
.split__media figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  font-size: 0.8rem;
  color: #e9dcc9;
  display: flex;
  align-items: center;
  gap: 8px;
}
.split__media figcaption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e05a3a; box-shadow: 0 0 0 4px rgb(224 90 58 / 0.25); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__media { aspect-ratio: 4 / 4.4; }
}

/* ------------------------------------------------- starter day ladder */

.days {
  list-style: none;
  margin: 34px 0 34px;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: day;
}
.days li {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.days li:last-child { border-bottom: 1px solid var(--line); }
.days .when {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.days h4 { margin: 0 0 4px; font-size: 1.08rem; }
.days p { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }
.days li.is-lull .when::after {
  content: "the scary bit";
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ------------------------------------------------------------ recipes */

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.recipe-card {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.recipe-card:nth-child(-n + 2) { grid-column: span 3; }
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.recipe-card__art {
  aspect-ratio: 3 / 2;
  background: #fbefdc;
  overflow: hidden;
}
.recipe-card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.recipe-card:hover .recipe-card__art img { transform: scale(1.04); }
.recipe-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.recipe-card h3 { margin: 0 0 8px; }
.recipe-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 0; list-style: none; }
.tags li {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.tags li.hot { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
@media (max-width: 960px) {
  .recipe-grid { grid-template-columns: 1fr 1fr; }
  .recipe-card,
  .recipe-card:nth-child(-n + 2) { grid-column: span 1; }
}
@media (max-width: 620px) {
  .recipe-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------- full-bleed quote */

.bleed {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  color: #f6ecdf;
  background: var(--char);
  overflow: hidden;
  isolation: isolate;
}
.bleed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 118%;
  object-fit: cover;
  z-index: -2;
  will-change: transform;
}
.bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(14 9 6 / 0.9) 0%, rgb(14 9 6 / 0.25) 55%, rgb(14 9 6 / 0.1));
}
.bleed blockquote {
  margin: 0;
  padding: clamp(56px, 8vw, 120px) 0;
  max-width: 17em;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw + 1rem, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 380;
}
.bleed blockquote em { color: var(--ember); font-weight: 340; }
.bleed cite {
  display: block;
  margin-top: 22px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bba88f;
}

/* ------------------------------------------------------------ install */

.install {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.install__card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(24px, 3vw, 36px);
}
.install__card h3 { display: flex; align-items: center; gap: 12px; }
.install__card h3 svg { width: 26px; height: 26px; }
.install__card ol { margin: 0; padding: 0 0 0 1.3em; color: var(--text-muted); display: grid; gap: 8px; }
.install__card ol strong { color: var(--text); }
.kbd {
  display: inline-grid;
  place-items: center;
  vertical-align: -5px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text);
}
.kbd svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .install { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ problems */

.problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.problem {
  background: var(--bg);
  padding: 26px 26px 28px;
  text-decoration: none;
  transition: background 0.25s;
}
.problem:hover { background: var(--surface); }
.problem h4 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 450; }
.problem p { margin: 0; color: var(--text-muted); font-size: 0.93rem; line-height: 1.55; }
.problem span { display: inline-block; margin-top: 14px; font-size: 0.85rem; font-weight: 600; color: var(--accent); }
@media (max-width: 900px) { .problems { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .problems { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ promise */

.promise {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.promise__item svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  margin-bottom: 18px;
}
.promise__item h4 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 460; margin-bottom: 8px; }
.promise__item p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 900px) { .promise { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .promise { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------- CTA band */

.cta-band {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  padding: clamp(40px, 6vw, 88px);
  background:
    radial-gradient(ellipse at 90% 10%, rgb(231 162 74 / 0.35), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgb(168 73 31 / 0.45), transparent 60%),
    var(--char-2);
  color: #f6ecdf;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: center;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.1;
  mix-blend-mode: overlay;
  z-index: -1;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band h2 em { color: var(--ember); }
.cta-band p { color: #d9c9b4; margin: 0; max-width: 34em; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-band .btn { --btn-bg: var(--ember); --btn-fg: #1a110b; }
.cta-band .btn--ghost { --btn-bg: transparent; --btn-fg: #f6ecdf; border-color: rgb(246 236 223 / 0.35); }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- recipe pages */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 38px 0 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgb(246 236 223 / 0.14);
  max-width: 860px;
}
.stats div { background: rgb(18 12 9 / 0.55); padding: 18px 20px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.stats dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #bba88f; margin-bottom: 6px; }
.stats dd { margin: 0; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.15; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

.recipe-layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.recipe-aside { position: sticky; top: 100px; display: grid; gap: 22px; }
@media (max-width: 920px) {
  .recipe-layout { grid-template-columns: 1fr; }
  .recipe-aside { position: static; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.card > p.muted { font-size: 0.9rem; }

.weigh { width: 100%; border-collapse: collapse; margin: 14px 0 10px; font-variant-numeric: tabular-nums; }
.weigh th,
.weigh td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.weigh td { text-align: right; font-weight: 600; }
.weigh td.pct { color: var(--text-muted); font-weight: 400; width: 4.5em; }
.weigh tr.total th,
.weigh tr.total td { border-bottom: 0; padding-top: 14px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(var(--line), var(--line));
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 18px;
  padding: 0 0 30px;
}
.timeline .dot {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 2px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.timeline li.is-ferment .dot { border-color: var(--accent); color: var(--accent); }
.timeline li.is-fold .dot { width: 18px; height: 18px; margin: 7px; border-width: 2px; font-size: 0; background: var(--bg-alt); }
.timeline li.is-fold h4 { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.timeline h4 { margin: 3px 0 2px; font-family: var(--font-body); font-size: 1.05rem; font-weight: 650; letter-spacing: 0; }
.timeline .when { font-size: 0.85rem; color: var(--text-muted); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.timeline .when b { color: var(--accent); font-weight: 600; }
.timeline p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

.note {
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  background: color-mix(in srgb, var(--accent) 7%, var(--bg));
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
  margin: 0 0 26px;
}

/* ----------------------------------------------------------- guide */

.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
}
.guide-nav a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.guide-nav a:hover { border-color: var(--accent); color: var(--accent); }
.guide-section + .guide-section { margin-top: 64px; }
.guide-section > h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem); }

.qa {
  border-top: 1px solid var(--line);
}
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 0.6vw + 1rem, 1.45rem);
  font-weight: 450;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%23a8491f' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.3s var(--ease);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa .qa__body { padding: 0 0 26px; max-width: 46em; }
.qa .qa__body p { color: var(--text-muted); }
.qa .fix { color: var(--text); padding-left: 16px; border-left: 2px solid var(--accent); }

.glossary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  margin: 0;
}
.glossary div { padding: 20px 0; border-top: 1px solid var(--line); }
.glossary dt { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 4px; }
.glossary dd { margin: 0; color: var(--text-muted); font-size: 0.97rem; }
@media (max-width: 720px) { .glossary { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- calculator */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.field { display: block; margin: 0 0 18px; }
.field > span { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  font: 500 1.05rem/1 var(--font-body);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-variant-numeric: tabular-nums;
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23846b58' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
.field input:focus,
.field select:focus { outline: 2px solid var(--focus); outline-offset: -1px; }
.field small { display: block; margin-top: 6px; color: var(--text-muted); font-size: 0.82rem; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.calc__out { position: sticky; top: 100px; }
.calc__out .advice { margin: 14px 0 0; font-weight: 600; color: var(--accent); }
.calc__out .warn { margin: 10px 0 0; color: #c0392b; font-size: 0.9rem; }
@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
  .calc__out { position: static; }
}

/* ------------------------------------------------------------- prose */

.prose h2 { font-size: clamp(1.6rem, 1.5vw + 1rem, 2.2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose p,
.prose li { color: var(--text-muted); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--accent); }
.prose strong { color: var(--text); }

/* ---------------------------------------------------------------- ads */

/* Space is reserved only when an ad unit is configured, so an unfilled slot
 * never leaves a hole and a filled one never shoves the page around. */
.ad {
  margin: clamp(40px, 6vw, 72px) auto;
  max-width: 970px;
  padding: 0 var(--gutter);
  text-align: center;
}
.ad__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
  margin-bottom: 8px;
}
.ad ins { display: block; min-height: 280px; border-radius: 14px; background: color-mix(in srgb, var(--text) 3%, transparent); }
.ad ins[data-ad-status="unfilled"] { display: none; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }

/* ------------------------------------------------------------- footer */

.site-footer {
  position: relative;
  background: var(--char);
  color: var(--text);
  padding: clamp(64px, 8vw, 104px) 0 40px;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.footer-grid h5 {
  margin: 0 0 16px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: #e6d8c5; }
.footer-grid a:hover { color: var(--ember); }
.footer-grid p { color: var(--text-muted); font-size: 0.95rem; max-width: 26em; }
.footer-word {
  position: relative;
  margin: clamp(48px, 8vw, 96px) 0 24px;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 13vw, 12rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-weight: 380;
  color: #2e2118;
  white-space: nowrap;
  user-select: none;
}
.footer-word em { color: #3d2b1f; font-weight: 340; }
.footer-base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-base a { color: inherit; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- motion */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------- page-hero variants */

.page-hero .split { align-items: center; }
.page-hero .split__media { aspect-ratio: 4 / 4.6; }
.page-hero--plain .stats div { background: rgb(255 255 255 / 0.04); }

/* Recipe pages open on paper, with the illustration beside the title. */
.page-hero--paper {
  background: var(--bg-alt);
  color: var(--text);
}
.page-hero--paper::after {
  background: radial-gradient(ellipse at 85% 20%, color-mix(in srgb, var(--ember) 22%, transparent), transparent 60%);
}
.page-hero--paper .eyebrow { color: var(--accent); }
.page-hero--paper h1 em { color: var(--accent); }
.page-hero--paper .lede { color: var(--text-muted); }
.page-hero--paper .crumbs { color: var(--text-muted); }
.page-hero--paper .crumbs a:hover { color: var(--text); }
.page-hero--paper .stats { background: var(--line); }
.page-hero--paper .stats div { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
.page-hero--paper .stats dt { color: var(--text-muted); }
.page-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.page-hero__art img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  rotate: 1.5deg;
}
@media (max-width: 900px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__art { order: -1; max-width: 520px; }
}

.recipe-grid--three .recipe-card,
.recipe-grid--three .recipe-card:nth-child(-n + 2) { grid-column: span 2; }
@media (max-width: 960px) {
  .recipe-grid--three .recipe-card,
  .recipe-grid--three .recipe-card:nth-child(-n + 2) { grid-column: span 1; }
}

/* ------------------------------------------------------------ starter */

.needs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.need { background: var(--bg); padding: 26px 26px 28px; }
.need h4 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 460; margin-bottom: 6px; }
.need p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
@media (max-width: 860px) { .needs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .needs { grid-template-columns: 1fr; } }

.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.stage {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stage__when span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.5vw + 1rem, 2.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.stage__when small {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.stage--lull { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent); }
.stage h3 { margin-bottom: 16px; }
.stage__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stage__cols h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stage__cols p { margin: 0; font-size: 0.98rem; }
.stage__outlook { margin: 20px 0 0; padding-top: 16px; border-top: 1px dashed var(--line); color: var(--text-muted); font-size: 0.9rem; font-style: italic; }
@media (max-width: 760px) {
  .stage { grid-template-columns: 1fr; }
  .stage__cols { grid-template-columns: 1fr; }
}

/* Captions over photos get a scrim so they read on pale linen as well as dark wood. */
.split__media:has(figcaption)::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(0deg, rgb(14 9 6 / 0.72), transparent);
  pointer-events: none;
}
.split__media figcaption { z-index: 1; }

/* Checks take the section's accent, so they work on paper and on char. */
.checks li::before {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 20px;
  height: 20px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* ------------------------------------------------------- small screens */

.brand svg { flex: none; }

@media (max-width: 520px) {
  /* The hero and the menu sheet both carry the app button; the bar keeps the
   * logo and the menu, which is all that fits at phone width. */
  .site-nav__inner > .btn { display: none; }
}

@media (max-width: 720px) {
  /* Put the loaf in the top of the frame and the words underneath it, rather
   * than stacking the words on top of the loaf. */
  .hero__media { bottom: auto; height: 60%; }
  .hero__media img,
  .hero__media video { object-position: 66% 50%; }
  .hero::after {
    background: linear-gradient(0deg, var(--char) 0%, var(--char) 40%, rgb(18 12 9 / 0.55) 54%, rgb(18 12 9 / 0.08) 78%, rgb(18 12 9 / 0.25) 100%);
  }
  .hero__content { padding-top: 46vh; }
  .hero__meta,
  .hero .eyebrow { display: none; }
  .hero__title { margin-bottom: 18px; }
  .hero .lede { margin-bottom: 26px; }
  .hero__actions { gap: 10px; }
}
