/* Recipe Catcher Kitchen: mobile-first, no web fonts, no framework. */
:root {
  --accent: #a9452f;        /* brand terracotta, 5.6:1 on cream */
  --accent-strong: #8a3825;
  --accent-soft: #f4e3dc;
  --cream: #faf6f0;
  --paper: #fffdf9;
  --tan: #e7ddd0;
  --line: #ddd2c4;
  --ink: #2a2b2e;
  --muted: #5d5751;
  --ok: #2f6b45;
  --warn-bg: #fff4d6;
  --warn-line: #e0b84a;
  --radius: 12px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --measure: 68ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3rem); margin: .4em 0 .3em; }
h2 { font-size: clamp(1.4rem, 3.6vw, 1.85rem); margin: 1.8em 0 .5em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
p, ul, ol { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; background: var(--tan); padding: .1em .35em; border-radius: 4px; }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.prose { max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.fine { font-size: .9rem; color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font: 700 1.15rem/1 var(--serif); }
.brand img { border-radius: 8px; }
.brand em { font-style: normal; color: var(--accent); }
.nav-toggle { font: 600 .95rem var(--sans); background: none; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; color: var(--ink); cursor: pointer; }
.site-nav { display: none; width: 100%; }
.nav-open .site-nav { display: block; }
.site-nav > ul { list-style: none; margin: 0; padding: .3rem 0; display: grid; gap: .1rem; }
.site-nav .nav-submenu { list-style: none; }
.site-nav a { display: block; padding: .55rem .25rem; text-decoration: none; color: var(--ink); font-weight: 600; }
.site-nav a[aria-current="page"],
.site-nav a[aria-current="true"] { color: var(--accent); }
.site-nav .has-menu { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.submenu-toggle {
  font: inherit; background: none; border: 0; color: var(--ink); cursor: pointer;
  width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.submenu-toggle:hover, .submenu-toggle:focus-visible, .has-menu.is-open > .submenu-toggle { color: var(--accent); }
.submenu-toggle::after {
  content: ""; width: .4rem; height: .4rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin-top: -.2rem; transition: transform .15s ease;
}
.has-menu.is-open > .submenu-toggle::after { transform: rotate(225deg); margin-top: .15rem; }
.nav-submenu {
  display: none; list-style: none; margin: 0;
  padding: .15rem 0 .35rem .85rem; grid-column: 1 / -1;
}
.has-menu.is-open > .nav-submenu { display: block; }
.nav-submenu a { padding: .5rem .25rem; font-weight: 600; }
@media (min-width: 52rem) {
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav > ul { display: flex; gap: 1.25rem; padding: 0; align-items: center; }
  .site-nav > ul > li > a { padding: .3rem 0; }
  .site-nav .has-menu { display: flex; position: relative; align-items: center; gap: .1rem; }
  .submenu-toggle { width: 1.55rem; height: 1.55rem; }
  .has-menu.is-open > .submenu-toggle,
  .has-menu:hover > .submenu-toggle { color: var(--accent); }
  .has-menu.is-open > .submenu-toggle::after { transform: rotate(225deg); margin-top: .15rem; }
  .nav-submenu {
    position: absolute; top: calc(100% + .4rem); left: 0; min-width: 18rem;
    padding: .4rem 0; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: 0 10px 28px rgba(42, 43, 46, 0.1);
    z-index: 30; grid-column: auto;
  }
  .nav-submenu a { padding: .5rem 1rem; }
  .nav-submenu a:hover { background: var(--accent-soft); color: var(--accent-strong); }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 1.2rem 0 0; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--line); }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; border: 2px solid var(--accent); border-radius: 999px; padding: .6rem 1.15rem; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-strong); }
.btn-small { padding: .35rem .8rem; font-size: .9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Extension page hero (kept narrow). The home page uses .home-hero instead. */
.hero { padding: 2.5rem 0 1rem; }
.hero .kicker { font: 600 .85rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 0; }
.hero h1 { max-width: 18ch; }

/* Home hero: full-width burnt-orange banner using the brand terracotta (#a9452f).
   Cream #faf6f0 on #a9452f is 5.45:1; paper #fffdf9 is 5.77:1 (both AA).
   Primary cream button with #8a3825 text is 7.30:1. Card ink on cream is 13.15:1. */
.home-hero {
  background: var(--accent);
  color: var(--cream);
  padding: 2.25rem 0 2.4rem;
}
.home-hero-inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
.home-hero .kicker {
  font: 600 .85rem var(--sans);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cream);
  margin: 0;
}
.home-hero h1 {
  max-width: 26ch;
  color: var(--paper);
  margin: .35em 0 .35em;
}
.home-hero .lede {
  color: var(--cream);
  max-width: 60ch;
  margin-bottom: 1.3rem;
}
.home-hero .btn {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--accent-strong);
}
.home-hero .btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--accent-strong);
}
.home-hero .btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.home-hero .btn-ghost:hover {
  background: rgba(250, 246, 240, 0.16);
  border-color: #fff;
  color: #fff;
}
.home-hero :focus-visible { outline-color: var(--cream); }
.home-hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 0.7rem;
  box-shadow: 0 16px 36px rgba(42, 27, 22, 0.18);
  color: var(--ink);
}
.home-hero-card-kicker {
  font: 600 .75rem var(--sans);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent-strong);
  margin: 0 0 .25rem;
}
.home-hero-card-title {
  font: 700 1.15rem/1.25 var(--serif);
  color: var(--ink);
  margin: 0 0 .7rem;
}
.home-hero-card ul { list-style: none; margin: 0; padding: 0; }
.home-hero-card li { border-top: 1px solid var(--line); }
.home-hero-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.home-hero-card a::after {
  content: "";
  width: .4rem;
  height: .4rem;
  border-right: 2px solid var(--accent);
  border-top: 2px solid var(--accent);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.home-hero-card a:hover { color: var(--accent-strong); }
.home-season { margin-top: 2rem; border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
@media (min-width: 60rem) {
  .home-hero { padding: 3.1rem 0 3.25rem; }
  .home-hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 20.5rem); gap: 3.25rem; }
}

/* Cards */
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 40rem) and (max-width: 59.99rem) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.2rem; position: relative; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card:has(a.stretch:hover) { border-color: var(--accent); }
.card .tag { display: inline-block; font: 600 .75rem var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: .3rem; }
.soon { color: var(--muted); }
.soon-list li { color: var(--muted); }

/* Panels / callouts */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin: 1.5rem 0; }
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: .9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.3rem 0; }
.callout p:last-child { margin: 0; }
.draft-banner { background: var(--warn-bg); border: 2px dashed var(--warn-line); border-radius: var(--radius); padding: .9rem 1.1rem; margin: 1rem 0; }
.needs { background: var(--warn-bg); border: 1px dashed var(--warn-line); border-radius: 8px; padding: .7rem .9rem; margin: 1rem 0; font-size: .95rem; }
.needs-tag { font-family: var(--mono); font-size: .85em; }
.disclosure { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: .7rem .9rem; font-size: .92rem; margin: 1rem 0 1.5rem; }
.disclosure p { margin: 0; }

/* Extension CTA */
.ext-cta { display: grid; grid-template-columns: 1fr; gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; margin: 2.5rem 0; }
.ext-cta img { border-radius: 14px; }
.ext-cta h2 { margin: 0 0 .4rem; font-size: 1.35rem; }
@media (min-width: 40rem) { .ext-cta { grid-template-columns: auto 1fr; align-items: start; } }

/* Signup */
.signup { background: var(--ink); color: #f4efe8; border-radius: var(--radius); padding: 1.5rem 1.3rem; margin: 2.5rem 0; }
.signup h2 { color: #fff; margin-top: 0; }
.signup .fine { color: #cfc6bb; margin: .6rem 0 0; }
.signup-form { display: flex; flex-wrap: wrap; gap: .5rem; }
.signup-form input { flex: 1 1 14rem; }
.signup .btn { background: #e9a48f; border-color: #e9a48f; color: var(--ink); }
.signup .btn:hover { background: #fff; border-color: #fff; }

/* Forms */
label { font-weight: 600; display: block; margin-bottom: .3rem; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid #b9ad9f; border-radius: 8px; padding: .55rem .7rem; width: 100%; min-height: 2.75rem; }
textarea { min-height: 11rem; line-height: 1.5; resize: vertical; font-family: var(--mono); font-size: .95rem; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; align-items: end; }
@media (min-width: 40rem) { .field-row-3 { grid-template-columns: repeat(3, 1fr); } .field-row-4 { grid-template-columns: repeat(4, 1fr); } }
.hint { font-weight: 400; font-size: .88rem; color: var(--muted); display: block; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0 1rem; padding: 0; list-style: none; }
.chip { font: 600 .9rem var(--sans); border: 1px solid #b9ad9f; background: #fff; color: var(--ink); border-radius: 999px; padding: .4rem .8rem; cursor: pointer; min-height: 2.5rem; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
legend { font-weight: 600; margin-bottom: .3rem; padding: 0; }

/* Tool layout */
.tool { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 60rem) { .tool { grid-template-columns: 1fr 1fr; align-items: start; } }
.tool-out { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; min-height: 6rem; }
.tool-out h2 { margin-top: 0; font-size: 1.25rem; }
.result-big { font: 700 clamp(1.8rem, 6vw, 2.4rem)/1.15 var(--serif); color: var(--accent); margin: .2rem 0 .4rem; }
.scaled-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.scaled-list li { padding: .45rem 0; border-bottom: 1px solid var(--tan); }
.scaled-list li:last-child { border-bottom: 0; }
.scaled-list .q { font-weight: 700; }
.scaled-list .note { display: block; font-size: .85rem; color: var(--muted); }
.scaled-list .unparsed { color: var(--muted); }
.adj-list { list-style: none; padding: 0; margin: 0; }
.adj-list li { padding: .7rem 0; border-bottom: 1px solid var(--tan); }
.adj-list li:last-child { border-bottom: 0; }
.adj-list strong { display: block; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--tan); vertical-align: top; }
thead th { background: var(--tan); font-weight: 700; position: sticky; top: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }

/* Substitutions */
.sub-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.sub-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.sub-item h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.sub-item .amt { font: 600 .85rem var(--sans); color: var(--muted); }
.sub-item ul { margin: .3rem 0 .4rem; padding-left: 1.2rem; }
.sub-item .src { font-size: .82rem; color: var(--muted); margin: 0; }

/* Affiliate slots */
.aff-slot { border: 2px dashed var(--warn-line); background: var(--paper); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1rem 0; }
.aff-slot .slot-label { font: 700 .78rem var(--mono); color: #8a6a12; text-transform: uppercase; letter-spacing: .04em; }
.aff-slot h3 { margin: .3rem 0; }

/* Sources */
.sources { font-size: .92rem; }
.sources li { margin-bottom: .35rem; }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 0 1rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font: 700 1.15rem var(--serif); margin-bottom: .4rem; }
.footer-brand em { font-style: normal; color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--ink); }
.footer-base { border-top: 1px solid var(--tan); margin-top: 1.4rem; padding-top: .8rem; color: var(--muted); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header, .site-footer, .ext-cta, .signup, .nav-toggle { display: none; } body { background: #fff; } }

/* Pinterest-ready figures and printables */
.pin-figure{margin:2rem 0;display:flex;flex-direction:column;align-items:flex-start;gap:.75rem}
.pin-figure img{max-width:min(100%,360px);height:auto;border:1px solid #e7ddd0;border-radius:12px;box-shadow:0 2px 10px rgba(0,0,0,.06)}
.download-row{display:flex;flex-wrap:wrap;gap:.75rem;margin:1rem 0 1.5rem}
.printable-preview{max-width:min(100%,420px);height:auto;border:1px solid #e7ddd0;border-radius:8px}
.card-grid-printables{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
[hidden]{display:none !important}
