/* Fonts: Fraunces and Inter by their designers, SIL Open Font License 1.1 (self-hosted subsets). */
@font-face{font-family:'Fraunces';font-style:italic;font-weight:300 700;font-display:swap;src:url(/assets/fonts/fraunces-italic-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:300 700;font-display:swap;src:url(/assets/fonts/fraunces-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:300 700;font-display:swap;src:url(/assets/fonts/fraunces-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:300 700;font-display:swap;src:url(/assets/fonts/fraunces-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/inter-greek.woff2) format('woff2');unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/inter-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/inter-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* ==========================================================================
   The Daily Table v6 — "hearth" finish.
   Loaded last. It refines tokens, typography, depth, motion and component
   states across every page without changing markup behaviour. All motion is
   removed by the reduced-motion rule in kitchen-v5.css.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
 color-scheme: light;
 --bg: #f5f3ec;
 --paper: #fffdf8;
 --ink: #1b3026;
 --muted: #56665b;
 --line: #e1e3d5;
 --primary: #2b4d3b;
 --primary-hover: #1d3a2b;
 --primary-ink: #fbfaf3;
 --soft: #eff1e6;
 --sage: #dbe7c9;
 --terra: #9f4d2f;
 --peach: #f6e6d8;
 --blue: #e3eeeb;
 --gold: #e6c378;
 --glass: rgba(255, 253, 248, .8);
 --serif: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
 --sans: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
 --radius: 26px;
 --shadow-xs: 0 1px 2px rgba(20, 42, 31, .06);
 --shadow-sm: 0 1px 2px rgba(20, 42, 31, .05), 0 8px 18px -10px rgba(20, 42, 31, .18);
 --shadow: 0 2px 4px rgba(20, 42, 31, .04), 0 18px 44px -18px rgba(20, 42, 31, .22);
 --shadow-lg: 0 6px 14px rgba(20, 42, 31, .06), 0 36px 80px -24px rgba(20, 42, 31, .34);
 --ring: 0 0 0 4px rgba(159, 77, 47, .26);
 --ease: cubic-bezier(.2, .75, .2, 1);
}
html[data-theme=dark] {
 color-scheme: dark;
 --bg: #0e1712;
 --paper: #152119;
 --ink: #eef0e4;
 --muted: #aebdac;
 --line: #2c3f31;
 --primary: #cfe5b5;
 --primary-hover: #e7f4d8;
 --primary-ink: #14261b;
 --soft: #1d2e23;
 --sage: #33482f;
 --terra: #eca888;
 --peach: #3b281f;
 --blue: #1d3837;
 --glass: rgba(21, 33, 25, .82);
 --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
 --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 22px -12px rgba(0, 0, 0, .6);
 --shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 18px 44px -18px rgba(0, 0, 0, .65);
 --shadow-lg: 0 6px 14px rgba(0, 0, 0, .3), 0 36px 80px -24px rgba(0, 0, 0, .75);
 --ring: 0 0 0 4px rgba(236, 168, 136, .32);
}

/* ---------- Base: atmosphere, type, selection, scrollbars ---------- */
html { scrollbar-color: #b7c5b0 transparent; scrollbar-width: thin; }
::selection { background: #ead7bf; color: var(--ink); }
html[data-theme=dark] ::selection { background: #5b4232; color: #fff4ea; }
body {
 font-family: var(--sans);
 font-size: 15.5px;
 line-height: 1.7;
 letter-spacing: -.008em;
 color: var(--ink);
 -webkit-font-smoothing: antialiased;
 text-rendering: optimizeLegibility;
 background:
  radial-gradient(1100px 600px at 104% -12%, rgba(206, 227, 187, .6), transparent 62%),
  radial-gradient(860px 540px at -12% 36%, rgba(245, 219, 194, .42), transparent 64%),
  var(--bg);
}
html[data-theme=dark] body {
 background:
  radial-gradient(900px 540px at 104% -14%, rgba(70, 104, 62, .3), transparent 62%),
  radial-gradient(820px 520px at -12% 40%, rgba(96, 62, 42, .22), transparent 62%),
  var(--bg);
}
/* Quiet paper grain across the whole canvas, behind all content. */
body::before {
 content: "";
 position: fixed;
 inset: 0;
 z-index: -1;
 pointer-events: none;
 opacity: .5;
 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .2 0 0 0 0 .16 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme=dark] body::before { opacity: .22; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); text-wrap: balance; }
h1, h2 { font-weight: 400; letter-spacing: -.032em; line-height: 1.05; }
h3 { font-weight: 500; letter-spacing: -.018em; line-height: 1.25; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--terra); }
p { text-wrap: pretty; }
.eyebrow { font-family: var(--sans); font-size: .68rem; font-weight: 650; letter-spacing: .16em; color: var(--muted); }
.page-heading .eyebrow::before,
.section-title .eyebrow::before {
 content: "";
 width: 22px;
 height: 2px;
 border-radius: 2px;
 background: linear-gradient(90deg, var(--terra), transparent);
}
.lead, .page-heading .lead { font-size: 1.06rem; line-height: 1.75; color: var(--muted); }
.fineprint { font-size: .82rem; line-height: 1.65; color: var(--muted); }
/* Reading pages: heading shares the column of the prose card beneath it. */
.page-heading:has(+ .narrow) { width: min(860px, calc(100% - 48px)); max-width: none; margin-inline: auto; }
.page-heading:has(+ .narrow) .lead { max-width: 60ch; }
.breadcrumbs { font-size: .78rem; color: var(--muted); }
.breadcrumbs a { text-decoration: none; border-radius: 6px; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.page-heading { background: radial-gradient(640px 260px at 0% 0%, rgba(214, 232, 196, .42), transparent 70%); }
html[data-theme=dark] .page-heading { background: radial-gradient(640px 260px at 0% 0%, rgba(90, 120, 80, .2), transparent 70%); }

/* ---------- Buttons ---------- */
.btn {
 border-radius: 14px;
 font-weight: 600;
 letter-spacing: -.01em;
 transition: transform .28s var(--ease), box-shadow .28s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn.primary {
 background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 86%, #ffffff) 0%, var(--primary) 100%);
 color: var(--primary-ink);
 border-color: transparent;
 box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(20, 42, 31, .2), 0 12px 26px -12px color-mix(in srgb, var(--primary) 85%, transparent);
}
.btn.primary:hover:not(:disabled) {
 background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 78%, #ffffff) 0%, var(--primary-hover) 100%);
 box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 2px 4px rgba(20, 42, 31, .18), 0 18px 34px -12px color-mix(in srgb, var(--primary) 80%, transparent);
 transform: translateY(-2px);
}
html[data-theme=dark] .btn.primary { color: #15271c; }
.btn.secondary {
 background: var(--paper);
 color: var(--ink);
 border: 1px solid var(--line);
 box-shadow: var(--shadow-xs);
}
.btn.secondary:hover:not(:disabled) {
 border-color: #b7c8b0;
 background: color-mix(in srgb, var(--paper) 60%, #ffffff);
 box-shadow: var(--shadow-sm);
 transform: translateY(-1px);
}
html[data-theme=dark] .btn.secondary:hover:not(:disabled) { background: var(--soft); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.985); }
.btn:focus-visible, .chip-button:focus-visible { box-shadow: var(--ring); }
.btn.cream { background: #f8f5e8; color: #1f3d2d; border-color: #f8f5e8; }
.text-button { color: var(--primary); font-weight: 600; text-underline-offset: 4px; }
.text-button:hover { color: var(--terra); }
.chip-button {
 border-radius: 999px;
 padding: 8px 15px;
 border: 1px solid var(--line);
 background: var(--paper);
 font-weight: 550;
 box-shadow: var(--shadow-xs);
 transition: background .2s, border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease), color .2s;
}
.chip-button:hover { border-color: #aac1a2; background: color-mix(in srgb, var(--paper) 60%, #ffffff); transform: translateY(-1px); }
.chip-button[aria-pressed=true] {
 background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 86%, #ffffff), var(--primary));
 color: var(--primary-ink);
 border-color: var(--primary);
 box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--primary) 85%, transparent);
}
.icon-btn { border-radius: 13px; transition: background .2s, border-color .2s, transform .25s var(--ease), color .2s; }
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn:active { transform: scale(.95); }
.header-actions > .icon-btn { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.header-actions > .icon-btn:hover { background: var(--soft); border-color: #bccbb4; }

/* ---------- Inputs and selects ---------- */
input:not([type=checkbox]):not([type=file]):not([type=range]), select, textarea {
 border-radius: 14px;
 border: 1px solid var(--line);
 background-color: var(--paper);
 color: var(--ink);
 box-shadow: inset 0 1px 2px rgba(20, 42, 31, .04);
 transition: border-color .2s, box-shadow .2s, background-color .2s;
}
input:not([type=checkbox]):not([type=file]):not([type=range]):focus, select:focus, textarea:focus {
 border-color: #76a087;
 box-shadow: 0 0 0 4px rgba(89, 135, 107, .16);
 outline: none;
}
select {
 appearance: none;
 -webkit-appearance: none;
 padding-right: 40px;
 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2356665b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
 background-repeat: no-repeat;
 background-position: right 15px center;
 cursor: pointer;
}
html[data-theme=dark] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23aebdac' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.field > span, .shopping-options .field > span { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .005em; }
.shopping-options p, .shopping-options .fineprint { font-size: .82rem; }
.summary-item small { font-size: .84rem; }
input[type=checkbox] { accent-color: var(--primary); }
input[type=file] { font-size: .84rem; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button {
 margin-right: 12px;
 padding: 9px 14px;
 border-radius: 12px;
 border: 1px solid var(--line);
 background: var(--paper);
 color: var(--ink);
 font: inherit;
 font-weight: 600;
 cursor: pointer;
 box-shadow: var(--shadow-xs);
 transition: background .2s, border-color .2s;
}
input[type=file]:hover::file-selector-button { background: var(--soft); border-color: #b9c9b1; }

/* ---------- Surfaces ---------- */
.panel, .workspace-toolbar, .today-summary, .shopping-options, .pantry-panel, .week-overview, .settings-grid .panel {
 border-radius: var(--radius);
 border: 1px solid var(--line);
 background: var(--paper);
 box-shadow: var(--shadow);
}
.panel-title { font-family: var(--serif); font-size: 1.55rem; letter-spacing: -.02em; font-weight: 450; }
.panel-title .count-badge { letter-spacing: 0; }
.count-badge, .badge { border-radius: 999px; padding: 4px 10px; font-weight: 600; background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.notice, .small-notice {
 border-radius: 16px;
 border: 1px solid var(--line);
 border-left: 4px solid var(--terra);
 background: color-mix(in srgb, var(--peach) 55%, var(--paper));
 padding: 14px 18px;
 font-size: .86rem;
 line-height: 1.7;
}
.empty-state { border-radius: 22px; border: 1.5px dashed #b9c9b2; background: linear-gradient(160deg, var(--paper), var(--soft)); }
.kitchen-tip {
 border-radius: 22px;
 padding: 24px 26px;
 border: 1px solid var(--line);
 background: linear-gradient(140deg, var(--peach), color-mix(in srgb, var(--sage) 50%, var(--paper)));
}

/* ---------- Header and navigation ---------- */
.site-header {
 background: color-mix(in srgb, var(--paper) 84%, transparent);
 -webkit-backdrop-filter: saturate(170%) blur(18px);
 backdrop-filter: saturate(170%) blur(18px);
 border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
 box-shadow: 0 14px 30px -26px rgba(20, 42, 31, .5);
}
.brand { gap: 13px; }
.brand-mark { border-radius: 16px; box-shadow: 0 12px 22px -12px rgba(43, 77, 59, .75); transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.03); }
.brand > span:last-child { font-family: var(--serif); font-weight: 420; letter-spacing: -.035em; }
.brand small { font-family: var(--sans); font-size: .58rem; font-weight: 600; letter-spacing: .13em; color: var(--muted); margin-top: 4px; }
.main-nav {
 background: color-mix(in srgb, var(--soft) 80%, transparent);
 border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
 border-radius: 17px;
 box-shadow: inset 0 1px 2px rgba(20, 42, 31, .05);
}
.main-nav a { color: var(--muted); transition: background .22s var(--ease), color .2s, box-shadow .22s var(--ease); }
.main-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--paper) 70%, transparent); }
.main-nav a[aria-current=page] {
 background: var(--paper);
 color: var(--ink);
 box-shadow: 0 1px 2px rgba(20, 42, 31, .08), 0 8px 18px -10px rgba(20, 42, 31, .32);
}
.main-nav a[aria-current=page] .icon { color: var(--terra); }
.main-nav .icon { transition: color .2s; }
.quick-open { border-radius: 13px; }
kbd { border-radius: 6px; background: var(--paper); box-shadow: var(--shadow-xs); }
@media (min-width: 1251px) { .brand small { font-size: .58rem; } }

/* ---------- Home ---------- */
.home-v5 { gap: 72px; padding-block: 84px 72px; }
.home-v5 .eyebrow {
 background: var(--paper);
 border: 1px solid var(--line);
 border-radius: 999px;
 padding: 7px 14px 7px 12px;
 box-shadow: var(--shadow-xs);
 color: var(--ink);
 letter-spacing: .12em;
}
.home-v5 h1 { font-size: clamp(3.1rem, 5.6vw, 5.9rem); line-height: 1; letter-spacing: -.042em; font-weight: 380; }
.home-v5 h1 em { font-weight: 360; }
.home-v5 .lead { font-size: 1.12rem; line-height: 1.8; }
.hero-actions .btn { min-height: 52px; padding: 14px 24px; font-size: .95rem; }
.hero-reassurance { font-size: .8rem; color: var(--muted); }
.home-v5-visual::before {
 content: "";
 position: absolute;
 inset: -4% -10% 6% 4%;
 border-radius: 50%;
 background: radial-gradient(closest-side, rgba(196, 220, 170, .62), rgba(196, 220, 170, 0));
 filter: blur(10px);
 z-index: -1;
 pointer-events: none;
}
html[data-theme=dark] .home-v5-visual::before { background: radial-gradient(closest-side, rgba(90, 130, 80, .42), rgba(90, 130, 80, 0)); }
.hero-photo-frame { box-shadow: var(--shadow-lg); border-color: var(--paper); }
.floating-kitchen-card {
 background: var(--glass);
 -webkit-backdrop-filter: blur(16px) saturate(140%);
 backdrop-filter: blur(16px) saturate(140%);
 border-color: color-mix(in srgb, var(--paper) 60%, transparent);
 box-shadow: 0 22px 50px -18px rgba(20, 42, 31, .42);
 border-radius: 22px;
}
.hero-step-note {
 background: linear-gradient(140deg, color-mix(in srgb, var(--primary) 84%, #ffffff), var(--primary));
 color: var(--primary-ink);
 box-shadow: 0 10px 24px -10px rgba(20, 42, 31, .5);
}
.live-dot { animation: pulse 2.6s var(--ease) infinite; }
.everyday-rail {
 background: var(--glass);
 -webkit-backdrop-filter: blur(14px);
 backdrop-filter: blur(14px);
 border-radius: 26px;
 box-shadow: var(--shadow);
}
.everyday-rail a { transition: background .3s var(--ease); }
.everyday-rail a > svg:nth-of-type(1) {
 width: 52px;
 height: 52px;
 padding: 13px;
 box-sizing: border-box;
 border-radius: 17px;
 background: var(--soft);
 color: var(--primary);
 transition: transform .4s var(--ease), background .3s;
}
.everyday-rail a:hover > svg:nth-of-type(1) { transform: translateY(-2px) rotate(-4deg); background: var(--sage); }
.everyday-rail a > .icon:last-child { transition: transform .35s var(--ease); }
.everyday-rail a:hover > .icon:last-child { transform: translateX(4px); }
.everyday-rail .rail-number { font-family: var(--serif); font-size: .7rem; letter-spacing: .04em; }
.everyday-rail strong { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; letter-spacing: -.01em; }
.everyday-rail small { font-size: .76rem; }
.connected-banner {
 position: relative;
 overflow: hidden;
 border-radius: 34px;
 background:
  radial-gradient(760px 420px at 100% -10%, rgba(164, 204, 135, .32), transparent 62%),
  radial-gradient(560px 360px at -6% 120%, rgba(214, 150, 112, .2), transparent 62%),
  linear-gradient(160deg, #2e5140, #1b3329);
 box-shadow: var(--shadow-lg);
 padding: 60px;
}
.connected-banner h2 { font-size: clamp(2.6rem, 4.4vw, 3.8rem); }
.connected-banner h2 em { color: #d9e6b4; }
.routine-stack > div {
 background: rgba(255, 255, 255, .05);
 border-color: rgba(255, 255, 255, .14);
 -webkit-backdrop-filter: blur(6px);
 backdrop-filter: blur(6px);
 transition: transform .35s var(--ease), background .3s, border-color .3s;
}
.routine-stack > div:hover { transform: translateX(6px); background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .22); }
.routine-stack > div > span { background: rgba(209, 220, 167, .1); font-family: var(--serif); font-size: .85rem; }
.trust-grid article {
 border-radius: 26px;
 border: 1px solid var(--line);
 background: var(--paper);
 box-shadow: var(--shadow);
 padding: 34px;
 transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.trust-grid article:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #cbd8c3; }
.trust-grid article > svg:first-child {
 width: 54px;
 height: 54px;
 padding: 14px;
 box-sizing: border-box;
 border-radius: 18px;
 background: var(--soft);
 color: var(--primary);
}
.trust-grid h3 { font-size: 1.36rem; margin: 22px 0 12px; }
.trust-grid p { font-size: .92rem; line-height: 1.75; color: var(--muted); }
.trust-grid a { color: var(--primary); font-weight: 600; text-decoration: none; }
.trust-grid a:hover { color: var(--terra); }
.faq-section .trust-grid article h3 { font-size: 1.22rem; }

/* ---------- Recipe cards and catalog ---------- */
.recipe-grid { gap: 26px; }
.recipe-card {
 border-radius: 26px;
 border: 1px solid var(--line);
 background: var(--paper);
 box-shadow: var(--shadow-sm);
 transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.recipe-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #c9d7c0; }
.card-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.card-image::after {
 content: "";
 position: absolute;
 left: 0; right: 0; bottom: 0;
 height: 42%;
 background: linear-gradient(to top, rgba(12, 24, 18, .32), transparent);
 pointer-events: none;
}
.card-image img { transition: transform .9s var(--ease); }
.recipe-card:hover .card-image img { transform: scale(1.06); }
.card-image .image-badge {
 position: absolute;
 top: auto;
 bottom: 14px;
 left: 14px;
 right: auto;
 height: auto;
 z-index: 2;
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 6px 11px;
 border-radius: 999px;
 background: var(--glass);
 -webkit-backdrop-filter: blur(10px);
 backdrop-filter: blur(10px);
 color: var(--ink);
 font-size: .72rem;
 font-weight: 650;
 box-shadow: var(--shadow-sm);
}
.card-image .favorite {
 position: absolute;
 top: 12px;
 right: 12px;
 z-index: 2;
 width: 40px;
 height: 40px;
 min-height: 40px;
 border-radius: 14px;
 background: var(--glass);
 -webkit-backdrop-filter: blur(10px);
 backdrop-filter: blur(10px);
 color: var(--ink);
 box-shadow: var(--shadow-sm);
 transition: transform .3s var(--ease), background .2s, color .2s;
}
.card-image .favorite:hover { transform: scale(1.08); }
.card-image .favorite[aria-pressed=true] { color: var(--terra); background: var(--peach); }
.recipe-card[data-category=breakfast] { --cat: #8a5a12; }
.recipe-card[data-category=lunch] { --cat: #3d6a44; }
.recipe-card[data-category=dinner] { --cat: #9f4d2f; }
.recipe-card[data-category=snack] { --cat: #2f5f70; }
html[data-theme=dark] .recipe-card[data-category=breakfast] { --cat: #e6b96b; }
html[data-theme=dark] .recipe-card[data-category=lunch] { --cat: #a9d19a; }
html[data-theme=dark] .recipe-card[data-category=dinner] { --cat: #eca888; }
html[data-theme=dark] .recipe-card[data-category=snack] { --cat: #9fd0e0; }
.card-content { padding: 22px 22px 20px; }
.card-content .eyebrow.small { color: var(--cat, var(--muted)); font-size: .64rem; letter-spacing: .14em; }
.card-content .eyebrow.small span { color: var(--muted); }
.card-content h3 { font-size: 1.46rem; line-height: 1.22; margin: 10px 0 16px; }
.card-content h3 a { text-decoration: none; color: var(--ink); }
.card-content h3 a:hover { color: var(--terra); }
.card-tail { border-top: 1px solid var(--line); padding-top: 14px; font-size: .76rem; color: var(--muted); align-items: center; }
.card-tail > a {
 display: grid;
 place-items: center;
 width: 40px;
 height: 40px;
 border-radius: 50%;
 background: var(--soft);
 color: var(--primary);
 transition: background .3s var(--ease), color .3s, transform .45s var(--ease);
}
.recipe-card:hover .card-tail > a { background: var(--primary); color: var(--primary-ink); transform: rotate(-45deg); }
.recipe-grid.home-picks .recipe-card { min-width: 0; }
.filter-bar {
 border-radius: 22px;
 border: 1px solid var(--line);
 background: var(--glass);
 -webkit-backdrop-filter: blur(14px);
 backdrop-filter: blur(14px);
 box-shadow: var(--shadow);
 padding: 20px;
}
.results-line { font-size: .86rem; color: var(--muted); }
.greek-title { font-family: var(--serif); font-style: italic; color: var(--terra); font-size: .98rem; letter-spacing: -.005em; }

/* ---------- Recipe page ---------- */
.recipe-top { gap: 52px; padding-bottom: 52px; align-items: center; }
.recipe-top h1 { font-size: clamp(2.6rem, 4.3vw, 4.5rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 380; }
.recipe-facts { gap: 9px; }
.recipe-facts span {
 display: inline-flex;
 align-items: center;
 gap: 7px;
 border-radius: 999px;
 padding: 8px 14px;
 background: var(--paper);
 border: 1px solid var(--line);
 box-shadow: var(--shadow-xs);
 font-size: .8rem;
 font-weight: 550;
}
.recipe-hero-image { border-radius: 36px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.photo-caption { background: transparent; font-size: .72rem; font-style: italic; padding: 12px 6px 0; }
.recipe-actions { gap: 10px; flex-wrap: wrap; }
.recipe-body-layout { gap: 56px; }
.ingredients-panel {
 position: sticky;
 top: 120px;
 border-radius: 30px;
 border: 1px solid var(--line);
 background: var(--paper);
 box-shadow: var(--shadow);
 padding: 30px;
}
.ingredient-list { margin: 0; }
.ingredient-check { padding: 15px 0; border-bottom: 1px dashed color-mix(in srgb, var(--line) 90%, transparent); transition: opacity .2s; }
.ingredient-check:last-child { border-bottom: 0; }
.ingredient-check input[type=checkbox] { width: 21px; height: 21px; border-radius: 7px; }
.count-badge { font-variant-numeric: tabular-nums; }
.portion-control {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 12px;
 border-radius: 18px;
 background: var(--soft);
 border: 1px solid var(--line);
 padding: 12px 14px;
}
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button {
 width: 40px;
 height: 40px;
 border-radius: 50%;
 background: var(--paper);
 border: 1px solid var(--line);
 box-shadow: var(--shadow-xs);
 display: grid;
 place-items: center;
 font-size: 1.1rem;
 transition: transform .2s var(--ease), background .2s;
}
.stepper button:hover { background: #fff; transform: scale(1.06); }
html[data-theme=dark] .stepper button:hover { background: var(--soft); }
.method-list > li { padding-block: 30px; border-bottom: 1px solid var(--line); gap: 22px; }
.method-list > li:last-child { border-bottom: 0; }
.step-number {
 width: 50px;
 height: 50px;
 min-width: 50px;
 border-radius: 50%;
 display: grid;
 place-items: center;
 background: linear-gradient(160deg, var(--peach), var(--sage));
 color: var(--ink);
 font-family: var(--serif);
 font-size: 1.2rem;
 font-weight: 500;
 box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), var(--shadow-xs);
}
.method-content p { font-size: 1.05rem; line-height: 1.8; max-width: 66ch; }
.method-content .eyebrow { color: var(--terra); }
.source-panel {
 border-radius: 22px;
 background: var(--paper);
 border: 1px solid var(--line);
 border-left: 4px solid var(--terra);
 box-shadow: var(--shadow-xs);
 padding: 26px 28px;
}
.source-panel h3 { font-size: 1.3rem; }
.source-panel p { font-size: .86rem; line-height: 1.75; color: var(--muted); }

/* ---------- Photo lab (pantry scanner) ---------- */
.photo-lab {
 position: relative;
 border-radius: 34px;
 border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
 background: linear-gradient(150deg, color-mix(in srgb, var(--paper) 90%, var(--sage)) 0%, var(--paper) 62%);
 box-shadow: var(--shadow-lg);
 padding: clamp(24px, 3.4vw, 46px);
}
.photo-lab-head h2 { font-size: clamp(2.2rem, 3.4vw, 3.1rem); line-height: 1.04; }
.photo-service-badge { border-radius: 999px; padding: 7px 13px; font-weight: 600; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.photo-stages { gap: 10px; border-block: 1px solid var(--line); padding-block: 16px; }
.photo-stages li {
 display: inline-flex;
 align-items: center;
 gap: 10px;
 padding: 7px 14px 7px 7px;
 border-radius: 999px;
 font-weight: 550;
 color: var(--muted);
 transition: background .25s var(--ease), color .25s;
}
.photo-stages li span {
 width: 26px;
 height: 26px;
 border-radius: 50%;
 display: grid;
 place-items: center;
 background: var(--soft);
 color: var(--ink);
 font-weight: 700;
 font-size: .74rem;
}
.photo-stages li[aria-current=step] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.photo-stages li[aria-current=step] span { background: var(--primary); color: var(--primary-ink); }
.photo-drop {
 position: relative;
 border-radius: 28px;
 border: 1.5px dashed #8eaa93;
 background:
  radial-gradient(circle at 50% 38%, rgba(219, 234, 205, .8), transparent 62%),
  linear-gradient(160deg, rgba(246, 245, 234, .6), rgba(255, 253, 246, .3));
 min-height: 280px;
 transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.photo-drop:hover, .photo-drop.drag-over { border-color: var(--primary); transform: translateY(-2px); }
.photo-camera-mark { box-shadow: 0 16px 30px -14px rgba(20, 42, 31, .45); }
html[data-theme=dark] .photo-drop { background: radial-gradient(circle at 50% 38%, rgba(70, 100, 60, .35), transparent 62%), var(--soft); }
.photo-food {
 border-radius: 20px;
 border: 1px solid var(--line);
 background: var(--paper);
 box-shadow: var(--shadow-xs);
 transition: border-color .2s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.photo-food:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.photo-food.is-reviewed { border-color: color-mix(in srgb, var(--primary) 60%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 50%, transparent), var(--shadow-sm); }
.photo-certainty { border-radius: 999px; letter-spacing: .01em; }
.photo-choice { border-radius: 999px; }
.photo-confirm-bar { border-radius: 22px; box-shadow: var(--shadow-lg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: var(--glass); }
.photo-recipe-preview { border-radius: 26px; background: linear-gradient(140deg, var(--peach), color-mix(in srgb, var(--sage) 45%, var(--paper))); }
.suggestion-mini { border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-xs); transition: transform .3s var(--ease), box-shadow .3s; }
.suggestion-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.suggestion-mini-art { border-radius: 16px; }

/* ---------- Pantry and matching ---------- */
.pantry-panel { border-radius: 28px; padding: 26px; }
.pantry-empty { border-radius: 20px; background: linear-gradient(160deg, var(--soft), var(--paper)); border: 1px dashed #b9c9b2; }
.pantry-chip {
 border-radius: 16px;
 background: var(--paper);
 border: 1px solid var(--line);
 box-shadow: var(--shadow-xs);
 transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.pantry-chip:hover { border-color: #b8c9b0; box-shadow: var(--shadow-sm); }
.pantry-chip > span { font-weight: 600; }
.pantry-chip button[aria-pressed=true] { border-radius: 10px; }
.recipe-mode-tabs button {
 border-radius: 18px;
 border: 1px solid var(--line);
 background: var(--paper);
 box-shadow: var(--shadow-xs);
 transition: background .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.recipe-mode-tabs button:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.recipe-mode-tabs button strong { border-radius: 999px; }
.recipe-mode-tabs button[aria-pressed=true] {
 background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 86%, #ffffff), var(--primary));
 border-color: transparent;
 box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--primary) 85%, transparent);
}
.match-grid { gap: 26px; }
.match-card.recommendation-card {
 border-radius: 28px;
 border: 1px solid var(--line);
 background: var(--paper);
 box-shadow: var(--shadow);
 transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.match-card.recommendation-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #c9d7c0; }
.recommendation-photo { aspect-ratio: 16 / 10; height: auto; }
.recommendation-photo img { transition: transform .9s var(--ease); }
.recommendation-photo:hover img { transform: scale(1.06); }
.match-status {
 border-radius: 999px;
 padding: 6px 12px;
 font-weight: 650;
 background: var(--glass);
 border: 1px solid color-mix(in srgb, var(--paper) 70%, transparent);
 -webkit-backdrop-filter: blur(8px);
 backdrop-filter: blur(8px);
 box-shadow: var(--shadow-sm);
}
.match-status.ready { background: #e2efcb; color: #2d4b17; }
.match-status.close { background: #f8e6cb; color: #6a4216; }
html[data-theme=dark] .match-status { background: rgba(21, 33, 25, .85); color: var(--ink); }
html[data-theme=dark] .match-status.ready { background: #2d4524; color: #e2f5cc; }
html[data-theme=dark] .match-status.close { background: #4a3520; color: #f7deb3; }
.recommendation-content { padding: 22px 22px 20px; }
.recommendation-meta { letter-spacing: .08em; font-weight: 600; }
.recommendation-card h3 { font-size: 1.5rem; margin: 10px 0 12px; }
.ingredient-coverage progress { height: 8px; border-radius: 999px; }
.ingredient-coverage progress::-webkit-progress-value { background: linear-gradient(90deg, #6aa37c, var(--primary)); }
.ingredient-coverage progress::-moz-progress-bar { background: var(--primary); }
.match-ingredients { border-radius: 16px; border: 1px solid var(--line); }
.match-ingredients p { padding: 12px 14px; }
.recommendation-actions .btn { min-height: 46px; border-radius: 13px; }
.grocery-add { color: var(--primary); font-weight: 600; }
.recipe-empty { border-radius: 26px; }
.use-first-label { border-radius: 999px; padding: 6px 12px; font-weight: 600; }
.recipe-filters { border-radius: 20px; border-color: var(--line); background: var(--paper); box-shadow: var(--shadow-xs); }
.recipe-filters > summary { font-weight: 600; }
.quick-ingredients .chip-button { font-size: .78rem; }

/* ---------- Daily: today ---------- */
.today-summary { border-radius: 30px; overflow: hidden; }
.summary-item { position: relative; padding: 28px 30px; }
.summary-item + .summary-item { border-left: 1px solid var(--line); }
.summary-item strong { font-size: 2.2rem; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; font-weight: 400; }
.summary-item small { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.today-meal {
 border-radius: 26px;
 border: 1px solid var(--line);
 background: var(--paper);
 box-shadow: var(--shadow-sm);
 padding: 18px;
 transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.today-meal:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.today-meal > img { width: 118px; height: 118px; border-radius: 20px; }
.today-meal h3 { font-size: 1.42rem; }
.today-meal.is-eaten { background: linear-gradient(135deg, var(--soft), var(--paper)); border-color: var(--sage); }
.today-meal.is-eaten h3 { color: var(--primary); }
.log-button { border-radius: 14px; background: var(--soft); border: 1px solid var(--line); transition: transform .25s var(--ease), background .2s; }
.log-button:hover { transform: scale(1.06); background: var(--sage); }
.water-panel {
 position: relative;
 overflow: hidden;
 border-radius: 28px;
 background:
  radial-gradient(420px 260px at 100% 0%, rgba(170, 214, 222, .5), transparent 65%),
  linear-gradient(160deg, var(--blue), var(--paper));
 border: 1px solid var(--line);
 box-shadow: var(--shadow);
}
.water-number { font-family: var(--serif); font-size: 3.2rem; font-weight: 400; letter-spacing: -.03em; }
.note-panel textarea { border-radius: 18px; min-height: 120px; background: var(--paper); }
.today-suggestions .suggestion-mini { border-radius: 18px; }
.workspace-toolbar { border-radius: 24px; }
.day-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.day-tabs button {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 2px;
 border-radius: 19px;
 border: 1px solid var(--line);
 background: var(--paper);
 box-shadow: var(--shadow-xs);
 min-height: 80px;
 font-weight: 600;
 transition: transform .3s var(--ease), box-shadow .3s, background .25s, color .25s;
}
.day-tabs button:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.day-tabs button[aria-pressed=true] {
 background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 86%, #ffffff), var(--primary));
 color: var(--primary-ink);
 border-color: transparent;
 box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--primary) 85%, transparent);
}
.day-tabs button small { color: inherit; opacity: .75; font-weight: 500; }
html[data-theme=dark] .day-tabs button[aria-pressed=true] { color: #15271c; }

/* ---------- Weekly plan ---------- */
.plan-card {
 border-radius: 28px;
 border: 1px solid var(--line);
 background: var(--paper);
 box-shadow: var(--shadow);
 overflow: hidden;
 transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.plan-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform .9s var(--ease); }
.plan-card:hover img { transform: scale(1.05); }
.plan-card-content { padding: 24px; }
.plan-card .eyebrow { color: var(--terra); }
.plan-card h3 { font-size: 1.55rem; margin: 8px 0 8px; }
.plan-card .fineprint { margin-bottom: 16px; }
.plan-card .btn.secondary { min-height: 44px; }
.plan-day-heading h2 { font-family: var(--serif); font-size: 1.9rem; letter-spacing: -.03em; }
.plan-day-heading .muted { font-family: var(--sans); font-size: .9rem; letter-spacing: 0; }
.week-switcher .btn { border-radius: 14px; }
.week-overview { border-radius: 26px; padding: 6px; overflow: hidden; }
.week-overview summary { border-radius: 20px; padding: 18px 20px; }
.week-overview table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.week-overview caption { caption-side: top; text-align: left; padding: 14px 18px 4px; font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.week-overview th, .week-overview td { padding: 13px 16px; text-align: left; vertical-align: top; }
.week-overview thead th { font-size: .66rem; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); font-weight: 650; border-bottom: 1px solid var(--line); }
.week-overview tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.week-overview tbody tr + tr td, .week-overview tbody tr + tr th { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.week-overview tbody tr:hover td, .week-overview tbody tr:hover th { background: color-mix(in srgb, var(--soft) 70%, transparent); }
.week-overview td a { color: var(--ink); text-decoration: none; font-weight: 500; }
.week-overview td a:hover { color: var(--terra); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Shopping ---------- */
.shopping-options { border-radius: 28px; padding: 26px; }
.shopping-options h2 { font-size: 2rem; }
.shopping-progress-panel { background: linear-gradient(145deg, var(--soft), var(--paper)); border-radius: 22px; border: 1px solid var(--line); }
.shopping-progress-panel progress { height: 9px; }
.shopping-progress-panel progress::-webkit-progress-value { background: linear-gradient(90deg, #6aa37c, var(--primary)); }
.shopping-group {
 border-radius: 26px;
 border: 1px solid var(--line);
 background: var(--paper);
 box-shadow: var(--shadow);
 overflow: hidden;
}
.shopping-group h2 {
 font-family: var(--serif);
 font-size: 1.5rem;
 font-weight: 450;
 background: linear-gradient(90deg, var(--soft), color-mix(in srgb, var(--paper) 90%, var(--soft)));
 border-bottom: 1px solid var(--line);
 display: flex;
 align-items: baseline;
 justify-content: space-between;
 gap: 12px;
}
.shopping-group h2 span { font-family: var(--sans); font-size: .74rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.grocery-row { transition: background .2s, opacity .3s; padding: 15px 24px; }
.grocery-row:hover { background: color-mix(in srgb, var(--soft) 55%, transparent); }
.grocery-row label { cursor: pointer; }
.grocery-row strong { font-size: .86rem; font-weight: 600; }
.grocery-row.is-checked strong { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--muted); }
.grocery-row input[type=checkbox] { width: 21px; height: 21px; border-radius: 7px; }
.shop-bottom-actions { gap: 10px; }

/* ---------- Settings and family ---------- */
.settings-grid { gap: 24px; }
.settings-grid .panel { padding: 30px; border-radius: 28px; }
.settings-row { border-radius: 16px; }
.preferences-panel {
 border-radius: 30px;
 background: radial-gradient(520px 260px at 100% 0%, rgba(210, 228, 188, .45), transparent 70%), var(--paper);
 border: 1px solid var(--line);
 box-shadow: var(--shadow);
}
.preference-choice { border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-xs); transition: border-color .2s, background .2s; }
.preference-choice:hover { border-color: #b8c9b0; }
.danger-panel { border-radius: 26px; border-color: #e7c6b6; background: linear-gradient(160deg, #fbf1ea, var(--paper)); }
html[data-theme=dark] .danger-panel { background: linear-gradient(160deg, #3a241c, var(--paper)); border-color: #6d4534; }
.family-banner {
 border-radius: 30px;
 background: linear-gradient(160deg, #2e5140, #1b3329);
 color: #f6f3e6;
 box-shadow: var(--shadow-lg);
 padding: clamp(28px, 4vw, 52px);
}
.family-banner h1, .family-banner h2 { color: #faf8eb; }
.family-banner .eyebrow { color: #c9d8bc; }
.family-banner h1 em, .family-banner h2 em { color: #d9e6b4; }
.family-banner p { color: #dbe5d3; }
.family-boundary { border-radius: 22px; border: 1px solid var(--line); background: var(--paper); }
/* The boundary note sits inside the dark banner but is a light card, so it takes dark text. */
.family-banner .family-boundary { background: var(--paper); color: var(--ink); padding: 26px 30px; display: grid; gap: 10px; }
.family-banner .family-boundary > svg { color: var(--primary); }
.family-banner .family-boundary h3 { font-size: 1.35rem; margin: 0; }
.family-banner .family-boundary h1, .family-banner .family-boundary h2, .family-banner .family-boundary h3 { color: var(--ink); }
.family-banner .family-boundary p, .family-banner .family-boundary small, .family-banner .family-boundary li { color: var(--muted); }
.credits-grid { gap: 22px; }
.credits-grid > * { border-radius: 24px; }
.credits-grid img { height: auto; aspect-ratio: 5 / 4; }

/* ---------- Prose and reading pages ---------- */
.prose {
 border-radius: 32px;
 border: 1px solid var(--line);
 background: var(--paper);
 box-shadow: var(--shadow);
 padding: clamp(28px, 4.4vw, 60px);
 max-width: 860px;
}
.prose h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.25rem); margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose h2:first-of-type, .prose > h2:first-child { border-top: 0; padding-top: 0; margin-top: 8px; }
.prose h3 { font-size: 1.22rem; margin-top: 26px; }
.prose p, .prose li { font-size: 1rem; line-height: 1.85; max-width: 68ch; }
.prose p + p { margin-top: 1.1em; }
.prose a { color: var(--primary); text-decoration-thickness: 1.5px; text-decoration-color: var(--terra); text-underline-offset: 3px; }
.prose a:hover { color: var(--terra); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--terra); }
.prose blockquote, .prose .notice {
 margin: 26px 0;
 padding: 18px 22px;
 border-radius: 18px;
 border-left: 4px solid var(--terra);
 background: color-mix(in srgb, var(--peach) 50%, var(--paper));
}
.narrow { max-width: 860px; }

/* ---------- Dialogs and quick search ---------- */
dialog::backdrop { background: rgba(9, 22, 16, .5); -webkit-backdrop-filter: blur(8px) saturate(120%); backdrop-filter: blur(8px) saturate(120%); }
.action-dialog, .cook-dialog, .quick-dialog {
 border-radius: 30px;
 border: 1px solid color-mix(in srgb, var(--paper) 40%, var(--line));
 background: var(--paper);
 box-shadow: var(--shadow-lg);
}
dialog[open] { animation: dialog-in .36s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.quick-search-field { border-radius: 18px; background: var(--soft); border: 1px solid var(--line); padding: 6px 16px; }
.quick-result { border-radius: 14px; transition: background .2s, transform .25s var(--ease); }
.quick-result:hover, .quick-result:focus { background: var(--soft); transform: translateX(3px); }
.swap-option { border-radius: 20px; transition: background .2s, transform .25s var(--ease), border-color .2s; }
.swap-option:hover:not(:disabled) { transform: translateY(-2px); border-color: #c4d4bc; }
.cook-step { border-radius: 24px; background: linear-gradient(150deg, var(--soft), var(--paper)); }
.cook-timer { border-radius: 22px; }

/* ---------- Photo scan: "the AI is identifying your ingredients" ---------- */
/* The stage hugs the photo so the overlay lines up with the picture, not the letterbox. */
.photo-preview-wrap .scan-stage { position: relative; display: block; width: fit-content; max-width: 100%; margin-inline: auto; overflow: hidden; border-radius: 14px; line-height: 0; background: var(--soft); }
.photo-preview-wrap .scan-stage img#pantry-preview { display: block; width: auto; max-width: 100%; height: auto; max-height: 310px; margin: 0; background: transparent; }
.scan-fx { position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: inherit; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s linear .4s; }
#photo-kitchen[data-scan] .scan-fx { opacity: 1; visibility: visible; transition-delay: 0s; }
.scan-fx > span { position: absolute; display: block; }
.scan-tint { inset: 0; background: linear-gradient(180deg, rgba(8, 44, 30, .26), rgba(8, 44, 30, .5)); transition: opacity .6s ease; }
.scan-grid {
 inset: 0;
 background-image: linear-gradient(rgba(214, 255, 226, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(214, 255, 226, .13) 1px, transparent 1px);
 background-size: 26px 26px;
 -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 35%, transparent 100%);
 mask-image: radial-gradient(ellipse at 50% 50%, #000 35%, transparent 100%);
 animation: scan-grid 7s linear infinite;
 transition: opacity .5s ease;
}
.scan-beam {
 left: 0;
 right: 0;
 top: 0;
 height: 28%;
 background: linear-gradient(180deg, rgba(120, 255, 170, 0) 0%, rgba(140, 255, 190, .14) 55%, rgba(176, 255, 204, .46) 100%);
 border-bottom: 2px solid rgba(232, 255, 240, .95);
 box-shadow: 0 10px 26px 2px rgba(120, 255, 170, .45);
 transform: translateY(-100%);
 animation: scan-sweep 2.9s cubic-bezier(.5, 0, .5, 1) infinite alternate;
 transition: opacity .4s ease;
}
.scan-corner { width: 26px; height: 26px; border: 0 solid #dcffe6; filter: drop-shadow(0 0 6px rgba(150, 255, 190, .85)); animation: scan-lock 2.4s ease-in-out infinite; transition: opacity .4s ease, border-color .4s ease; }
.scan-corner-tl { top: 10px; left: 10px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 9px; }
.scan-corner-tr { top: 10px; right: 10px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 9px; animation-delay: .15s; }
.scan-corner-bl { bottom: 10px; left: 10px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 9px; animation-delay: .3s; }
.scan-corner-br { bottom: 10px; right: 10px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 9px; animation-delay: .45s; }
.scan-readout {
 position: absolute;
 left: 10px;
 right: 10px;
 bottom: 10px;
 display: flex;
 align-items: center;
 gap: 10px;
 padding: 9px 13px;
 border-radius: 13px;
 background: rgba(9, 36, 25, .74);
 -webkit-backdrop-filter: blur(10px);
 backdrop-filter: blur(10px);
 border: 1px solid rgba(214, 255, 226, .22);
 color: #f1fff6;
 font: 600 12.5px/1.3 var(--sans);
 letter-spacing: 0;
 transition: opacity .35s ease, transform .35s var(--ease);
}
.scan-spark { flex-shrink: 0; color: #b9ffcf; animation: scan-spark 2.2s ease-in-out infinite; }
.scan-lines { position: relative; flex: 1; min-width: 0; height: 1.3em; overflow: hidden; }
.scan-line { position: absolute; left: 0; top: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; animation: scan-line 9.6s ease-in-out infinite both; }
.scan-line:first-child { opacity: 1; }
.scan-line:nth-child(2) { animation-delay: 2.4s; }
.scan-line:nth-child(3) { animation-delay: 4.8s; }
.scan-line:nth-child(4) { animation-delay: 7.2s; }
.scan-dots { display: inline-flex; gap: 4px; flex-shrink: 0; }
.scan-dots i { width: 5px; height: 5px; border-radius: 50%; background: #b9ffcf; animation: scan-dot 1.1s ease-in-out infinite; }
.scan-dots i:nth-child(2) { animation-delay: .15s; }
.scan-dots i:nth-child(3) { animation-delay: .3s; }
.scan-done {
 position: absolute;
 left: 0;
 right: 0;
 bottom: 0;
 display: grid;
 gap: 8px;
 padding: 34px 12px 12px;
 background: linear-gradient(0deg, rgba(8, 40, 27, .86), rgba(8, 40, 27, 0));
 opacity: 0;
 transform: translateY(8px);
 transition: opacity .4s ease, transform .4s var(--ease);
}
.scan-done-count { color: #f1fff6; font: 700 13px/1.2 var(--sans); letter-spacing: .01em; }
.scan-found { display: flex; flex-wrap: wrap; gap: 6px; }
.scan-found span { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #1b3026; font: 600 12px/1.2 var(--sans); text-transform: capitalize; animation: scan-pop .5s cubic-bezier(.2, 1.35, .4, 1) both; }
.scan-found span:nth-child(2) { animation-delay: .07s; }
.scan-found span:nth-child(3) { animation-delay: .14s; }
.scan-found span:nth-child(4) { animation-delay: .21s; }
.scan-found span:nth-child(5) { animation-delay: .28s; }
.scan-found span:nth-child(6) { animation-delay: .35s; }
.scan-found span:nth-child(7) { animation-delay: .42s; }
.scan-found span:nth-child(8) { animation-delay: .49s; }
.scan-found span:nth-child(9) { animation-delay: .56s; }
#photo-kitchen[data-scan=done] .scan-beam,
#photo-kitchen[data-scan=done] .scan-grid,
#photo-kitchen[data-scan=done] .scan-readout { opacity: 0; }
#photo-kitchen[data-scan=done] .scan-readout { transform: translateY(8px); }
#photo-kitchen[data-scan=done] .scan-tint { opacity: .5; }
#photo-kitchen[data-scan=done] .scan-corner { border-color: #aef5c4; animation: none; }
#photo-kitchen[data-scan=done] .scan-done { opacity: 1; transform: none; }
/* The button shows work in progress while the analysis runs. */
#photo-kitchen[data-scan=on] #photo-analyze:disabled {
 opacity: 1;
 cursor: progress;
 background: linear-gradient(110deg, var(--primary) 25%, color-mix(in srgb, var(--primary) 55%, #7fd6a0) 50%, var(--primary) 75%);
 background-size: 220% 100%;
 animation: scan-button 1.7s linear infinite;
}
/* Motion runs only while a scan is on, so every scan starts from its first frame and an idle page animates nothing. */
#photo-kitchen:not([data-scan=on]) .scan-fx > span,
#photo-kitchen:not([data-scan=on]) .scan-spark,
#photo-kitchen:not([data-scan=on]) .scan-line,
#photo-kitchen:not([data-scan=on]) .scan-dots i { animation: none; }
@keyframes scan-sweep { from { transform: translateY(-100%); } to { transform: translateY(285%); } }
@keyframes scan-grid { to { background-position: 26px 26px, 26px 26px; } }
@keyframes scan-lock { 0%, 100% { transform: translate(0, 0); opacity: .75; } 50% { transform: translate(var(--lock-x, 3px), var(--lock-y, 3px)); opacity: 1; } }
.scan-corner-tr { --lock-x: -3px; }
.scan-corner-bl { --lock-y: -3px; }
.scan-corner-br { --lock-x: -3px; --lock-y: -3px; }
@keyframes scan-line { 0% { opacity: 0; transform: translateY(70%); } 5% { opacity: 1; transform: none; } 22% { opacity: 1; transform: none; } 27% { opacity: 0; transform: translateY(-70%); } 100% { opacity: 0; transform: translateY(-70%); } }
@keyframes scan-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes scan-spark { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(90deg) scale(1.18); } }
@keyframes scan-pop { from { opacity: 0; transform: translateY(8px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes scan-button { from { background-position: 220% 0; } to { background-position: -220% 0; } }
@media (max-width: 520px) {
 .scan-readout { left: 8px; right: 8px; bottom: 8px; padding: 8px 11px; font-size: 12px; }
 .scan-corner { width: 20px; height: 20px; }
 .scan-dots { display: none; }
}
@media (prefers-reduced-motion: reduce) {
 /* No sweeping or pulsing: a calm tint and one static status line. */
 .scan-fx > .scan-beam, .scan-fx > .scan-grid { display: none; }
}

/* Card labels ("BREAKFAST · 4 INGREDIENTS") wrap instead of being clipped in two-column phone grids. */
.recipe-card .card-content .eyebrow.small { flex-wrap: wrap; row-gap: 2px; max-width: 100%; }

/* The photo credit sits inside a rounded card, so it needs room to clear the corner curves. */
.recipe-hero-image .photo-caption { margin: 0; padding: 14px 24px 18px; line-height: 1.5; }

/* ---------- Plan the week for me ---------- */
.plan-builder {
 display: grid;
 grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
 gap: 22px 36px;
 align-items: center;
 margin: 0 0 26px;
 padding: clamp(20px, 3vw, 30px);
 border-radius: var(--radius);
 border: 1px solid var(--line);
 background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--sage) 55%, var(--paper)) 0%, var(--paper) 62%);
 box-shadow: var(--shadow-sm);
}
.plan-builder-copy h2 { margin: 6px 0 8px; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; font-weight: 450; }
.plan-builder-copy p { margin: 0 0 6px; }
.plan-builder-copy #plan-builder-summary { color: var(--ink); font-weight: 500; }
.plan-builder-actions { display: grid; gap: 14px; justify-items: start; }
.plan-builder-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.plan-builder-buttons .btn.primary { padding-inline: 22px; }
.plan-builder-buttons .btn svg { flex-shrink: 0; }
#plan-builder-status:not(:empty) { padding: 10px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); max-width: 46ch; }
@media (max-width: 760px) {
 .plan-builder { grid-template-columns: 1fr; }
 .plan-builder-buttons .btn.primary { width: 100%; justify-content: center; }
}

/* ---------- Not found ---------- */
.not-found-picks .recipe-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card-link { display: block; color: inherit; text-decoration: none; }
.not-found-links {
 display: flex;
 flex-wrap: wrap;
 gap: 10px;
 margin-top: 44px;
 padding-top: 28px;
 border-top: 1px solid var(--line);
}
.not-found-links a {
 display: inline-flex;
 align-items: center;
 gap: 9px;
 padding: 12px 18px;
 border-radius: 999px;
 background: var(--paper);
 border: 1px solid var(--line);
 box-shadow: var(--shadow-xs);
 color: var(--ink);
 text-decoration: none;
 font-weight: 600;
 font-size: .9rem;
 transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s, background .2s;
}
.not-found-links a .icon { transition: transform .3s var(--ease); }
.not-found-links a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: #b7c8b0; }
.not-found-links a:hover .icon { transform: translateX(3px); }

/* ---------- Toasts and notices ---------- */
.toast {
 border-radius: 999px;
 padding: 13px 22px;
 background: #173028;
 color: #f6f4e9;
 border: 1px solid rgba(255, 255, 255, .08);
 box-shadow: 0 18px 40px -14px rgba(9, 22, 16, .55);
 font-weight: 500;
}
html[data-theme=dark] .toast { background: #e8efdf; color: #15261c; border-color: transparent; }
.update-note { border-radius: 18px; }
#storage-warning, #offline-notice { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-xs); }

/* ---------- Footer ---------- */
footer {
 position: relative;
 overflow: hidden;
 margin-top: 92px;
 padding-top: 68px;
 border-top: 0;
 background: linear-gradient(172deg, #22412f 0%, #15291f 100%);
 color: #e8eee0;
}
footer::before {
 content: "";
 position: absolute;
 right: -12%;
 bottom: -40%;
 width: 70%;
 height: 130%;
 background: radial-gradient(closest-side, rgba(200, 222, 170, .14), transparent);
 pointer-events: none;
}
html[data-theme=dark] footer { background: linear-gradient(172deg, #14291f 0%, #0a140f 100%); }
footer .brand, footer .brand > span:last-child { color: #f7f4e8; }
footer .brand small { color: #b8c7b1; }
footer .brand-mark { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 12px 22px -12px rgba(0, 0, 0, .5); }
footer h3 { color: #e4b99c; font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .14em; }
footer a { position: relative; color: #d3dfcb; text-decoration: none; transition: color .2s; }
footer a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--ease); }
footer a:hover { color: #ffffff; }
footer a:hover::after { transform: scaleX(1); }
footer p, footer .footer-inner p, footer .footer-note p { color: #c4d2bd; }
footer .footer-inner a, footer .footer-inner > div > a:not(.brand) { color: #d3dfcb; }
footer .footer-inner > div > a:not(.brand):hover { color: #ffffff; }
footer :focus-visible { outline-color: #f1c9ae; }
.footer-note { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; color: #e8eee0; }
.footer-note strong { color: #f7f4e8; font-family: var(--serif); font-weight: 450; font-size: 1.1rem; }
.footer-note p { color: #c4d2bd; }
.footer-note svg { color: #d9e6b4; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); color: #a9b9a2; margin-top: 40px; }
.footer-bottom a { color: #d9e6b4; }

/* ---------- Motion ---------- */
/* Page-to-page transitions where the browser supports them. The header and bottom bar stay put; the page content crossfades. Other browsers navigate normally. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.bottom-nav { view-transition-name: bottom-nav; }
::view-transition-group(site-header),
::view-transition-group(bottom-nav) { animation-duration: 0s; }
::view-transition-old(root) { animation: vt-out .26s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .44s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
 ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(80, 124, 74, .45); } 70% { box-shadow: 0 0 0 7px rgba(80, 124, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(80, 124, 74, 0); } }
.home-v5-copy > * { animation: rise .9s var(--ease) both; }
.home-v5-copy > *:nth-child(2) { animation-delay: .08s; }
.home-v5-copy > *:nth-child(3) { animation-delay: .16s; }
.home-v5-copy > *:nth-child(4) { animation-delay: .24s; }
.home-v5-visual { animation: rise 1.05s var(--ease) .14s both; }
.floating-kitchen-card { animation: float 7s ease-in-out infinite; }
.page-heading > * { animation: rise .8s var(--ease) both; }
.page-heading > *:nth-child(2) { animation-delay: .08s; }

/* ---------- Responsive finish ---------- */
@media (max-width: 1250px) {
 .connected-banner { padding: 46px; }
 .recipe-body-layout { gap: 40px; }
}
@media (max-width: 1100px) {
 .main-nav.is-open {
  border-radius: 24px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  gap: 6px;
 }
 .main-nav.is-open a { flex-direction: column; justify-content: center; gap: 9px; text-align: center; border-radius: 18px; padding: 16px 8px; font-size: .8rem; }
 .main-nav.is-open a .icon { display: block; width: 22px; height: 22px; }
 .main-nav.is-open a[aria-current=page] { background: var(--soft); }
 .day-tabs { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
 .home-v5-visual { overflow: clip; }
 .bottom-nav {
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: auto;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 24px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  box-shadow: 0 20px 44px -16px rgba(20, 42, 31, .42);
 }
 .bottom-nav a { color: var(--muted); border-radius: 18px; transition: background .25s var(--ease), color .2s; }
 .bottom-nav a[aria-current=page] { background: var(--soft); color: var(--primary); font-weight: 650; box-shadow: var(--shadow-xs); }
 .bottom-nav a[aria-current=page] .icon { color: var(--terra); }
 .toast { bottom: 104px; }
 .update-note { bottom: 170px; }
 .home-v5 { gap: 40px; padding-block: 52px 40px; }
 .connected-banner { border-radius: 30px; padding: 36px; }
 .recipe-body-layout { gap: 28px; }
 .ingredients-panel { position: static; padding: 24px; }
 .method-list > li { padding-block: 24px; gap: 16px; }
 .photo-stages li { padding: 6px 10px 6px 6px; }
 .prose { border-radius: 26px; }
}
@media (max-width: 640px) {
 .everyday-rail a { padding: 22px 18px; }
 .everyday-rail a > svg:nth-of-type(1) { width: 44px; height: 44px; padding: 11px; border-radius: 14px; }
 .recipe-grid { gap: 18px; }
 .card-content { padding: 18px; }
 .card-content h3 { font-size: 1.28rem; }
 .summary-item { padding: 20px 22px; }
 .summary-item strong { font-size: 1.8rem; }
 .day-tabs button { min-height: 68px; border-radius: 16px; }
 .today-meal > img { width: 84px; height: 84px; border-radius: 16px; }
 .footer-bottom { padding-bottom: 110px; }
}
@media (max-width: 520px) {
 .home-v5 h1 { font-size: 3.05rem; }
 .recipe-card { border-radius: 22px; }
 .card-image .image-badge { bottom: 10px; left: 10px; padding: 5px 9px; font-size: .66rem; }
 .card-image .favorite { width: 36px; height: 36px; min-height: 36px; top: 9px; right: 9px; border-radius: 12px; }
 .photo-lab { border-radius: 26px; }
 .photo-lab-head h2 { font-size: 2rem; }
 .photo-drop { min-height: 0; border-radius: 22px; }
 .pantry-panel, .shopping-options, .settings-grid .panel, .preferences-panel { padding: 22px; }
 .shopping-group h2 { font-size: 1.3rem; padding: 16px 18px; }
 .grocery-row { padding: 14px 18px; }
 .plan-card-content { padding: 20px; }
 .trust-grid article { padding: 26px; border-radius: 22px; }
 .prose { padding: 24px 20px; }
 .action-dialog, .cook-dialog, .quick-dialog { border-radius: 24px; }
}
@media (max-width: 360px) {
 .home-v5 h1 { font-size: 2.7rem; }
 .bottom-nav a { font-size: .6rem; }
}
