/* Family Meal Board brochure site.
   Same enamelware identity as the app: white enamel, a navy rim, and an accent
   colour that follows the season (set on <html data-season> by a one-line script). */

@font-face { font-family: "Zilla Slab"; font-weight: 600; font-display: swap;
  src: url("/site/fonts/zilla-slab-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-weight: 700; font-display: swap;
  src: url("/site/fonts/zilla-slab-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap;
  src: url("/site/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap;
  src: url("/site/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

:root {
  --enamel: #F6F7F4;
  --surface: #FFFFFF;
  --rim: #1F2B45;
  --rim-deep: #141C2E;
  --graphite: #5B6474;
  --hairline: #D8DCE2;

  --fall: #A65A16;    --fall-soft: #F5E6D5;
  --winter: #2D7383;  --winter-soft: #DCECEF;
  --spring: #4A8236;  --spring-soft: #E1EEDA;
  --summer: #C8402F;  --summer-soft: #F8E1DC;

  --accent: var(--fall);
  --accent-soft: var(--fall-soft);
  --strike: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M1 6.2 C 18 4.4, 34 7, 52 5.2 S 82 4.6, 99 4' stroke='%23A65A16' stroke-width='2.4' fill='none' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");

  --slab: "Zilla Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 12px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 40rem;
}

html[data-season="winter"] { --accent: var(--winter); --accent-soft: var(--winter-soft);
  --strike: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M1 6.2 C 18 4.4, 34 7, 52 5.2 S 82 4.6, 99 4' stroke='%232D7383' stroke-width='2.4' fill='none' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
html[data-season="spring"] { --accent: var(--spring); --accent-soft: var(--spring-soft);
  --strike: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M1 6.2 C 18 4.4, 34 7, 52 5.2 S 82 4.6, 99 4' stroke='%234A8236' stroke-width='2.4' fill='none' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
html[data-season="summer"] { --accent: var(--summer); --accent-soft: var(--summer-soft);
  --strike: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M1 6.2 C 18 4.4, 34 7, 52 5.2 S 82 4.6, 99 4' stroke='%23C8402F' stroke-width='2.4' fill='none' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--enamel); color: var(--rim);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--rim); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--slab); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.4vw, 3.5rem); letter-spacing: -0.012em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.3rem); letter-spacing: -0.006em; }
h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
p + p { margin-top: 1em; }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--rim); max-width: 36em; }
.quiet { color: var(--graphite); }
.small { font-size: 1rem; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--rim); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------- header */
.site-head { border-bottom: 1px solid var(--hairline); background: var(--enamel); }
.site-head .wrap { display: flex; align-items: center; gap: 1rem 1.5rem; min-height: 76px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--rim);
  font-family: var(--slab); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; margin-right: auto; }
.brand:hover { color: var(--rim); }
.brand svg { width: 38px; height: 38px; flex: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 1rem; }
.site-nav a { text-decoration: none; color: var(--graphite); padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--rim); text-decoration: underline; }
.head-actions { display: flex; gap: 10px; align-items: center; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius);
  border: 2px solid var(--rim); background: var(--surface); color: var(--rim);
  font: 700 1.05rem/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
}
.btn:hover { color: var(--rim); background: var(--accent-soft); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--rim); border-color: var(--rim); color: #fff; }
.btn.small { min-height: 42px; padding: 0 14px; font-size: 1rem; }
.btn.on-dark { border-color: #fff; background: transparent; color: #fff; }
.btn.on-dark:hover { background: #fff; color: var(--rim); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }
.cta-note { margin-top: 0.9rem; font-size: 1rem; color: var(--graphite); max-width: 34em; }

/* ------------------------------------------------------------------ hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); }
.hero .wrap { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; }
.hero h1 { max-width: 13em; }
.hero .lead { margin-top: 1.25rem; }

/* The enamel menu board: the one loud thing on the page. */
.board {
  position: relative; background: var(--surface); border: 7px solid var(--rim); border-radius: 26px;
  padding: 26px 26px 22px; box-shadow: 0 1px 0 var(--rim-deep), 0 18px 40px -24px rgba(31, 43, 69, 0.45);
}
.board::before { /* inner hairline, like the bead on an enamel tray */
  content: ""; position: absolute; inset: 7px; border: 1px solid var(--hairline); border-radius: 17px; pointer-events: none;
}
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--rim); padding-bottom: 10px; }
.board-head h2 { font-size: 1.45rem; }
.season-tag { font-size: 0.95rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 12px; white-space: nowrap; }
.board-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 16px; }
.board h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; color: var(--graphite); margin-bottom: 6px; }
.dinners, .glist { list-style: none; margin: 0; padding: 0; }
.dinners li { font-family: var(--slab); font-weight: 600; font-size: 1.1rem; line-height: 1.3; padding: 8px 0; border-bottom: 1px dashed var(--hairline); }
.dinners li:last-child { border-bottom: 0; }
.dinners .note { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.85rem; color: var(--graphite); }
.glist li { display: flex; justify-content: space-between; gap: 10px; font-size: 1rem; padding: 6px 0; border-bottom: 1px solid var(--hairline); }
.glist li:last-child { border-bottom: 0; }
.glist .amt { color: var(--graphite); white-space: nowrap; }
.glist .aisle { display: block; border: 0; padding: 10px 0 2px; font-size: 0.85rem; font-weight: 700; color: var(--graphite); }
.done .t { background-image: var(--strike); background-repeat: no-repeat; background-size: 100% 0.55em; background-position: 0 58%; color: var(--graphite); }
.board-foot { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--hairline); font-size: 0.9rem; color: var(--graphite); display: flex; align-items: center; gap: 8px; }
.sync-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }

/* --------------------------------------------------------------- sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--hairline); }
.section-intro { max-width: var(--measure); }
.section-intro p { margin-top: 1rem; }

/* Big-family feature rows: text on one side, a small piece of the app on the other. */
.rows { margin-top: clamp(2rem, 5vw, 3.5rem); display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.row:nth-child(even) .row-text { order: 2; }
.row-text h3 { font-size: clamp(1.4rem, 2.4vw, 1.7rem); font-weight: 700; }
.row-text p { margin-top: 0.75rem; max-width: 30em; }
.row-text a.more { display: inline-block; margin-top: 0.9rem; font-weight: 700; }

.snip { background: var(--surface); border: 3px solid var(--rim); border-radius: 18px; padding: 18px 20px; font-size: 1rem; }
.snip-title { font-weight: 700; color: var(--graphite); font-size: 0.95rem; margin-bottom: 8px; }
.math { display: grid; grid-template-columns: 1fr auto; row-gap: 6px; }
.math > :nth-child(even) { padding-left: 16px; text-align: right; }
.math .src { color: var(--graphite); }
.math .total { font-weight: 700; border-top: 2px solid var(--rim); padding-top: 8px; margin-top: 4px; }
.picks { list-style: none; margin: 0; padding: 0; }
.picks li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.picks li:last-child { border-bottom: 0; }
.picks .why { grid-column: 1 / -1; font-size: 0.9rem; color: var(--graphite); }
.picks .yes { color: var(--accent); font-weight: 700; }
.picks .no { color: var(--graphite); }
.sources { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.sources li { border: 2px solid var(--hairline); border-radius: 999px; padding: 4px 14px; background: var(--enamel); }
.phones { display: flex; gap: 8px; align-items: flex-end; }
.phone { flex: 1 1 0; min-width: 0; max-width: 58px; aspect-ratio: 9 / 16; border: 3px solid var(--rim); border-radius: 12px; background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; }
.phone.big { max-width: 68px; }
.kroger-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.kroger-item .usual { grid-column: 1 / -1; font-size: 0.9rem; color: var(--accent); font-weight: 700; }

/* How it works: a real sequence, so it gets numbers. */
.steps { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--rim); padding-top: 14px; }
.steps li::before { content: counter(step); display: block; font-family: var(--slab); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--accent); margin-bottom: 10px; }
.steps h3 { font-size: 1.25rem; }
.steps p { margin-top: 0.5rem; font-size: 1rem; }

.price { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.price-mark { font-family: var(--slab); font-weight: 700; font-size: clamp(3.5rem, 9vw, 6rem); line-height: 1; color: var(--accent); }
.price p { max-width: 34em; }

.qa { margin-top: 2rem; max-width: 46rem; }
.qa details { border-bottom: 1px solid var(--hairline); }
.qa details:first-child { border-top: 1px solid var(--hairline); }
.qa summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 700; list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-family: var(--slab); font-size: 1.6rem; color: var(--accent); }
.qa details[open] summary::after { content: "\2212"; }
.qa details > div { padding: 0 0 18px; max-width: 40em; }
.qa details > div p + p { margin-top: 0.75em; }

/* Invite band, at the bottom of every page */
.band { background: var(--rim); color: #fff; }
.band .wrap { padding-block: clamp(2.75rem, 6vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 2rem; align-items: center; }
.band h2 { color: #fff; }
.band p { margin-top: 0.75rem; color: #E4E7EC; max-width: 34em; }
.band .cta-row { margin-top: 0; }
.band .btn.primary:hover { background: #fff; border-color: #fff; color: var(--rim); }

/* ---------------------------------------------------------------- articles */
.page-head { padding-block: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.crumbs { font-size: 0.95rem; color: var(--graphite); margin-bottom: 1rem; }
.crumbs a { color: var(--graphite); }
.page-head .lead { margin-top: 1rem; }
.byline { margin-top: 1rem; font-size: 0.95rem; color: var(--graphite); }
.prose { max-width: var(--measure); padding-bottom: clamp(3rem, 6vw, 5rem); }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 1.85rem); margin: 2.4em 0 0.6em; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 1em; }
.prose p + p { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.prose th { border-bottom: 2px solid var(--rim); }
.prose .callout { background: var(--surface); border: 3px solid var(--rim); border-radius: 18px; padding: 18px 22px; margin: 1.5em 0; }
.prose .callout p:last-child { margin-bottom: 0; }
.toc { background: var(--surface); border-left: 4px solid var(--accent); padding: 14px 20px; margin: 0 0 2em; font-size: 1rem; }
.toc ol { margin: 0.4em 0 0; padding-left: 1.2em; }
.week { list-style: none; padding: 0 !important; }
.week li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hairline); margin: 0 !important; }
.week b { font-family: var(--slab); }

/* ------------------------------------------------------------------ footer */
.site-foot { background: var(--rim-deep); color: #C9CED8; font-size: 1rem; }
.site-foot .wrap { padding-block: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; }
.site-foot a { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-nav { order: 3; width: 100%; gap: 2px 16px; font-size: 0.98rem; }
  .row { grid-template-columns: 1fr; }
  .row:nth-child(even) .row-text { order: 0; }
  .band .wrap { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .board { padding: 20px 16px 16px; border-width: 6px; }
  .board-cols { grid-template-columns: 1fr; gap: 14px; }
  .steps { grid-template-columns: 1fr; }
  .head-actions .btn.primary { display: none; }
  .week li { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }
@media print { .site-head, .band, .site-foot { display: none; } }
