/* SimplyDough — luxury editorial meets fermentation command center.
   Palette from the owner's loaf photography. Amber is reserved for active processes. */

@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-italic.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/geist-var.woff2') format('woff2'); }

:root {
  --flour: #E9E3D9;
  --stone: #B9B0A3;
  --gold: #E8B363;
  --caramel: #BC752F;
  --ear: #64361E;
  --char: #29221D;
  --sun: #FAF3E5;
  --amber: #D99540;
  --shadow: #746658;
  --bg: #1B1511;
  --sage: #8C9A62;
  --serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --r: 18px;
  --r-sm: 12px;
  --side: 264px;
  --tabs: 66px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--sun); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overscroll-behavior-y: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
i, em { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.num { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: 'tnum' 1, 'lnum' 1; }
.serif { font-family: var(--serif); font-weight: 400; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---- Ink context: every surface sets its own ink, muted ink, hairline and accent ---- */
.view, .side, .top, .tabs { --ink: var(--sun); --mute: var(--stone); --line: rgba(250, 243, 229, .13); --accent: var(--gold); --field: rgba(250, 243, 229, .05); }
.card-cream { --ink: var(--char); --mute: var(--shadow); --line: rgba(41, 34, 29, .13); --accent: var(--caramel); --field: rgba(41, 34, 29, .045); background: var(--sun); color: var(--char); border-radius: var(--r); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55); }
.card-dark { --ink: var(--sun); --mute: var(--stone); --line: rgba(250, 243, 229, .13); --accent: var(--gold); --field: rgba(250, 243, 229, .05); background: var(--char); color: var(--sun); border-radius: var(--r); border: 1px solid rgba(250, 243, 229, .07); }

.label { font: 500 11px/1.3 var(--sans); letter-spacing: .17em; text-transform: uppercase; color: var(--mute); }
.label.gold { color: var(--accent); }
.hint { font-size: 13px; line-height: 1.45; color: var(--mute); }

/* ---- Wordmark ---- */
.wordmark { font-family: var(--serif); font-size: 27px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.wm-simply { color: var(--sun); }
.wm-dough { color: var(--gold); font-style: italic; margin-left: .04em; }

.lang { display: inline-flex; gap: 2px; }
.lang button { font: 600 12px/1 var(--sans); letter-spacing: .14em; padding: 10px 8px; color: var(--stone); border-bottom: 1.5px solid transparent; }
.lang button.on { color: var(--gold); border-bottom-color: var(--gold); }

/* ---- Shell: mobile ---- */
.side { display: none; }
.top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: calc(58px + var(--safe-t)); padding: var(--safe-t) 20px 0; display: flex; align-items: center; justify-content: space-between; }
.view { min-height: 100vh; min-height: 100dvh; padding: calc(74px + var(--safe-t)) 20px calc(var(--tabs) + var(--safe-b) + 36px); outline: none; }
.tabs { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--tabs) + var(--safe-b)); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(27, 21, 17, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--stone); font: 500 11px/1 var(--sans); letter-spacing: .02em; }
.tabs a .ic { width: 22px; height: 22px; }
.tabs a.on { color: var(--sun); }
.tabs a.on .ic { color: var(--gold); }
.nav-dot { position: absolute; top: 11px; left: calc(50% + 9px); width: 7px; height: 7px; border-radius: 50%; display: none; }
[data-dot='run'] .nav-dot { display: block; background: var(--amber); animation: pulse 2s ease-in-out infinite; }
[data-dot='done'] .nav-dot { display: block; background: var(--gold); }

/* ---- Shell: desktop ---- */
@media (min-width: 1000px) {
  .top, .tabs { display: none; }
  .side { display: flex; flex-direction: column; position: fixed; z-index: 10; inset: 0 auto 0 0; width: var(--side); padding: 36px 22px 22px; background: var(--bg); border-right: 1px solid var(--line); overflow-y: auto; }
  .side .wordmark { font-size: 36px; padding: 0 10px; }
  .side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 44px; }
  .side-nav a { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 12px; color: var(--stone); font-size: 15px; font-weight: 450; transition: color .2s, background .2s; }
  .side-nav a:hover { color: var(--sun); }
  .side-nav a.on { color: var(--sun); background: rgba(250, 243, 229, .06); }
  .side-nav a.on .ic { color: var(--gold); }
  .side-nav .nav-dot { position: static; margin-left: auto; }
  .side-foot { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 18px; }
  .side-foot .lang { padding: 0 4px; }
  .side-photo { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--char); }
  .side-photo img { width: 100%; height: 100%; object-fit: cover; }
  .side-photo.nophoto img { display: none; }
  .side-photo figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 16px 16px; background: linear-gradient(to top, rgba(27, 21, 17, .92), rgba(27, 21, 17, 0)); font: 500 10.5px/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--flour); }
  .side-photo figcaption em { display: block; margin-top: 4px; font: italic 400 19px/1.1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--gold); }
  .view { margin-left: var(--side); padding: 52px clamp(32px, 4.4vw, 68px) 96px; }
  .app[data-tone='light'] .view { --ink: var(--char); --mute: var(--shadow); --line: rgba(41, 34, 29, .14); --accent: var(--caramel); --field: rgba(41, 34, 29, .045); background: var(--flour); color: var(--char); }
  .app[data-tone='light'] .card-cream { box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 14px 30px -22px rgba(100, 54, 30, .5); }
  .view > * { max-width: 1160px; }
}

/* ---- View entrance ---- */
.view.enter > * { animation: rise .55s var(--ease) both; }
.view.enter > *:nth-child(2) { animation-delay: .06s; }
.view.enter > *:nth-child(3) { animation-delay: .12s; }
.view.enter > *:nth-child(4) { animation-delay: .18s; }
.view.enter > *:nth-child(n + 5) { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---- Headers ---- */
.vhead { margin-bottom: 26px; }
.vhead .label { margin-bottom: 12px; }
.vtitle { font: 400 46px/1 var(--serif); letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
.vsub { margin-top: 14px; max-width: 46ch; color: var(--mute); font-size: 16px; }
.vhead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px; font: 500 11px/1 var(--sans); letter-spacing: .17em; text-transform: uppercase; color: var(--mute); padding: 8px 0; }
.back .ic { width: 16px; height: 16px; }
@media (min-width: 1000px) { .vtitle { font-size: 66px; } .vhead { margin-bottom: 36px; } }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 20px; border-radius: 14px; font: 600 15px/1 var(--sans); letter-spacing: .005em; white-space: nowrap; transition: transform .15s var(--ease), background .2s, border-color .2s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn .ic { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: var(--char); }
.btn-gold:hover { background: #EDBF7A; }
.btn-dark { background: var(--char); color: var(--sun); }
.btn-dark:hover { background: #352C25; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--mute); }
.btn-lg { height: 56px; font-size: 16px; padding: 0 24px; }
.btn-xl { height: 72px; width: 100%; font-size: 19px; border-radius: 18px; }
.linkbtn { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1.2 var(--sans); color: inherit; padding: 6px 0; }
.linkbtn .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.linkbtn:hover .ic { transform: translateX(3px); }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line); color: var(--mute); cursor: pointer; }
.iconbtn:hover { color: var(--ink); border-color: var(--mute); }
.round { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; flex: none; border-radius: 50%; background: var(--gold); color: var(--char); transition: transform .15s var(--ease), background .2s; }
.round:active { transform: scale(.94); }
.round .ic { width: 24px; height: 24px; }
.round-lg { width: 76px; height: 76px; }
.round-lg .ic { width: 30px; height: 30px; }

/* ---- Fields ---- */
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field input[type='text'], .field input[type='number'], .field input[type='datetime-local'], .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--field); color: var(--ink); font-size: 16px; -webkit-appearance: none; appearance: none; }
.field textarea { resize: vertical; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: var(--mute); opacity: .75; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.selectwrap { position: relative; display: block; }
.selectwrap select { padding-right: 40px; }
.selectwrap .ic { position: absolute; right: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%) rotate(90deg); color: var(--mute); pointer-events: none; }
.fieldrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.formrow { display: flex; flex-wrap: wrap; gap: 10px; }
input[type='range'] { width: 100%; accent-color: var(--caramel); height: 28px; }
.rangeends { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); margin-top: -6px; }

.seg { display: inline-flex; padding: 3px; border-radius: 13px; border: 1px solid var(--line); gap: 2px; }
.seg button { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 62px; padding: 9px 14px; border-radius: 10px; color: var(--mute); transition: background .2s, color .2s; }
.seg button b { font-weight: 600; font-size: 14px; line-height: 1; }
.seg button i { font-size: 12px; line-height: 1; }
.seg button.on { background: var(--ink); color: var(--sun); }
.card-dark .seg button.on, .v-timers .seg button.on, .v-bake .seg button.on { background: var(--gold); color: var(--char); }
.seg-sm button { min-width: 44px; padding: 8px 11px; }
.seg-sm button b { font-size: 13px; }
@media (max-width: 999px) { .seg.on-page button.on { background: var(--gold); color: var(--char); } }
@media (min-width: 1000px) { .app[data-tone='light'] .view .seg button.on { background: var(--char); color: var(--sun); } }

.stepper { display: flex; align-items: center; gap: 10px; }
.stepper > button { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid var(--line); font-size: 22px; line-height: 1; color: var(--ink); }
.stepper > button:active { background: var(--field); }
.stepper output { min-width: 86px; text-align: center; font-size: 26px; font-weight: 500; letter-spacing: -.01em; }
.stepper .seg { margin-left: auto; }
.stepper-sm > button { width: 34px; height: 34px; font-size: 17px; }
.stepper-sm output { min-width: 58px; font-size: 16px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--stone); }
.dot-ok { background: var(--sage); box-shadow: 0 0 0 3px rgba(140, 154, 98, .22); }
.dot-amber { background: var(--amber); animation: pulse 2.2s ease-in-out infinite; }
.dot-warn { background: var(--caramel); }
.rating { display: inline-flex; align-items: baseline; justify-content: center; min-width: 46px; height: 46px; padding: 0 9px; border-radius: 50%; background: var(--gold); color: var(--char); font: 600 18px/46px var(--sans); }
.rating small { font-size: 11px; font-weight: 500; opacity: .7; }

.toasts { position: fixed; z-index: 40; left: 0; right: 0; bottom: calc(var(--tabs) + var(--safe-b) + 14px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { max-width: 440px; padding: 13px 18px; border-radius: 14px; background: var(--char); color: var(--sun); border: 1px solid rgba(250, 243, 229, .14); font-size: 14px; box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .7); animation: rise .35s var(--ease) both; transition: opacity .4s, transform .4s; }
.toast.gold { border-color: var(--gold); }
.toast.out { opacity: 0; transform: translateY(8px); }
@media (min-width: 1000px) { .toasts { left: var(--side); bottom: 28px; } }

/* =========================== TODAY =========================== */
.v-today { padding-top: 0; padding-left: 0; padding-right: 0; }
/* Mobile hero: type on the dark above, the loaf rising out of the page below it. */
.hero { position: relative; height: clamp(520px, 66vh, 600px); display: flex; align-items: flex-start; overflow: hidden; }
.hero-photo-m { position: absolute; inset: auto 0 0 0; aspect-ratio: 1100 / 1056; max-height: 76%; }
.hero-photo-m img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-photo-m::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg) 0%, rgba(27, 21, 17, 0) 24%, rgba(27, 21, 17, 0) 76%, var(--bg) 100%); }
.hero-photo.nophoto img { display: none; }
.hero-copy { position: relative; padding: calc(78px + var(--safe-t)) 22px 0; }
.hero-kicker { margin-bottom: 10px; }
.display { font: 400 104px/.86 var(--serif); letter-spacing: -.025em; color: var(--sun); }
.display em { font-style: italic; color: var(--gold); }
.hero-sub { margin-top: 14px; font: italic 400 25px/1.1 var(--serif); color: var(--flour); }
.hero-date { margin-top: 12px; font-size: 13px; letter-spacing: .04em; color: var(--stone); }
.hero-d, .hero-photo-d, .starterpill { display: none; }
.home-body { display: flex; flex-direction: column; gap: 14px; padding: 4px 20px 0; }

.startercard { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; }
.startercard-thumb { width: 66px; height: 66px; flex: none; border-radius: 13px; overflow: hidden; background: var(--flour); }
.startercard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.startercard-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.startercard-body b { font-weight: 600; font-size: 16px; line-height: 1.25; }
.startercard-body i { font-size: 13.5px; color: var(--mute); }
.startercard > .ic { color: var(--mute); width: 18px; height: 18px; }
.home-cta { width: 100%; }

.board { display: grid; gap: 22px; padding: 22px; border-radius: 20px; background: var(--char); color: var(--sun); border: 1px solid rgba(250, 243, 229, .08); --mute: var(--stone); --accent: var(--gold); }
.board-col .label { margin-bottom: 10px; }
.board-name { font: 400 34px/1 var(--serif); letter-spacing: -.01em; }
.board-meta { margin-top: 10px; color: var(--stone); font-size: 14.5px; max-width: 40ch; }
.board-stagename { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 500; }
.board-stagename .ic { color: var(--amber); }
.board-clock { margin-top: 6px; font-size: 56px; line-height: 1; font-weight: 400; letter-spacing: -.02em; }
.board-clock small { display: block; margin-top: 8px; font-size: 14px; letter-spacing: .02em; color: var(--stone); }
.board-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 -22px -22px; padding: 15px 22px; border-radius: 0 0 19px 19px; background: var(--gold); color: var(--char); font-size: 15px; }
.board-strip b { font-weight: 650; }
.board-strip > .ic { margin-left: auto; width: 18px; height: 18px; }
.board-strip .linkbtn { width: 100%; justify-content: space-between; font-size: 15px; }
.board.is-idle .board-strip, .board.is-plan .board-strip { background: transparent; color: var(--gold); border-top: 1px solid rgba(250, 243, 229, .1); }

.planline { padding: 20px 20px 10px; }
.planline header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.planline-name { font: italic 400 19px/1 var(--serif); color: var(--mute); }
.hline-step { position: relative; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; }
.hline-step::before { content: ''; position: absolute; left: 12.5px; top: -50%; height: 100%; border-left: 1.5px dashed var(--stone); }
.hline-step:first-child::before { display: none; }
.hline-step.is-done::before, .hline-step.is-current::before { border-left: 1.5px solid var(--gold); }
.hline-node { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed var(--stone); background: var(--sun); display: flex; align-items: center; justify-content: center; }
.hline-node .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.is-done .hline-node { border: 0; background: var(--gold); color: var(--char); }
.is-current .hline-node { border: 2px solid var(--caramel); box-shadow: 0 0 0 4px rgba(217, 149, 64, .22); }
.is-current .hline-node::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 2s ease-in-out infinite; }
.hline-name { font-size: 14.5px; font-weight: 500; }
.is-upcoming .hline-name { color: var(--mute); }
.hline-time { font-size: 13.5px; color: var(--mute); }

.trio { display: grid; gap: 14px; }
.tile { display: flex; flex-direction: column; padding: 20px; min-height: 0; }
.tile-big { margin: 14px 0 4px; font-size: 44px; line-height: 1; font-weight: 400; letter-spacing: -.02em; }
.tile-line { font: 400 22px/1.15 var(--serif); margin-top: 6px; }
.tile-sub { margin-top: 8px; font-size: 13.5px; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-rows { margin-top: 14px; border-top: 1px solid var(--line); }
.tile-rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tile-rows li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-rows li i { color: var(--mute); font-size: 13px; white-space: nowrap; }
.tile-go { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 18px; font: 600 14px/1 var(--sans); color: var(--accent); }
.tile-go .ic { width: 16px; height: 16px; }
.card-cream .tile-go { color: var(--ear); }
.tile-photo { position: relative; display: block; margin: -8px -8px 16px; aspect-ratio: 16 / 10; border-radius: 13px; overflow: hidden; background: var(--char); }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.tile-photo .rating { position: absolute; top: 10px; right: 10px; }

@media (min-width: 1000px) {
  .v-today { padding: 34px clamp(32px, 4.4vw, 68px) 96px; }
  .hero { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-rows: auto 1fr; gap: 26px 44px; align-items: center; min-height: 0; height: auto; max-height: none; margin-bottom: 30px; }
  .hero-photo-m, .hero-m { display: none; }
  .hero-d { display: block; }
  .hero-copy { grid-column: 1; grid-row: 2; }
  .hero-photo-d { grid-column: 2; grid-row: 2; }
  .starterpill { grid-column: 1 / -1; grid-row: 1; justify-self: end; display: inline-flex; align-items: center; gap: 4px; padding: 6px 18px 6px 6px; border-radius: 16px; background: var(--sun); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 12px 26px -20px rgba(100, 54, 30, .6); font-size: 14px; }
  .starterpill-thumb { width: 40px; height: 40px; border-radius: 11px; overflow: hidden; margin-right: 10px; background: var(--flour); }
  .starterpill-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .starterpill b { font-weight: 600; }
  .starterpill span:last-child { color: var(--shadow); margin-left: 8px; padding-left: 10px; border-left: 1px solid rgba(41, 34, 29, .16); }
  .hero-copy { padding: 0; }
  .hero-kicker { margin-bottom: 20px; }
  .display { color: var(--char); font-size: clamp(74px, 7.6vw, 118px); line-height: .88; }
  .display em { color: var(--caramel); }
  .hero-verbs { margin-top: 26px; letter-spacing: .26em; }
  .hero-date { margin-top: 10px; color: var(--shadow); }
  .hero-cta { display: inline-flex; margin-top: 30px; }
  .hero-photo-d { display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 11; background: var(--char); box-shadow: 0 30px 60px -34px rgba(41, 34, 29, .75); }
  .hero-photo-d img { width: 100%; height: 100%; object-fit: cover; }
  .home-body { padding: 0; gap: 22px; }
  .startercard, .home-cta { display: none; }
  .board { grid-template-columns: 1fr 1fr; gap: 30px 44px; padding: 30px 32px; }
  .board-name { font-size: 46px; }
  .board-stage { padding-left: 44px; border-left: 1px solid rgba(250, 243, 229, .12); }
  .board-clock { font-size: 78px; }
  .board-strip { grid-column: 1 / -1; margin: 0 -32px -30px; padding: 16px 32px; }
  .board.is-idle { grid-template-columns: 1fr; }
  .planline { padding: 26px 30px 26px; }
  .hline { display: flex; }
  .hline-step { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 0 12px 0 0; }
  .hline-step::before { left: auto; right: 100%; top: 12.5px; width: 100%; height: 0; border-left: 0; border-top: 1.5px dashed var(--stone); margin-right: -26px; }
  .hline-step.is-done::before, .hline-step.is-current::before { border-left: 0; border-top: 1.5px solid var(--gold); }
  .hline-name { margin-top: 14px; font-size: 14px; line-height: 1.25; }
  .hline-time { margin-top: 4px; font-size: 13px; }
  .trio { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .tile { padding: 24px; min-height: 220px; }
  .tile-big { font-size: 54px; }
}

/* =========================== TIMERS =========================== */
.tgrid { display: grid; gap: 30px; }
.tstack { display: flex; flex-direction: column; gap: 14px; }
.tcard { display: grid; grid-template-columns: 88px 1fr auto; align-items: center; gap: 4px 16px; padding: 18px 18px 0; border-radius: 20px; background: var(--char); border: 1px solid rgba(250, 243, 229, .08); transition: border-color .6s, box-shadow .6s; }
.tcard-ring { position: relative; width: 88px; height: 88px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.ring-track { fill: none; stroke: rgba(250, 243, 229, .1); stroke-width: 5; }
.ring-arc { fill: none; stroke: var(--amber); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke .5s; }
.tcard-ic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--stone); }
.tcard-ic .ic { width: 24px; height: 24px; }
.tcard-main { min-width: 0; }
.tcard-time { margin-top: 5px; font-size: 50px; line-height: 1; font-weight: 400; letter-spacing: -.025em; color: var(--sun); }
.tcard-time.is-word { font: italic 400 46px/1.08 var(--serif); letter-spacing: 0; color: var(--gold); }
.tcard-sub { margin-top: 7px; font-size: 13px; color: var(--stone); }
.tcard-recipe { margin-top: 3px; font: italic 400 16px/1.2 var(--serif); color: var(--stone); }
.tcard-foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 20px; margin-top: 14px; padding: 4px 0; border-top: 1px solid rgba(250, 243, 229, .07); }
.tcard-foot button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.tcard-foot button:hover { color: var(--sun); }
.tcard-foot .ic { width: 14px; height: 14px; }
.tcard.is-run .tcard-ic { color: var(--amber); }
.tcard.is-paused .ring-arc { stroke: var(--stone); }
.tcard.is-paused .tcard-time { color: var(--stone); }
.tcard.is-done { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 18px 44px -26px rgba(232, 179, 99, .7); }
.tcard.is-done .ring-arc { stroke: var(--gold); }
.tcard.is-done .tcard-ic { color: var(--gold); }
.tcard.just-done { animation: complete 1.1s var(--ease); }
.tcard.count-up [data-title] { animation: flip .5s var(--ease); }
@keyframes complete { 0% { transform: scale(1); } 35% { transform: scale(1.018); } 100% { transform: scale(1); } }
@keyframes flip { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: none; } }

.bakebar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(232, 179, 99, .45); color: var(--sun); }
.bakebar .label { grid-column: 1 / -1; }
.bakebar-name { font: 400 26px/1.05 var(--serif); grid-row: 2; }
.bakebar-step { grid-row: 3; font-size: 13px; color: var(--stone); }
.bakebar .ic { grid-row: 2 / 4; grid-column: 2; color: var(--gold); }

.tempty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 38px 24px 42px; border-radius: 20px; border: 1px dashed rgba(250, 243, 229, .16); }
.tempty-ring { width: 120px; height: 120px; margin-bottom: 22px; }
.tempty .ring-arc { stroke: var(--stone); stroke-width: 3; }
.tempty .ring-track { stroke-width: 3; }
.tempty h2 { font: 400 30px/1.05 var(--serif); }
.tempty p { margin-top: 10px; max-width: 34ch; color: var(--stone); font-size: 15px; }

.tadd { display: flex; flex-direction: column; gap: 10px; }
.tadd-label { margin-top: 18px; }
.flow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 15px 16px; border-radius: 16px; border: 1px solid var(--line); }
.flow > .ic:first-child { color: var(--gold); width: 22px; height: 22px; }
.flow > .ic:last-child { color: var(--stone); width: 16px; height: 16px; }
.flow span { display: flex; flex-direction: column; gap: 3px; }
.flow b { font-weight: 600; font-size: 15.5px; }
.flow i { font-size: 13px; color: var(--stone); }
.presets { display: grid; gap: 2px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.preset { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--line); min-height: 56px; }
.preset:last-child { border-bottom: 0; }
.preset:hover { background: var(--field); }
.preset > .ic:first-child { color: var(--stone); }
.preset span { font-size: 15px; font-weight: 500; }
.preset b { font-weight: 400; font-size: 14px; color: var(--stone); }
.preset > .ic:last-child { color: var(--gold); width: 18px; height: 18px; }
.custom { display: grid; grid-template-columns: 1fr 96px; gap: 10px; margin-top: 8px; }
.custom .btn { grid-column: 1 / -1; }
@media (max-width: 999px) {
  .tcard { grid-template-columns: 64px 1fr auto; gap: 4px 12px; padding: 16px 16px 0; }
  .tcard-ring { width: 64px; height: 64px; }
  .tcard-ic .ic { width: 20px; height: 20px; }
  .tcard-time { font-size: 42px; }
  .tcard-time.is-word { font-size: 40px; }
  .tcard .round { width: 54px; height: 54px; }
}
@media (min-width: 1000px) {
  .tgrid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 44px; align-items: start; }
  .tcard { grid-template-columns: 112px 1fr auto; padding: 24px 26px 0; gap: 4px 24px; }
  .tcard-ring { width: 112px; height: 112px; }
  .tcard-time { font-size: 68px; }
  .tcard-time.is-word { font-size: 60px; }
  .round { width: 68px; height: 68px; }
}

/* =========================== GUIDED BAKE =========================== */
.ghead { margin-bottom: 26px; }
.ghead .back { margin-bottom: 14px; }
.gcount { margin-top: 8px; font-size: 15px; color: var(--stone); }
.gdots { display: flex; align-items: center; gap: 0; margin-top: 16px; }
.gdots li { position: relative; flex: 1; max-width: 64px; height: 18px; display: flex; align-items: center; }
.gdots li::before { content: ''; position: absolute; left: 18px; right: 0; top: 50%; border-top: 1.5px solid rgba(250, 243, 229, .16); }
.gdots li:last-child { flex: none; width: 18px; }
.gdots li:last-child::before { display: none; }
.gdots li::after { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(250, 243, 229, .28); flex: none; }
.gdots li.is-done::after { border: 0; background: var(--gold); }
.gdots li.is-done::before { border-color: var(--gold); }
.gdots li.is-done .ic { position: absolute; left: 3px; top: 3px; width: 12px; height: 12px; color: var(--char); stroke-width: 2.6; z-index: 1; }
.gdots li.is-current::after { border: 2px solid var(--gold); box-shadow: 0 0 0 5px rgba(232, 179, 99, .18); }
.gbody { display: grid; gap: 30px; }
.gbody.step-in { animation: stepin .5s var(--ease) both; }
.gbody.step-back { animation: stepback .5s var(--ease) both; }
@keyframes stepin { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes stepback { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }
.gtitle { font: 400 58px/.96 var(--serif); letter-spacing: -.018em; text-wrap: balance; }
.gtext { margin-top: 16px; font-size: 19px; line-height: 1.5; color: var(--flour); max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { display: flex; flex-direction: column; gap: 6px; padding: 12px 15px 13px; border-radius: 13px; border: 1px solid var(--line); min-width: 116px; }
.chip dd { font-size: 17px; font-weight: 500; line-height: 1.1; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--char); border: 1px solid rgba(250, 243, 229, .08); }
.gmain .video { margin-top: 24px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; width: 100%; display: flex; align-items: flex-end; gap: 16px; padding: 18px; text-align: left; color: var(--sun); background: var(--char); }
.gmain .video-poster { background: linear-gradient(to top, rgba(27, 21, 17, .94) 0%, rgba(27, 21, 17, .55) 45%, rgba(27, 21, 17, .25) 100%), url('../img/hands.jpg') center / cover; }
.video-play { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; flex: none; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); transition: background .2s, color .2s; }
.video-play .ic { width: 22px; height: 22px; margin-left: 3px; }
.video-poster:hover .video-play { background: var(--gold); color: var(--char); }
.video-meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.video-meta .label { color: var(--gold); }
.video-meta b { font: 400 25px/1.05 var(--serif); }
.video-meta i { font-size: 13px; color: var(--stone); }

.gtimer { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.bigring { position: relative; width: min(74vw, 300px); aspect-ratio: 1; }
.ring-big .ring-track, .ring-big .ring-arc { stroke-width: 3.4; }
.bigring[data-state='paused'] .ring-arc { stroke: var(--stone); }
.bigring[data-state='done'] .ring-arc { stroke: var(--gold); }
.bigring-read { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.bigring-time { font-size: clamp(50px, 15vw, 66px); line-height: 1; letter-spacing: -.03em; }
.bigring-time.is-word { font: italic 400 58px/1 var(--serif); letter-spacing: 0; color: var(--gold); }
.bigring-sub { margin-top: 10px; font-size: 13.5px; color: var(--stone); max-width: 70%; }
.gtimer .round-lg { margin-top: -6px; }
.foldstrip { width: 100%; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 18px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(232, 179, 99, .4); transition: background .4s, border-color .4s; }
.foldstrip-count { display: flex; flex-direction: column; gap: 6px; }
.foldstrip-count b { font-size: 30px; line-height: 1; font-weight: 500; display: inline-block; }
.foldstrip-count b.flip { animation: countflip .6s var(--ease); color: var(--gold); }
@keyframes countflip { 0% { transform: translateY(16px) scale(.8); opacity: 0; } 60% { transform: translateY(-3px) scale(1.12); opacity: 1; } 100% { transform: none; } }
.foldstrip-next { justify-self: end; font-size: 16px; color: var(--flour); }
.foldstrip .btn { grid-column: 1 / -1; height: 56px; }
.foldstrip.is-due { background: rgba(217, 149, 64, .16); border-color: var(--amber); }
.foldstrip.is-due .foldstrip-next { color: var(--gold); font-weight: 600; }
.foldstrip.is-complete { border-color: var(--line); }
.gfoot { width: 100%; display: flex; justify-content: space-between; color: var(--stone); }
.gfoot .linkbtn { font-weight: 500; padding: 12px 0; }
.gchoose { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.gchoose > .label { margin-top: 16px; }
.gtemp { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); }
.glist { display: grid; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.grow { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; min-height: 72px; text-align: left; border-bottom: 1px solid var(--line); }
.glist li:last-child .grow { border-bottom: 0; }
.grow:hover { background: var(--field); }
.grow span { display: flex; flex-direction: column; gap: 5px; }
.grow b { font: 400 25px/1.05 var(--serif); }
.grow i { font-size: 13px; color: var(--stone); }
.grow .ic { color: var(--gold); }
@media (min-width: 1000px) {
  .gbody { grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 64px; align-items: start; }
  .gtitle { font-size: 92px; }
  .gtext { font-size: 22px; }
  .bigring { width: 340px; }
  .bigring-time { font-size: 80px; }
}

/* =========================== PLAN =========================== */
.plangrid { display: grid; gap: 16px; }
.planform { display: flex; flex-direction: column; gap: 22px; padding: 22px 20px; }
.plansum { padding-top: 20px; border-top: 1px solid var(--line); }
.plansum-when { margin-top: 10px; font: 400 40px/1 var(--serif); letter-spacing: -.01em; }
.plansum-what { margin-top: 8px; font-size: 14px; color: var(--mute); }
.planwarn { padding: 14px 16px; border-radius: 13px; background: rgba(217, 149, 64, .16); border: 1px solid rgba(188, 117, 47, .5); font-size: 14px; }
.planwarn .linkbtn { margin-top: 6px; color: var(--ear); }
.plannight { padding: 14px 16px; border-radius: 13px; border: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.plannight .linkbtn { margin-top: 6px; color: var(--ear); }
.vline-row.is-night .vline-time { color: var(--mute); }
.vline-row.is-night .vline-time::after { content: ' ☾'; font-size: 12px; }
.timeline { padding: 22px 20px 20px; }
.timeline > .hint { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.vline { margin-top: 8px; }
.vline-day { padding: 16px 0 6px; }
.vline-day:first-child { padding-top: 8px; }
.vline-row { position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 9px 0; }
.vline-row::before { content: ''; position: absolute; left: 19.5px; top: -9px; height: 18px; border-left: 1.5px solid rgba(41, 34, 29, .16); }
.vline-day + .vline-row::before, .vline-row:first-child::before { display: none; }
.vline-ic { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--flour); color: var(--ear); }
.vline-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vline-main b { font-weight: 600; font-size: 15.5px; line-height: 1.2; }
.vline-main i { font-size: 13px; color: var(--mute); }
.vline-time { font-size: 17px; font-weight: 500; white-space: nowrap; }
.vline-row.is-marker .vline-ic { background: transparent; border: 1.5px dashed var(--stone); }
.vline-row.is-target .vline-ic { background: var(--gold); color: var(--char); }
.vline-row.is-target .vline-main b { font: 400 23px/1.05 var(--serif); }
.vline-row.is-target .vline-time { font-size: 21px; color: var(--ear); }
.vline-row.is-after { opacity: .62; }
.saved { margin-top: 30px; }
.saved > .label { margin-bottom: 12px; color: var(--ink); opacity: .8; }
.savedlist { display: grid; gap: 12px; }
.savedrow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; }
.savedrow-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.savedrow-main b { font: 400 24px/1.1 var(--serif); }
.savedrow-main i { font-size: 13px; color: var(--mute); }
@media (max-width: 520px) { .savedrow { grid-template-columns: 1fr auto; } .savedrow .btn { grid-column: 1; grid-row: 2; justify-self: start; } .savedrow .iconbtn { grid-row: 1 / 3; } }
@media (min-width: 1000px) {
  .plangrid { grid-template-columns: minmax(340px, .8fr) minmax(0, 1.2fr); gap: 26px; align-items: start; }
  .planform { padding: 30px; position: sticky; top: 28px; }
  .timeline { padding: 30px 34px; }
  .plansum-when { font-size: 46px; }
  .v-plan .vtitle { font-size: 58px; max-width: 15ch; }
}

/* =========================== RECIPES =========================== */
.rindex { display: grid; gap: 34px; }
.rsec { margin-top: 44px; }
.rindex .rsec { margin-top: 0; }
.rsec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rsec-head .serif { font-size: 32px; line-height: 1; color: var(--ink); }
.rlist { overflow: hidden; }
.rlist li + li { border-top: 1px solid var(--line); }
.rrow { display: grid; grid-template-columns: 22px 56px 1fr auto 16px; align-items: center; gap: 12px; padding: 15px 16px 15px 16px; min-height: 86px; transition: background .2s; }
a.rrow:hover { background: rgba(41, 34, 29, .035); }
.rrow-no { font-size: 12px; color: var(--mute); letter-spacing: .04em; }
.rrow-thumb { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 11px; overflow: hidden; background: var(--char); }
.rrow-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rrow-thumb .mark { width: 36px; height: 36px; color: var(--gold); opacity: .8; }
.rrow.is-locked .rrow-thumb { opacity: .45; }
.rrow-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rrow-main b { font: 400 25px/1.05 var(--serif); letter-spacing: -.005em; }
.rrow-main i { font-size: 13.5px; line-height: 1.35; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rrow-hyd { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 19px; font-weight: 500; }
.rrow-hyd small { font: 500 9.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.rrow > .ic { width: 16px; height: 16px; color: var(--mute); }
.rrow.is-locked { grid-template-columns: 22px 56px 1fr auto; cursor: default; }
.rrow.is-locked .rrow-main b { color: var(--mute); }
.rrow-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .14em; color: var(--mute); }
.rrow-lock .ic { width: 16px; height: 16px; }
.rrow.is-locked .rrow-main i.label { font-size: 10px; letter-spacing: .15em; display: block; }
/* The technique library is a compact list of posters; a tile grows to 16:9 only while its video plays. */
.techgrid .video { aspect-ratio: auto; }
.techgrid .video:has(iframe) { aspect-ratio: 16 / 9; }
.techgrid .video-poster { position: relative; align-items: center; padding: 14px 16px; min-height: 86px; }
.techgrid .video-play { width: 46px; height: 46px; }
.techgrid .video-play .ic { width: 18px; height: 18px; }
.techgrid .video-meta b { font-size: 22px; }
.rrow.nudge { animation: nudge .4s var(--ease); }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-5px); } 65% { transform: translateX(4px); } }
.techgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
@media (max-width: 520px) { .rrow-hyd small { display: none; } .rrow-main b { font-size: 23px; } a.rrow .rrow-main i { display: none; } .rrow { min-height: 80px; } }
@media (min-width: 1000px) {
  .rindex { grid-template-columns: 1fr 1fr; gap: 34px 30px; align-items: start; }
  .rindex .rsec:first-child { grid-row: span 3; }
  .techgrid { grid-template-columns: repeat(4, 1fr); }
}

.acc { background: var(--sun); color: var(--char); border-radius: var(--r); padding: 4px 20px; --mute: var(--shadow); }
.acc details + details { border-top: 1px solid rgba(41, 34, 29, .13); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 0; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary b { font: 400 23px/1.1 var(--serif); }
.acc summary .ic { width: 18px; height: 18px; color: var(--caramel); transition: transform .3s var(--ease); }
.acc details[open] summary .ic { transform: rotate(45deg); }
.acc-body { display: grid; gap: 12px; padding: 0 0 20px; }
.acc-body p { font-size: 15px; line-height: 1.5; }
.acc-body .label { display: block; margin-bottom: 4px; }
.rsec > .hint { margin-top: 12px; }

.rhead { position: relative; display: grid; border-radius: 22px; overflow: hidden; background: var(--char); color: var(--sun); --mute: var(--stone); --accent: var(--gold); }
.rhead-photo { aspect-ratio: 16 / 10; background: var(--bg); }
.rhead-photo img { width: 100%; height: 100%; object-fit: cover; }
.rhead-plate { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.rhead-plate img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; opacity: .8; }
.rhead-plate::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, var(--char) 0%, rgba(41, 34, 29, .82) 42%, rgba(41, 34, 29, .1) 100%); }
.rhead-copy { position: relative; padding: 26px 22px 24px; }
.rtitle { margin-top: 12px; font: 400 44px/.98 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.rdesc { margin-top: 14px; max-width: 46ch; color: var(--flour); font-size: 16px; line-height: 1.5; }
.rfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(250, 243, 229, .12); }
.rfacts dt { margin-bottom: 6px; }
.rfacts dd { font-size: 19px; font-weight: 500; line-height: 1.25; }
.rfacts dd:not(.num) { font-size: 14.5px; font-weight: 400; color: var(--flour); }
.rfacts.on-cream { border-top-color: var(--line); }
.ryield { margin-top: 18px; font-size: 14.5px; color: var(--flour); }
.ryield .label { margin-right: 10px; }
.rgrid { display: grid; gap: 16px; margin-top: 16px; }
.formula, .method { padding: 22px 20px; }
.fcontrols { display: grid; gap: 16px; margin: 16px 0 6px; }
.fcontrol { display: flex; flex-direction: column; gap: 9px; }
.fcontrol .seg { display: flex; }
.fcontrol .seg button { flex: 1; }
.ftable { width: 100%; border-collapse: collapse; margin-top: 12px; }
.ftable th { text-align: left; padding: 10px 0; font: 500 10.5px/1.2 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--ink); }
.ftable th.num, .ftable td.num { text-align: right; white-space: nowrap; }
.ftable td { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.ftable td:nth-child(2) { color: var(--mute); padding-right: 18px; padding-left: 10px; }
.ftable td b { font-weight: 650; font-size: 17px; }
.ftable-group th { padding-top: 20px; border-bottom: 1px solid var(--line); color: var(--accent); }
.ftable tfoot td { border-bottom: 0; border-top: 1px solid var(--ink); font-weight: 600; }
.ftable-wrap.recalc td.num { animation: flip .32s var(--ease) both; }
.formula > .hint { margin-top: 14px; }
.msteps { margin-top: 10px; }
.msteps li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.msteps li:last-child { border-bottom: 0; }
.msteps-no { font: italic 400 30px/1 var(--serif); color: var(--caramel); }
.msteps h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font: 600 16px/1.25 var(--sans); }
.msteps h3 span { font-weight: 400; font-size: 13.5px; color: var(--mute); white-space: nowrap; }
.msteps p { margin-top: 6px; font-size: 15px; line-height: 1.52; color: #4A3F37; }
.ractions { display: grid; gap: 10px; margin-top: 18px; }
.rref { margin-top: 20px; font-size: 13.5px; line-height: 1.5; color: var(--mute); max-width: 78ch; }
.rref .label { margin-right: 8px; color: var(--accent); }
@media (min-width: 1000px) {
  .rhead.has-photo { grid-template-columns: 1.05fr .95fr; }
  .rhead.has-photo .rhead-photo { order: 2; aspect-ratio: auto; min-height: 380px; }
  .rhead-copy { padding: 44px 44px 40px; align-self: end; }
  .rhead-plate .mark { width: 460px; height: 460px; right: -30px; top: -60px; }
  .rtitle { font-size: 76px; max-width: 12ch; }
  .rhead.is-plate .rtitle { max-width: 16ch; }
  .rfacts { grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 40px; }
  .rhead .rfacts dd { white-space: nowrap; }
  .rgrid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; margin-top: 24px; align-items: start; }
  .formula, .method { padding: 30px 32px; }
  .formula { position: sticky; top: 24px; }
  .ractions { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

/* =========================== STARTER =========================== */
.ssetup { display: flex; flex-direction: column; gap: 22px; padding: 24px 20px; max-width: 680px; }
.spaths { display: grid; gap: 10px; margin-top: -8px; }
.spath { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.spath input { position: absolute; opacity: 0; pointer-events: none; }
.spath-main { display: flex; flex-direction: column; gap: 5px; }
.spath-main b { font: 400 24px/1.05 var(--serif); }
.spath-main i { font-size: 13.5px; line-height: 1.4; color: var(--mute); }
.spath-mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--stone); display: flex; align-items: center; justify-content: center; }
.spath:has(input:checked) { border-color: var(--caramel); background: rgba(232, 179, 99, .13); }
.spath:has(input:checked) .spath-mark { border-color: var(--caramel); }
.spath:has(input:checked) .spath-mark::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--caramel); }
.spath:has(input:focus-visible) { outline: 2px solid var(--caramel); outline-offset: 2px; }
.spath.is-locked { cursor: default; }
.spath.is-locked .spath-main b { color: var(--mute); }

.shead { position: relative; display: flex; align-items: flex-end; min-height: 230px; border-radius: 22px; overflow: hidden; background: var(--char); color: var(--sun); --mute: var(--stone); --accent: var(--gold); --ink: var(--sun); --line: rgba(250, 243, 229, .3); }
.shead-photo { position: absolute; inset: 0; }
.shead-photo img { width: 100%; height: 100%; object-fit: cover; }
.shead-photo.nophoto img { display: none; }
.shead-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(27, 21, 17, .9) 0%, rgba(27, 21, 17, .35) 55%, rgba(27, 21, 17, .15) 100%); }
.shead-copy { position: relative; padding: 22px; }
.shead-copy .vtitle { margin-top: 10px; color: var(--sun); }
.shead-status { margin-top: 12px; font-size: 15px; font-weight: 500; }
.shead-cam { position: absolute; top: 14px; right: 14px; background: rgba(27, 21, 17, .5); color: var(--sun); border-color: rgba(250, 243, 229, .3); }
.stabs { display: flex; gap: 26px; margin: 22px 0 20px; border-bottom: 1px solid var(--line); }
.stabs button { padding: 12px 0 13px; margin-bottom: -1px; font: 500 12px/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--mute); border-bottom: 2px solid transparent; }
.stabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.sgrid { display: grid; gap: 16px; }
.jarcard { display: grid; grid-template-columns: 124px 1fr; align-items: center; gap: 20px; padding: 22px 20px; }
.jar { width: 100%; height: auto; display: block; overflow: visible; }
.jar-glass { fill: none; stroke: rgba(250, 243, 229, .5); stroke-width: 2.4; stroke-linejoin: round; }
.jar-dough, .jar-dome { fill: var(--flour); }
.jar-fill { transform: translateY(150px); transition: transform 2.2s cubic-bezier(.25, .8, .25, 1); }
.jar-band { stroke: var(--caramel); stroke-width: 3; }
.jar-shine { stroke: rgba(255, 255, 255, .28); stroke-width: 3; stroke-linecap: round; fill: none; }
.jar-bubbles circle { fill: rgba(100, 54, 30, .08); stroke: rgba(100, 54, 30, .3); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; }
.jar.is-peak .jar-bubbles circle { animation: bubble 3.4s ease-in-out infinite; }
.jar.is-peak .jar-bubbles circle:nth-child(2n) { animation-delay: -1.1s; animation-duration: 4.1s; }
.jar.is-peak .jar-bubbles circle:nth-child(3n) { animation-delay: -2.2s; animation-duration: 2.9s; }
@keyframes bubble { 0% { transform: translateY(9px) scale(.5); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(-16px) scale(1.15); opacity: 0; } }
.jarcard-read { min-width: 0; }
.jarcard-big { margin-top: 12px; font: 400 36px/1 var(--serif); letter-spacing: -.01em; }
.jarcard-sub { margin-top: 10px; font-size: 13.5px; color: var(--stone); }
.jarcard .btn { margin-top: 20px; width: 100%; padding: 0 14px; }
.feedslot:empty { display: none; }
.feedform { display: flex; flex-direction: column; gap: 20px; padding: 22px 20px; animation: rise .4s var(--ease) both; }
.feedform .seg { display: flex; }
.feedform .seg button { flex: 1; }
.program { padding: 24px 20px; }
.program h2 { margin-top: 10px; font-size: 34px; line-height: 1; }
.pbody { display: grid; gap: 4px; margin-top: 18px; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 12px 0; font-size: 15.5px; line-height: 1.45; cursor: pointer; border-bottom: 1px solid var(--line); }
.check input { position: absolute; opacity: 0; }
.check-box { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--stone); display: flex; align-items: center; justify-content: center; color: transparent; transition: background .2s, border-color .2s, color .2s; }
.check-box .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.check input:checked + .check-box { background: var(--gold); border-color: var(--gold); color: var(--char); }
.check input:checked ~ span:last-child { color: var(--mute); }
.check input:focus-visible + .check-box { outline: 2px solid var(--caramel); outline-offset: 2px; }
.psigns { margin-top: 18px; font-size: 15px; line-height: 1.5; }
.psigns .label { display: block; margin-bottom: 5px; }
.pwarn { margin-top: 14px; padding: 14px 16px; border-radius: 13px; background: rgba(217, 149, 64, .16); border-left: 3px solid var(--amber); font-size: 14.5px; line-height: 1.5; }
.program .btn { margin-top: 20px; }
.sstats { padding: 22px 20px; }
.sstats dl { margin-top: 8px; }
.sstats dl > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sstats dt { font-size: 14.5px; color: var(--mute); }
.sstats dd { font-size: 15.5px; font-weight: 500; text-align: right; }
.sstats .hint { margin-top: 16px; }
.strouble .label, .strouble .hint { color: var(--ink); opacity: .75; }
.strouble .label { margin-bottom: 12px; }
.strouble .hint { margin-top: 12px; }
.sreset { margin-top: 34px; font-size: 13px; color: var(--mute); }
.sreset .linkbtn { font-weight: 500; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.feedlist { padding: 4px 18px; margin-bottom: 16px; }
.feedlist li { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 12px; padding: 14px 0; }
.feedlist li + li { border-top: 1px solid var(--line); }
.feedlist-when, .feedlist-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.feedlist b { font-weight: 600; font-size: 15px; }
.feedlist i { font-size: 13px; color: var(--mute); }
.daylist { padding: 6px 18px; }
.daylist li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 14px 0; }
.daylist li + li { border-top: 1px solid var(--line); }
.daylist-no { width: 34px; height: 34px; border-radius: 50%; border: 1.5px dashed var(--stone); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--mute); }
.daylist li.is-done .daylist-no { border: 0; background: var(--gold); color: var(--char); }
.daylist li.is-current .daylist-no { border: 2px solid var(--caramel); color: var(--ear); box-shadow: 0 0 0 4px rgba(217, 149, 64, .2); }
.daylist-main { display: flex; flex-direction: column; gap: 4px; }
.daylist-main b { font-weight: 600; font-size: 15.5px; }
.daylist-main i { font-size: 14px; line-height: 1.45; color: var(--mute); }
.daylist-main em { font-size: 13.5px; line-height: 1.45; color: var(--ear); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 40px 24px; }
.empty h2 { font-size: 34px; line-height: 1; }
.empty p { max-width: 40ch; color: var(--mute); font-size: 15px; }
.empty .btn { margin-top: 10px; }
.empty-mark .mark { width: 74px; height: 74px; color: var(--caramel); stroke-width: 2; }
@media (min-width: 1000px) {
  .shead { min-height: 300px; }
  .shead-copy { padding: 36px 40px; }
  .sgrid { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .jarcard { grid-template-columns: 168px 1fr; padding: 34px 32px; gap: 32px; }
  .jarcard-big { font-size: 48px; }
  .program, .strouble, .feedslot { grid-column: 1 / -1; }
  .program { padding: 32px; }
  .sstats { padding: 30px 32px; }
  .feedform { max-width: 560px; padding: 30px; }
  .feedlist, .daylist { max-width: 760px; padding: 8px 28px; }
}

/* =========================== JOURNAL =========================== */
.jbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.label.on-page, .hint.on-page { color: var(--ink); opacity: .72; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
.gcard { display: flex; flex-direction: column; gap: 7px; padding: 10px 10px 16px; }
.gcard-photo { position: relative; display: block; aspect-ratio: 4 / 4.6; border-radius: 12px; overflow: hidden; background: var(--char); margin-bottom: 6px; }
.gcard-photo img { width: 100%; height: 100%; object-fit: cover; }
.gcard-photo .rating { position: absolute; top: 8px; right: 8px; }
.gcard > * { padding: 0 6px; }
.gcard > .gcard-photo { padding: 0; }
.gcard b { font: 400 23px/1.05 var(--serif); }
.gcard i { font-size: 13.5px; line-height: 1.4; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--char); }
.noimg .mark { width: 46%; height: auto; color: var(--gold); opacity: .4; }
.jline { padding: 4px 16px; }
.jline li + li { border-top: 1px solid var(--line); }
.jline a { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 14px; padding: 14px 0; }
.jline-photo { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--char); }
.jline-photo img { width: 100%; height: 100%; object-fit: cover; }
.jline-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jline-main b { font: 400 24px/1.05 var(--serif); }
.jline-main i { font-size: 13px; color: var(--mute); }
.jline-main em { font-size: 14px; line-height: 1.45; }
.jline-main em .label { display: block; margin: 4px 0 2px; }
.jform { display: grid; gap: 22px; padding: 20px; }
.photopick { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 16px; border: 1.5px dashed var(--stone); cursor: pointer; overflow: hidden; background: var(--field); }
.photopick-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 20px; color: var(--mute); }
.photopick-empty .ic { width: 30px; height: 30px; color: var(--caramel); margin-bottom: 6px; }
.photopick-empty b { font: 400 25px/1 var(--serif); color: var(--ink); }
.photopick-empty i { font-size: 13.5px; }
.photopick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photopick.has-photo { border-style: solid; border-color: transparent; }
.jfields { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ratepick { display: flex; gap: 10px; }
.ratepick button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); font-size: 18px; font-weight: 500; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.ratepick button.on { background: var(--gold); border-color: var(--gold); font-weight: 650; transform: scale(1.06); }
.jentry { display: grid; gap: 16px; }
.jentry-photo { position: relative; border-radius: 22px; aspect-ratio: 4 / 3.4; background: var(--char); }
.jentry-photo img, .jentry-photo .noimg { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.jentry-glow { position: absolute; inset: 0; border-radius: 22px; pointer-events: none; opacity: 0; }
.jentry-copy { padding: 24px 22px; }
.jentry-copy .rtitle { color: var(--char); }
.jentry-notes { margin-top: 22px; font-size: 17px; line-height: 1.55; }
.jentry-change { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: rgba(232, 179, 99, .2); font-size: 16px; line-height: 1.5; }
.jentry-change .label { display: block; margin-bottom: 6px; color: var(--ear); }
.jentry .formrow { margin-top: 24px; }
/* The bake-completion moment: the photo springs like a loaf in a hot oven, with one warm bloom of light. */
.moment .jentry-photo img, .moment .jentry-photo .noimg { animation: spring 1.5s cubic-bezier(.2, .9, .25, 1) both; }
.moment .jentry-glow { animation: bloom 1.9s ease-out .15s both; }
.moment .jentry-copy { animation: rise .7s var(--ease) .35s both; }
@keyframes spring { 0% { transform: scale(.9); filter: brightness(.6); } 45% { transform: scale(1.035); filter: brightness(1.12); } 100% { transform: scale(1); filter: brightness(1); } }
@keyframes bloom { 0% { opacity: 0; box-shadow: 0 0 0 0 rgba(232, 179, 99, .6); } 30% { opacity: 1; box-shadow: 0 0 0 3px rgba(232, 179, 99, .85), 0 0 70px 12px rgba(232, 179, 99, .5); } 100% { opacity: 0; box-shadow: 0 0 0 16px rgba(232, 179, 99, 0), 0 0 110px 30px rgba(232, 179, 99, 0); } }
@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
  .jline { max-width: 820px; padding: 8px 28px; }
  .jform { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 34px; padding: 32px; align-items: start; }
  .photopick { aspect-ratio: 4 / 4.6; position: sticky; top: 24px; }
  .jentry { grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
  .jentry-copy { padding: 36px; }
  .jentry-copy .rtitle { font-size: 60px; }
  .v-journal .rsec { max-width: 820px; }
}

/* On dark pages the form controls placed directly on the page */
.on-dark.stepper > button, .stepper.on-dark > button { border-color: rgba(250, 243, 229, .22); }
.btn-ghost.on-dark { border-color: rgba(250, 243, 229, .22); color: var(--sun); }
.linkbtn.on-dark, .back.on-dark { color: var(--stone); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ring-arc { transition: none; }
}
