/* Paw Safe Eats
   Warm off-white paper, slate ink, teal for actions: a calm reference site, not a shop.
   Amber marks caution; a soft mint marks safe. */

@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 400 700; font-display: optional; src: url(/fonts/google-sans.woff2) format("woff2"); }

:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --ink: #1C2B33;
  --muted: #5B6B73;
  --line: #E2DED5;
  --tint: #EDEBE4;
  --accent: #0E7C6B;
  --accent-ink: #0A5C50;
  --mint: #D6EDE6;
  --yolk: #F5C56B;
  --band: #1C2B33;
  --band-ink: #F6F4EF;
  --shadow: rgba(28, 43, 51, .35);
  --ok: #1E7A4F;
  --plate: #FFFFFF;
  --lid: #C5D0CB;
  --pan: #B9C4BF;
  --pan-in: #D7DFDB;
  --gutter: clamp(16px, 4vw, 72px);
  --font: "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0F1A1E;
  --surface: #172529;
  --ink: #EEF2F0;
  --muted: #97A8AD;
  --line: #263A3F;
  --tint: #1B2D32;
  --accent: #3FB59C;
  --accent-ink: #7ED8C2;
  --mint: #1D3D3A;
  --band: #15252A;
  --band-ink: #EEF2F0;
  --shadow: rgba(0, 0, 0, .6);
  --ok: #5FD39A;
  --plate: #EEF2F0;
  --lid: #9FB0A8;
  --pan: #6F7F78;
  --pan-in: #8E9C96;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 16px; }
.i { width: 1.15em; height: 1.15em; flex: none; }
.meta { color: var(--muted); font-size: .9rem; }
.link { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; background: none; border: 0; padding: 0; }
.link:hover { text-decoration-thickness: 2px; }
.wrap { padding-inline: var(--gutter); }

/* art */
.art { --art-bg: hsl(var(--h) 62% 90%); display: block; width: 100%; height: 100%; }
[data-theme="dark"] .art { --art-bg: hsl(var(--h) 30% 19%); }

/* masking-tape label: cost and fridge-life notes */
.tape {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--yolk); color: #2B2100;
  font-size: .82rem; font-weight: 600; line-height: 1.2;
  padding: 5px 10px; border-radius: 3px;
  transform: rotate(-3deg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .14);
}
.tape-lg { font-size: 1rem; padding: 7px 14px; }

/* buttons and chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; white-space: nowrap; transition: transform .15s, background-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-ghost[aria-pressed="true"] .i { fill: currentColor; }
.icon-btn {
  position: relative; width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent;
}
.icon-btn:hover { background: var(--tint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: .95rem; font-weight: 500; white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.chip::first-letter { text-transform: uppercase; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; margin-block: 18px 14px; padding-bottom: 6px; scrollbar-width: thin; }

/* header */
.nav {
  position: sticky; top: 12px; z-index: 50;
  margin: 12px var(--gutter) 0;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px 8px 16px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 999px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo svg { transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.logo:hover svg { transform: rotate(-8deg); }
.logo-word { font-size: 1.3rem; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.logo-word span { color: var(--accent-ink); font-weight: 500; }
.nav-links { display: flex; gap: 2px; margin-inline: auto; }
.nav-links a { padding: 9px 15px; border-radius: 999px; font-weight: 500; font-size: .98rem; }
.nav-links a:hover { background: var(--tint); }
.nav-links a[aria-current] { background: var(--ink); color: var(--bg); }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.search-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--muted);
}
.search-btn:hover { border-color: var(--ink); color: var(--ink); }
kbd { font: 500 .72rem var(--font); padding: 3px 7px; border-radius: 6px; background: var(--tint); }
.count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: #0E2019; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center;
}
[data-theme="light"] .when-dark, [data-theme="dark"] .when-light { display: none; }
.when-light, .when-dark { display: grid; }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 88px); align-items: center;
  padding-block: clamp(36px, 6vw, 92px) clamp(8px, 2vw, 24px);
}
.hero h1 { font-size: clamp(2.9rem, 6.3vw, 7.25rem); line-height: .94; letter-spacing: -.045em; }
.lede { font-size: clamp(1.1rem, .8vw + .9rem, 1.4rem); color: var(--muted); max-width: 46ch; margin-top: 20px; text-wrap: pretty; }
.hero-search {
  display: flex; align-items: center; gap: 10px; max-width: 580px; margin-top: 30px;
  padding: 6px 6px 6px 20px; background: var(--surface);
  border: 1.5px solid var(--ink); border-radius: 999px;
}
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 1.05rem; padding: 10px 0; }
.hero-alt { margin-top: 16px; color: var(--muted); max-width: 52ch; }
.hero-alt a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.tray {
  position: relative; display: grid; grid-template-columns: 1.65fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px;
  padding: 12px; aspect-ratio: 5 / 4; background: var(--surface); border-radius: 46px;
  box-shadow: 0 0 0 1px var(--line), 0 60px 90px -50px var(--shadow);
  transform: rotate(-1.2deg);
}
.comp { position: relative; display: block; overflow: hidden; border-radius: 34px; }
.comp .art { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
a.comp:hover .art { transform: scale(1.05); }
.comp-a { grid-row: 1 / 3; }
.comp-c { background: var(--mint); padding: clamp(14px, 1.6vw, 24px); display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.comp-c p { font-size: .8rem; line-height: 1.35; }
.comp-c .comp-big { font-size: clamp(1.15rem, 1.7vw, 1.9rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.comp-c .btn { margin-top: 6px; padding: 8px 12px; font-size: .8rem; white-space: normal; }
.comp-label {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 12px 16px; border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.comp-label strong { display: block; line-height: 1.2; }
.comp-label span { font-size: .88rem; color: var(--muted); }
.tray > .tape { left: 34px; top: -16px; bottom: auto; z-index: 2; transform: rotate(-5deg); }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.97); } }

/* sections */
.section { margin-top: clamp(60px, 8vw, 124px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, 2.4vw, 34px); }
.section-head h2, .band h2, .signup h2 { font-size: clamp(1.8rem, 2.3vw + 1rem, 3.4rem); line-height: 1; letter-spacing: -.035em; }

.shelf { display: grid; grid-template-columns: repeat(var(--n), minmax(104px, 1fr)); gap: clamp(12px, 1.6vw, 26px); overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: thin; }
.shelf-item { text-align: center; }
.shelf-art { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 12px; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.shelf-item:hover .shelf-art { transform: rotate(-10deg) scale(1.05); }
.shelf-item strong { display: block; line-height: 1.2; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: clamp(26px, 3vw, 44px) clamp(16px, 1.8vw, 28px); }
.card { position: relative; }
.card-art { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 28px; }
.card-art .art { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-art .art { transform: scale(1.06); }
.card h3 { margin: 14px 0 6px; font-size: 1.22rem; line-height: 1.2; letter-spacing: -.015em; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 28px; }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .9rem; }
.facts li { display: inline-flex; align-items: center; gap: 5px; }
.fav {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--surface); color: var(--ink);
  transition: transform .2s cubic-bezier(.2, 1.6, .4, 1);
}
.fav:hover { transform: scale(1.12); }
.fav[aria-pressed="true"] { color: var(--accent); }
.fav[aria-pressed="true"] .i { fill: currentColor; }

.band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 72px); align-items: center;
  padding: clamp(28px, 5vw, 76px); border-radius: clamp(28px, 3.4vw, 48px);
  background: var(--band); color: var(--band-ink);
}
.band p { margin: 16px 0 24px; max-width: 44ch; opacity: .78; }
.band .chip { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); color: inherit; font-size: 1.02rem; padding: 10px 18px; }
.band .chip:hover { border-color: #fff; }
.band .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0E2019; }

.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.method-col { background: var(--surface); border-radius: 32px; padding: clamp(18px, 2vw, 28px); display: flex; flex-direction: column; gap: 2px; }
.method-col h3 { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: 10px; }
.method-col .link { margin-top: 12px; align-self: flex-start; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px; border: 0; border-radius: 18px; background: none; text-align: left; }
.row:hover { background: var(--tint); }
.row-art { width: 54px; height: 54px; flex: none; border-radius: 50%; overflow: hidden; }
.row strong, .row .meta { display: block; line-height: 1.25; }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(26px, 3vw, 44px) clamp(16px, 1.8vw, 28px); }
.post { display: block; }
.post-art { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 28px; }
.post-art .art { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.post:hover .post-art .art { transform: scale(1.05); }
.post h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.02em; margin: 16px 0 6px; }
.post p { color: var(--muted); margin-bottom: 8px; }
.post-lead { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); align-items: center; margin-bottom: clamp(36px, 5vw, 72px); }
.post-lead .post-art { aspect-ratio: 16 / 9; border-radius: 40px; }
.post-lead h2 { font-size: clamp(1.7rem, 2.4vw + .8rem, 3.2rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 12px; }

/* inner pages */
.page { padding-top: clamp(28px, 4.5vw, 64px); }
.page-head { margin-bottom: clamp(22px, 3vw, 40px); }
.h1-sm { font-size: clamp(2.3rem, 4.4vw, 5rem); line-height: .98; letter-spacing: -.04em; max-width: 20ch; }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sub-head h2 { font-size: 1.6rem; letter-spacing: -.025em; }
.empty { text-align: center; padding: clamp(36px, 6vw, 72px) 24px; background: var(--surface); border-radius: 32px; }
.empty h3 { font-size: 1.4rem; }
.empty p { color: var(--muted); margin: 6px auto 0; max-width: 40ch; }
.empty .btn { margin-top: 20px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 52px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; color: var(--muted); }
.filter-search:focus-within { border-color: var(--ink); }
.filter-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--ink); }
.sort { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; }
.sort select { height: 52px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 500; }
#rcount { margin-bottom: 18px; }

/* recipe */
.recipe-head .chips { margin-bottom: 18px; }
.recipe-body { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 4.5vw, 84px); align-items: start; margin-top: clamp(28px, 4vw, 52px); }
.recipe-side { position: sticky; top: 88px; display: grid; gap: 18px; }
.recipe-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 38px; }
.recipe-art .tape { left: 18px; bottom: 18px; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 24px; overflow: hidden; }
.specs div { background: var(--surface); padding: 14px 16px; }
.specs dt, .nutri dt { color: var(--muted); font-size: .85rem; }
.specs dd { font-weight: 600; }
.nutri { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.nutri dd { font-size: 1.55rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.recipe-main section + section { margin-top: clamp(32px, 4vw, 52px); }
.stepper { display: inline-flex; align-items: center; gap: 6px; padding: 3px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; font-size: .95rem; }
.stepper .icon-btn { width: 36px; height: 36px; }
.checks { list-style: none; padding: 0; }
.checks li { border-bottom: 1px solid var(--line); }
.checks label { display: flex; gap: 14px; padding: 14px 4px; cursor: pointer; }
.checks input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); }
.checks input:checked + span { opacity: .45; text-decoration: line-through; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps span::before { content: counter(step) ". "; font-weight: 700; }
.steps span { transition: font-size .25s; }
.cooking .steps span { font-size: 1.5rem; line-height: 1.35; }
.cooking .steps label { padding-block: 22px; }
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.note { background: var(--surface); border-radius: 24px; padding: 20px; }
.note h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 6px; }
.note p { color: var(--muted); font-size: .97rem; }

/* generator */
.gen { display: grid; grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 64px); align-items: start; }
.gen-controls { background: var(--surface); border-radius: 32px; padding: clamp(18px, 2vw, 28px); }
.gen fieldset { border: 0; padding: 0; margin-top: 20px; }
.gen legend { padding: 0; margin-bottom: 9px; font-weight: 600; font-size: .95rem; }
.gen-controls .chip { background: var(--bg); padding: 6px 13px; font-size: .9rem; }
.gen-controls .chip[aria-pressed="true"] { background: var(--ink); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-size: .92rem; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
#gen-time { width: 100%; accent-color: var(--accent); }
#gen-time-out { display: block; color: var(--muted); font-size: .92rem; }
.matches { list-style: none; padding: 0; }
.match { position: relative; display: grid; grid-template-columns: auto 72px minmax(0, 1fr) auto; gap: clamp(10px, 1.4vw, 20px); align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ring { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); }
.ring span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-size: .8rem; font-weight: 700; }
.match-art { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; }
.match h3 { font-size: 1.15rem; letter-spacing: -.015em; }
.match h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.match .fav { position: static; }
.need { font-size: .9rem; margin-top: 6px; }
.need span { display: inline-block; margin: 2px 2px 0; padding: 1px 9px; border-radius: 999px; background: var(--tint); }
.need.ready { color: var(--ok); font-weight: 600; }

/* planner */
.planner { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: clamp(24px, 3vw, 56px); align-items: start; }
.week-row { display: grid; grid-template-columns: 48px repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; align-items: stretch; }
.week-row h3 { align-self: center; font-size: 1rem; }
.week-head { color: var(--muted); font-size: .88rem; margin-bottom: 6px; }
.slot { position: relative; min-height: 76px; display: flex; align-items: center; padding: 8px; background: var(--surface); border-radius: 22px; }
.slot a { display: flex; align-items: center; gap: 10px; min-width: 0; }
.slot-art { width: 54px; height: 54px; flex: none; border-radius: 50%; overflow: hidden; display: block; }
.slot-title { font-size: .92rem; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.slot-empty { justify-content: center; background: transparent; border: 1.5px dashed var(--line); color: var(--muted); }
.slot-empty:hover { border-color: var(--ink); color: var(--ink); }
.slot-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--tint); opacity: 0; transition: opacity .15s; }
.slot:hover .slot-x, .slot-x:focus-visible { opacity: 1; }
@media (hover: none) { .slot-x { opacity: 1; } }
.flag { position: absolute; left: 12px; bottom: -7px; padding: 1px 7px; border-radius: 3px; background: var(--yolk); color: #2B2100; font-size: .7rem; font-weight: 600; transform: rotate(-2deg); }
.shop { position: sticky; top: 88px; background: var(--surface); border-radius: 32px; padding: clamp(18px, 2vw, 28px); }
.shop .nutri { margin-bottom: 24px; }
.shop .empty { padding: 28px 12px; background: var(--bg); }
.shop .meta { margin-top: 12px; }

/* categories, articles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.cat-tile { background: var(--surface); border-radius: 36px; padding: clamp(20px, 2vw, 30px); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.cat-tile:hover { transform: translateY(-4px); }
.cat-art { display: flex; }
.cat-art span { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; border: 4px solid var(--surface); margin-right: -24px; }
.cat-tile h2 { font-size: 1.8rem; letter-spacing: -.03em; margin: 18px 0 4px; }
.cat-tile p { color: var(--muted); margin-bottom: 10px; }
.article-art { aspect-ratio: 21 / 8; overflow: hidden; border-radius: clamp(24px, 3vw, 44px); margin-block: clamp(24px, 3vw, 44px); }
.article-head .meta { display: block; margin-top: 14px; }
.prose { max-width: 68ch; font-size: 1.14rem; line-height: 1.65; }
.prose h2 { font-size: 1.65rem; letter-spacing: -.025em; line-height: 1.15; margin: 1.9em 0 .5em; }
.prose p + p { margin-top: 1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.article-recipe { margin-top: clamp(40px, 5vw, 72px); }
.article-recipe h2 { font-size: 1.6rem; letter-spacing: -.025em; margin-bottom: 18px; }

/* footer */
.footer { margin-top: clamp(72px, 9vw, 140px); padding-bottom: 28px; }
.signup {
  margin-inline: var(--gutter); padding: clamp(28px, 5vw, 72px); border-radius: clamp(28px, 3.4vw, 48px);
  background: var(--accent); color: #0E2019;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center;
}
.signup p { margin-top: 12px; max-width: 44ch; }
.signup form { display: flex; gap: 8px; padding: 6px; background: #fff; border-radius: 999px; }
.signup input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; color: #0E2019; outline: none; }
.signup form:focus-within { outline: 3px solid #0E2019; outline-offset: 3px; }
.signup .btn-primary { background: var(--ink); color: #fff; }
.footer-cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 28px; padding: clamp(40px, 5vw, 72px) var(--gutter) 28px; }
.footer-cols h3 { font-size: .95rem; margin-bottom: 10px; }
.footer-cols nav a { display: block; padding: 4px 0; color: var(--muted); }
.footer-cols nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-cols p { color: var(--muted); margin-top: 8px; }
.small-print { padding-inline: var(--gutter); color: var(--muted); font-size: .85rem; }

/* mobile tab bar */
.tabbar { display: none; }

/* dialogs and toasts */
dialog { border: 0; padding: 0; background: var(--surface); color: var(--ink); box-shadow: 0 40px 100px -30px var(--shadow); }
dialog::backdrop { background: rgba(14, 32, 25, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog[open] { animation: rise .3s cubic-bezier(.2, .8, .2, 1); }
.palette { width: min(680px, calc(100vw - 24px)); margin-top: 10vh; border-radius: 28px; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette-input input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 1.15rem; color: var(--ink); padding: 10px 0; }
.palette-out { max-height: 60vh; overflow: auto; padding: 8px; }
.palette-out h3 { font-size: .85rem; font-weight: 500; color: var(--muted); padding: 10px 10px 4px; }
.pad { padding: 18px; }
.sheet { width: min(560px, calc(100vw - 24px)); border-radius: 32px; padding: 22px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-head h2 { font-size: 1.5rem; letter-spacing: -.025em; }
.day-grid { display: grid; grid-template-columns: 48px repeat(3, 1fr); gap: 8px; align-items: center; margin-top: 16px; }
.day-cell { height: 54px; display: grid; place-items: center; border: 1.5px dashed var(--line); border-radius: 16px; background: transparent; color: var(--muted); }
.day-cell:hover { border-color: var(--accent); color: var(--ink); border-style: solid; }
.day-cell .slot-art { width: 40px; height: 40px; }
.pick-list { max-height: 62vh; overflow: auto; margin-top: 12px; }
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 24px); }
.toast { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 500; font-size: .95rem; animation: rise .3s cubic-bezier(.2, .8, .2, 1); }
.toast button { border: 0; background: none; color: var(--yolk); font-weight: 700; padding: 0; }
[data-theme="dark"] .toast button { color: var(--accent-ink); }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

/* responsive */
@media (max-width: 1080px) {
  .nav-links a { padding: 9px 10px; font-size: .92rem; }
  .search-label, kbd { display: none; }
  .search-btn { width: 42px; padding: 0; justify-content: center; border: 0; background: transparent; color: var(--ink); }
}
@media (max-width: 900px) {
  .hero, .band, .signup, .recipe-body, .gen, .planner, .post-lead { grid-template-columns: minmax(0, 1fr); }
  .recipe-side, .shop { position: static; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .tray { transform: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  body { padding-bottom: 92px; }
  .tabbar {
    position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 60;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 6px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid var(--line); border-radius: 26px;
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 20px; font-size: .72rem; font-weight: 500; }
  .tabbar .i { width: 22px; height: 22px; }
  .tabbar a[aria-current] { background: var(--ink); color: var(--bg); }
  .toasts { bottom: 104px; }
}
@media (max-width: 560px) {
  .tray { aspect-ratio: auto; grid-template-columns: 1fr 1fr; grid-template-rows: 240px auto; border-radius: 34px; }
  .comp { border-radius: 24px; }
  .comp-a { grid-row: auto; grid-column: 1 / 3; }
  .comp-b { min-height: 150px; }
  .comp-b .comp-label { display: none; }
  .hero-search .btn { padding-inline: 16px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .signup form { flex-direction: column; border-radius: 26px; background: transparent; padding: 0; }
  .signup input { background: #fff; height: 52px; border-radius: 999px; }
  .slot { padding: 6px; min-height: 64px; }
  .slot a { flex-direction: column; gap: 4px; width: 100%; }
  .slot-art { width: 40px; height: 40px; }
  .slot-title { font-size: .7rem; text-align: center; }
  .week-row { grid-template-columns: 36px repeat(3, minmax(0, 1fr)); gap: 6px; }
  .match { grid-template-columns: auto minmax(0, 1fr) auto; }
  .match-art { display: none; }
  .logo-word { font-size: 1.12rem; }
}

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

@media print {
  .nav, .footer, .tabbar, .actions, .back, .fav, .recipe .section, .stepper .icon-btn, [data-act="cook"], .toasts { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .recipe-body, .planner { grid-template-columns: 1fr; }
  .recipe-side, .shop { position: static; }
  .recipe-art { max-width: 320px; }
  .week { display: none; }
}

/* Laravel build: illustrations and icons are filled in by the script, forms post to the server */
[data-art] { display: block; width: 100%; height: 100%; }
[data-icon] { display: inline-grid; }
.form-error { margin-top: 10px; font-weight: 600; }
.sort-form { display: contents; }
@view-transition { navigation: auto; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: clamp(32px, 4vw, 56px); }
.pager [aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* forms: shared by the account pages and the admin */
.field { display: grid; gap: 6px; align-content: start; }
.field > span { font-weight: 600; font-size: .95rem; }
.field small { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink); font: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field-check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.field-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.field-error, .field small.field-error { color: var(--accent-ink); font-weight: 600; font-size: .9rem; }
.notice { background: var(--mint); border-radius: 16px; padding: 14px 18px; margin-bottom: 20px; font-weight: 500; }
.notice-error { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.notice ul { margin: 6px 0 0; padding-left: 1.2em; font-weight: 400; }
.btn-danger { background: transparent; border-color: var(--line); color: var(--accent-ink); }
.btn-danger:hover { border-color: var(--accent-ink); }

/* account pages */
.auth { display: grid; justify-items: center; }
.auth-card { width: min(100%, 460px); background: var(--surface); border-radius: 36px; padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; }
.auth-card.auth-wide { width: min(100%, 620px); }
.auth-card h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -.035em; line-height: 1.05; }
.auth-card h2 { font-size: 1.3rem; letter-spacing: -.02em; margin-top: 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.auth-card form { display: grid; gap: 16px; }
.auth-card form .btn { justify-self: start; }
.auth-card form .btn-primary { width: 100%; padding-block: 14px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .95rem; }
.auth-alt { text-align: center; }
.btn-google { width: 100%; padding-block: 13px; background: #fff; color: #1F1F1F; border-color: #747775; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.account-links { display: flex; flex-wrap: wrap; gap: 8px; }
.account-out { justify-items: start; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: .9rem; }
.btn-signin { padding: 9px 16px; font-size: .92rem; margin-left: 4px; }
@media (max-width: 560px) { .btn-signin { padding: 8px 12px; font-size: .85rem; } }

.nav-links a { white-space: nowrap; }

/* profile photos */
img.avatar { display: block; object-fit: cover; }
.avatar-lg { width: 76px; height: 76px; font-size: 1.9rem; flex: none; }
.account-top, .photo-row { display: flex; align-items: center; gap: 18px; }
.photo-row { align-items: flex-start; }
.photo-fields { display: grid; gap: 10px; flex: 1; min-width: 0; }
.field input[type="file"] { padding: 9px 10px; }
.person { display: inline-flex; align-items: center; gap: 10px; }

/* uploaded recipe and guide photos take the place of the illustration */
img.art-photo { object-fit: cover; background: var(--tint); }
.photo-credit { margin: 8px 4px 0; font-size: .78rem; opacity: .65; }
.photo-credit a { color: inherit; }
.article-art + .photo-credit { margin-top: calc(-1 * clamp(24px, 3vw, 44px) + 8px); margin-bottom: clamp(24px, 3vw, 44px); }

/* breadcrumbs */
.crumbs { margin-bottom: 18px; font-size: .92rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a { text-decoration: underline; text-underline-offset: 4px; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* analytics cookie notice */
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 150; width: min(420px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 18px;
  box-shadow: 0 30px 60px -30px var(--shadow); font-size: .95rem;
}
.consent[hidden] { display: none; }
.consent-actions { display: flex; gap: 8px; margin-top: 12px; }
.consent .btn { padding: 9px 16px; font-size: .92rem; }
@media (max-width: 900px) { .consent { bottom: 100px; } }
@media print { .crumbs, .consent { display: none !important; } }

/* recipe allergens and the cost and nutrition workings */
.allergens { margin-top: 10px; font-size: .95rem; }
.workings { margin-top: 14px; border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; background: var(--surface); }
.workings summary { cursor: pointer; font-weight: 600; }
.workings .table-wrap { overflow-x: auto; margin: 12px 0; }
.workings table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.workings th, .workings td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.workings td:first-child { white-space: normal; }
.sources { margin-top: 18px; }

/* the logo and copyright that appear only on a printed page */
.print-head, .print-foot { display: none; }
@media print {
  .print-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid #ccc; font-size: 1.3rem; font-weight: 700; }
  .print-head svg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-foot { display: block; margin-top: 28px; padding-top: 10px; border-top: 1px solid #ccc; font-size: .8rem; color: #444; }
}

/* author byline and the founder section on the About page */
.byline { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: .95rem; color: var(--muted); }
.byline-avatar, .founder-avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.byline-avatar { width: 36px; height: 36px; font-size: .85rem; }
.founder { display: flex; gap: 20px; align-items: flex-start; padding: 22px; margin: 8px 0 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.founder-avatar { width: 72px; height: 72px; font-size: 1.5rem; }
.founder h2 { margin: 0; }
.founder-role { margin: 2px 0 10px; color: var(--muted); font-size: .95rem; }
@media (max-width: 560px) { .founder { flex-direction: column; } }

/* narrow phones: the header must fit in one row. Saved recipes are in the bottom tab bar on phones. */
@media (max-width: 430px) {
  .nav .saved-link { display: none; }
  .nav .logo-word { font-size: 1rem; }
  .nav .logo svg { width: 30px; height: 30px; }
}

/* the founder photo */
.byline-avatar { overflow: hidden; background: var(--tint); }
.byline-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
img.founder-avatar { width: 96px; height: 96px; object-fit: cover; background: var(--tint); }

/* the printable fridge and freezer chart */
.storage-chart .table-wrap { overflow-x: auto; margin: 12px 0 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.storage-chart table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.storage-chart th, .storage-chart td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.storage-chart tbody tr:last-child > * { border-bottom: 0; }
.storage-chart thead th { font-size: .85rem; color: var(--muted); }
.storage-chart tbody th { font-weight: 600; }
.storage-chart td { white-space: nowrap; }
@media (max-width: 560px) { .storage-chart th, .storage-chart td { padding: 8px 10px; font-size: .88rem; } .storage-chart td { white-space: normal; } }
@media print {
  .storage-chart [data-act="print"] { display: none !important; }
  .storage-chart .table-wrap { border-radius: 0; break-inside: avoid; }
  .storage-chart th, .storage-chart td { padding: 4px 8px; font-size: 10pt; }
}

/* bot trap in the sign-up form: off screen, never shown to people */
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* pawsafeeats: placeholder art until photos are added */
.comp-a, .comp-b { background: var(--mint); }
.comp-a { display: flex; align-items: flex-end; padding: clamp(14px, 1.6vw, 24px); }
.comp-b { display: flex; align-items: flex-end; background: var(--yolk); }
.post-art { background: var(--mint); }
.post:nth-child(2) .post-art { background: var(--yolk); }
.post-art { display: flex; align-items: flex-end; padding: clamp(14px, 1.6vw, 22px); }
.post-topic { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }

/* a coloured tile with the food name stands in for a photo, until photos are added */
.food-art { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 12px; padding: clamp(14px, 1.6vw, 22px); background: hsl(var(--h) 62% 90%); color: var(--ink); }
[data-theme="dark"] .food-art { background: hsl(var(--h) 30% 19%); }
.food-art .food-name { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
.food-art .tape { position: static; transform: rotate(-3deg); }
.comp .food-art { position: absolute; inset: 0; border-radius: inherit; }
.fav-form { display: contents; }
.answer-text { margin-top: 8px; color: var(--muted); }

/* analytics cookie notice (only rendered when an Analytics ID is set) */
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 150; width: min(420px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 18px;
  box-shadow: 0 30px 60px -30px var(--shadow); font-size: .95rem;
}
.consent[hidden] { display: none; }
.consent-actions { display: flex; gap: 8px; margin-top: 12px; }
.consent .btn { padding: 9px 16px; font-size: .92rem; }
@media (max-width: 900px) { .consent { bottom: 100px; } }
@media print { .consent { display: none !important; } }

.food-art { position: relative; overflow: hidden; }
.food-art .food-name, .food-art .tape { position: relative; z-index: 1; }
.food-img { position: absolute; right: 6%; bottom: 8%; width: 44%; max-height: 80%; height: auto; }
