:root {
  color-scheme: light;
  --paper: #fbefd5; --card: #fff7e5; --ink: #292415; --muted: #63553b;
  --line: #dfc692; --accent: #b64c10; --deep: #863807; --gold: #f9e3ae;
  --green: #e6e4bd; --rose: #f7dcc5; --olive: #383f17; --saffron: #ffc75f;
  --serif: Georgia, "Times New Roman", serif;
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at top, #fff6df, #ead8ae); color: var(--ink); }
.site-frame {
  max-width: 1080px; min-height: 100dvh; margin: auto; display: flex; flex-direction: column;
  border: 1px solid #fff7e2; background: repeating-linear-gradient(105deg, #7f5b1902 0 1px, transparent 1px 4px), var(--paper);
  box-shadow: 0 9px 35px #77561c23; overflow: clip;
}
button, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button:focus-visible, a:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button:disabled { cursor: default; }
a { color: var(--deep); text-underline-offset: 3px; }
.site-header {
  position: relative; z-index: 3; min-height: 70px; padding: 5px clamp(12px, 4.3vw, 45px);
  background: linear-gradient(105deg, #3c441a, #303712 75%); color: #fff4d5;
  display: grid; grid-template-columns: 44px minmax(0, max-content) 44px; align-items: center;
  justify-content: space-between; gap: 8px; border-bottom: 2px solid #fff7dd;
}
.site-header button:focus-visible { outline-color: var(--saffron); }
.wordmark { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: clamp(6px, 1.4vw, 12px); padding: 2px 0; min-height: 44px; background: none; border: 0; font: bold clamp(1.42rem, 6.2vw, 2.9rem)/1 var(--serif); letter-spacing: -.055em; white-space: nowrap; }
.brand-icon { width: clamp(25px, 7vw, 47px); height: auto; flex: none; }
.brand-dot { color: var(--saffron); }
.menu-toggle, .profile-link { display: grid; place-items: center; width: 44px; height: 44px; border: 0; padding: 0; }
.menu-toggle { grid-column: 1; grid-row: 1; background: transparent; color: inherit; border-radius: 8px; }
.profile-link { grid-column: 3; grid-row: 1; border-radius: 50%; background: var(--saffron); color: #39290e; }
.site-header [hidden] { display: none; }
.header-menu { position: absolute; inset-inline-start: clamp(12px, 4vw, 38px); top: calc(100% - 2px); display: grid; min-width: 182px; padding: 5px; border: 1px solid var(--line); border-radius: 0 0 13px 13px; background: var(--card); color: var(--olive); box-shadow: 0 8px 20px #5035122b; }
.header-menu button { background: none; border: 0; min-height: 44px; padding: 8px 10px; text-align: left; font-weight: 650; border-radius: 7px; }
.header-menu button:hover { background: var(--green); }
.eyebrow, .badge { font-size: .72rem; font-weight: 750; letter-spacing: .095em; }
.eyebrow { color: var(--deep); }
main { width: 100%; max-width: 660px; flex: 1; margin: 0 auto; padding: 23px 20px 32px; }
main[data-screen="home"] { max-width: 1050px; padding: 12px clamp(13px, 3vw, 33px) 26px; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 9vw, 3.55rem); letter-spacing: -.045em; color: var(--olive); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.12rem; }
p { margin: 0; }
.eyebrow { margin-bottom: 8px; }
.intro { margin: 10px 0 20px; color: var(--muted); max-width: 47ch; }
.stack { display: grid; gap: 12px; }
.card { border-radius: 14px; border: 1px solid var(--line); padding: 15px; background: var(--card); }
.card p + p, .card h2 + p, .card h3 + p { margin-top: 6px; }
.small { font-size: .9rem; color: var(--muted); }
.welcome-modes h2 { font-family: system-ui, sans-serif; font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.welcome-modes dl { margin: 5px 0 0; }
.welcome-modes dl > div { padding: 11px 0; }
.welcome-modes dl > div + div { border-top: 1px solid var(--line); }
.welcome-modes dt { font: bold 1.22rem/1.25 Georgia, serif; }
.welcome-modes dd { margin: 3px 0 0; font-size: .95rem; color: var(--muted); }
.gold { background: var(--gold); } .green { background: var(--green); } .rose { background: var(--rose); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.badge { border-radius: 99px; padding: 4px 9px; background: #f3dfb6; letter-spacing: .035em; }
.action-bar { position: sticky; bottom: 0; z-index: 1; display: grid; gap: 3px; padding: 10px 0 max(7px, env(safe-area-inset-bottom)); margin-top: 15px; background: var(--paper); border-top: 1px solid var(--line); }
.primary, .secondary, .text-button { min-height: 46px; border-radius: 12px; padding: 9px 14px; text-align: center; font-weight: 680; }
.primary { background: var(--olive); color: #fff7de; border: 1px solid var(--olive); }
.primary:hover { background: #495224; }
.secondary { background: var(--card); border: 1px solid var(--line); }
.text-button { background: none; border: 0; color: var(--deep); }
.back { display: block; padding-left: 0; margin: -9px 0 4px; }
.choice { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; width: 100%; text-align: left; font-weight: 400; }
.choice strong { display: block; font: bold 1.25rem var(--serif); margin-bottom: 4px; }
.choice .availability { display: block; margin-top: 5px; font-size: .73rem; text-transform: uppercase; font-weight: 750; color: var(--deep); letter-spacing: .04em; }
.new-flag { display: inline-block; margin-inline-start: 8px; padding: 2px 7px; border-radius: 99px; color: #37290c; background: var(--saffron); font-size: .66rem; font-weight: 800; letter-spacing: .06em; }
.badge-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.badge-list li { display: flex; gap: 9px; align-items: center; }
.badge-mark { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; color: var(--deep); background: var(--paper); border: 1px solid var(--line); }
.hint-record { list-style: none; margin: 9px 0 0; padding: 0; }
.hint-record li { padding: 8px 0; }
.hint-record li + li { border-top: 1px solid var(--line); }
.bake-photo { display: block; width: 100%; max-height: 320px; object-fit: contain; margin-top: 12px; border-radius: 10px; background: var(--paper); }
.photo-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.photo-actions button { flex: 1 0 auto; font-size: .88rem; }
.photo-message { margin-top: 8px; }
.section { margin-top: 15px; }
.map-card { margin-inline: 0; margin-bottom: 0; }
.map-card svg { display: block; width: 100%; max-height: 205px; margin: 10px 0 7px; }
.ingredients { margin: 7px 0 0; padding-left: 19px; columns: 2; column-gap: 24px; font-size: .94rem; }
.ingredients li { break-inside: avoid; padding-block: 1px; }
textarea { width: 100%; min-height: 84px; padding: 9px; margin-top: 8px; border: 1px solid #a99681; border-radius: 8px; background: var(--card); color: var(--ink); resize: vertical; }
label { display: block; font-weight: 650; }
details summary { cursor: pointer; min-height: 38px; }
details[open] summary { margin-bottom: 7px; }
.recipe ul, .recipe ol { padding-left: 21px; }
.recipe li + li { margin-top: 6px; }
.progress { font-size: .86rem; color: var(--muted); margin-bottom: 13px; }
.step-progress { display: grid; gap: 5px; font-size: .86rem; color: var(--muted); margin: 9px 0 14px; }
.step-progress progress { width: 100%; height: 7px; accent-color: var(--accent); }
.step-title { font-size: clamp(2rem, 8vw, 2.75rem); }
.step-instruction { font-size: 1.12rem; margin: 12px 0 20px; }
.step-tools, .step-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.step-nav { grid-template-columns: 1fr 2fr; }
.step-nav.solo { grid-template-columns: 1fr; }
.step-choice { text-align: left; }
.step-choice[aria-current] { background: var(--gold); }
.notice { padding: 10px; background: var(--gold); border-radius: 8px; }
.welcome-hero { display: grid; grid-template-columns: 1.3fr .8fr; align-items: center; gap: 2px; }
.welcome-hero h1 { font-size: clamp(1.8rem, 5.9vw, 3rem); }
.welcome-hero .intro { margin-bottom: 10px; font-size: .94rem; }
.bowl-art { display: block; width: 100%; height: auto; }
.season-hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0;
  margin-bottom: 8px; padding: 9px 0 4px; isolation: isolate;
}
.season-hero-copy { position: relative; z-index: 1; min-width: 0; padding-left: clamp(3px, 2.1vw, 21px); }
.season-hero .eyebrow { font-size: clamp(.57rem, 1.45vw, .77rem); text-transform: uppercase; margin-bottom: 8px; color: #655525; }
.season-hero h1 {
  font: bold italic clamp(2.05rem, 9.6vw, 5.55rem)/.9 var(--serif);
  letter-spacing: -.061em; text-wrap: initial; white-space: nowrap; margin: 0 0 15px;
}
.season-hero h1 em { color: #a7450b; font-style: inherit; }
.season-hero-copy > p:last-child { max-width: 29ch; font-size: clamp(.83rem, 2.2vw, 1.23rem); line-height: 1.39; }
.season-hero .bowl-art { position: relative; width: 107%; margin-left: -4%; animation: art-settle 440ms ease-out both; }
.season-dashboard { display: grid; grid-template-columns: 1fr; gap: 12px; }
.season-summary {
  display: grid; grid-template-columns: 1fr 81px; align-items: center; gap: 3px 13px;
  padding: 12px 14px; border: 1px solid #d6a85f; border-radius: 20px;
  background: radial-gradient(ellipse at top right, #fff4d6, #fae8bc);
}
.season-summary h2 { font-size: clamp(1.47rem, 4.5vw, 2rem); margin-bottom: 4px; }
.season-ring {
  grid-column: 2; grid-row: 1 / span 2; width: 79px; aspect-ratio: 1; padding: 6px; border-radius: 50%;
  background: conic-gradient(#c65d13 0 var(--season-progress), #e9cc95 var(--season-progress) 100%);
}
.season-ring > div {
  width: 100%; height: 100%; border-radius: 50%; background: #fff3d7; display: grid;
  place-content: center; justify-items: center; text-align: center; line-height: 1.13;
}
.season-ring strong { font: bold 1.04rem/1.1 var(--serif); }
.season-ring span { font-size: .55rem; font-weight: 650; color: var(--muted); margin-top: 3px; }
.season-badges { display: flex; align-items: center; gap: 6px; color: var(--deep); font-size: .81rem; font-weight: 660; }
.season-badges svg { width: 18px; height: 18px; }
.challenge-shelf {
  padding: 14px; border-radius: 21px; border: 1px solid #667236;
  background: radial-gradient(ellipse at left top, #565e2a, #343b16 78%); color: #fff4d8;
}
.shelf-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 7px; margin-bottom: 12px; }
.shelf-heading h2 { font-size: clamp(1.4rem, 5.7vw, 2rem); }
.shelf-heading > span { font-size: .69rem; text-transform: uppercase; color: #f8d694; font-weight: 730; letter-spacing: .045em; white-space: nowrap; }
.shelf-list { gap: 8px; }
.challenge-shelf .card { color: var(--ink); }
.shelf-card { grid-template-columns: 36px 1fr auto; gap: 9px; padding: 9px 10px; border-radius: 13px; border-color: #f8efd6; font-size: .83rem; line-height: 1.33; }
.shelf-card strong { font-size: clamp(1.15rem, 4.45vw, 1.51rem); margin: 0 0 2px; }
.shelf-card .small { font-size: .72rem; }
.shelf-card .availability { font-size: .66rem; margin-top: 4px; }
.shelf-card > span:last-child { font: 1.6rem/1 var(--serif); color: #805424; }
.shelf-icon { width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; color: #783808; background: #fff6db; border: 1px solid #e1c794; }
.shelf-icon svg { width: 20px; height: 20px; }
.shelf-card:focus-visible { outline-color: #ffcf6f; }
.choice { transition: box-shadow 150ms ease, transform 150ms ease; }
.choice:active { transform: scale(.99); }
.home-completed { margin-top: 20px; }
.home-progress { margin-top: 20px; }
.progress-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.progress-heading h2 { font-size: clamp(1.55rem, 5vw, 2rem); white-space: nowrap; }
.progress-heading > span { flex: 1; height: 1px; background: linear-gradient(to right, #d6a14d, #e2bc73); }
.progress-heading > img { opacity: .92; }
.progress-tile {
  background: linear-gradient(105deg, #f9e2a9, #fff4db); border: 1px solid #dfbd7f;
  border-radius: 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px 13px; padding: 12px;
}
.progress-emblem { width: 43px; height: 43px; border-radius: 50%; border: 4px double #a84e12; background: #ffc75f; display: grid; place-items: center; color: #74380d; }
.progress-tile h3 { font-size: 1.25rem; }
.progress-tile p { font-size: .83rem; color: var(--muted); margin: 2px 0; }
.progress-tile progress { width: 100%; max-width: 280px; height: 8px; accent-color: var(--accent); display: block; }
.progress-tile button { font-size: .8rem; padding-inline: 11px; white-space: nowrap; }
.site-trim { flex: none; min-height: 31px; background: url("art/trim.svg") repeat-x bottom center / auto 31px; opacity: .88; }
@keyframes art-settle { from { transform: translateY(5px); opacity: .86; } to { transform: translateY(0); opacity: 1; } }
@media (hover: hover) { .choice:hover { box-shadow: 0 3px 12px #37240c28; transform: translateY(-1px); } }
@media (max-width: 420px) {
  .site-header { min-height: 62px; }
  .season-hero { grid-template-columns: 1fr .94fr; min-height: 176px; }
  .season-hero .bowl-art { width: 112%; margin-left: -6%; }
  .season-hero-copy > p:last-child { max-width: 21ch; }
  .season-hero h1 { margin-bottom: 11px; }
  .progress-tile { grid-template-columns: auto 1fr; }
  .progress-tile button { grid-column: 2; justify-self: start; }
}
@media (min-width: 600px) { main { padding-inline: 25px; } }
@media (min-width: 694px) {
  .site-frame { margin: 14px auto; border-radius: 29px; min-height: calc(100dvh - 28px); }
  .season-dashboard { grid-template-columns: minmax(190px, 1fr) minmax(0, 2.2fr); gap: 14px; }
  .season-summary { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 16px; gap: 12px; }
  .season-ring { grid-column: 1; grid-row: auto; width: clamp(114px, 15vw, 180px); padding: 10px; }
  .season-ring strong { font-size: clamp(1.3rem, 2.5vw, 2rem); }
  .season-ring span { font-size: .72rem; }
  .challenge-shelf { padding: 18px; }
  .shelf-card { grid-template-columns: 43px 1fr auto; padding: 10px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
