/* Layout: enamelware pantry — paper-white pages, navy ink, jar-label cards with stamped dates.
   One accent: enamel-rim blue. Saffron is used only for the "made on" stamp detail. */
:root {
  --paper: #f8f2e7;
  --card: #fffaf2;
  --ink: #1c2422;
  --ink-soft: #5a5f59;
  --rim: #0b5a4e;
  --rim-ink: #ffffff;
  --line: #e4d8c3;
  --saffron: #b97a14;
  --wash: #efe5d2;
  --teal: #053d36;
  --teal-2: #0a5148;
  --gold: #efb441;
  --gold-ink: #2a1a04;
  --cream: #fff4dc;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --stamp: "Courier Prime", "Courier New", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1a18; --card: #142624; --ink: #f3ede2; --ink-soft: #b9b5aa;
    --rim: #7fd3c3; --rim-ink: #06221e; --line: #27403c; --saffron: #f0b44a; --wash: #183230;
    --teal: #042f2a; --teal-2: #0a463f; --gold: #f2bb4d; --gold-ink: #2a1a04; --cream: #fff4dc;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1a18; --card: #142624; --ink: #f3ede2; --ink-soft: #b9b5aa;
  --rim: #7fd3c3; --rim-ink: #06221e; --line: #27403c; --saffron: #f0b44a; --wash: #183230;
  --teal: #042f2a; --teal-2: #0a463f; --gold: #f2bb4d; --gold-ink: #2a1a04; --cream: #fff4dc;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rim); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--rim); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }

.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 720px; }
.eyebrow {
  font: 700 0.78rem/1.2 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.brand { font: 700 1.35rem/1 var(--display); color: var(--ink); text-decoration: none; }
.brand span { font: 400 0.95rem var(--stamp); color: var(--ink-soft); margin-left: 8px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav a:hover { color: var(--rim); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  background: var(--rim); color: var(--rim-ink); border: 0; border-radius: 999px;
  padding: 14px 26px; font: 700 1.02rem/1 var(--body); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

/* hero */
.hero { padding-block: clamp(40px, 7vw, 84px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-copy { display: grid; gap: 22px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.photo { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--wash); }
.band-photo { margin-top: clamp(36px, 6vw, 72px); }
.band-photo img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }

/* jar label — the signature element */
.label {
  background: var(--card); border: 2px solid var(--ink); border-radius: 14px;
  padding: 26px 26px 22px; position: relative; display: grid; gap: 12px;
  box-shadow: 6px 6px 0 var(--line);
}
.label::before {
  content: ""; position: absolute; inset: 7px; border: 1px dashed var(--line); border-radius: 9px; pointer-events: none;
}
.label .no { font: 400 0.9rem var(--stamp); color: var(--ink-soft); }
.label .dates { display: flex; gap: 18px; flex-wrap: wrap; font: 400 0.88rem var(--stamp); color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 12px; }
.label .dates b { color: var(--saffron); font-weight: 700; }

section.block { padding-block: clamp(48px, 7vw, 88px); }
section.block + section.block { border-top: 1px solid var(--line); }
.head { display: grid; gap: 12px; margin-bottom: 34px; max-width: 62ch; }

/* kit contents list */
.contents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; list-style: none; margin: 0; padding: 0; }
.contents li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.contents .k { font: 700 0.9rem var(--stamp); color: var(--rim); padding-top: 3px; }
.contents h3 { font-size: 1.12rem; margin-bottom: 4px; }
.contents p { color: var(--ink-soft); font-size: 0.98rem; }

/* name cloud of bonus recipes */
.names { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; padding: 0; margin: 0; }
.names li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 0.95rem; }
.names li i { color: var(--ink-soft); font-style: normal; }

/* sign-up */
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.signup > * { min-width: 0; }
.form-card { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 28px; display: grid; gap: 14px; }
.form-card label { font-weight: 700; font-size: 0.95rem; }
.form-card input[type=email], .form-card input[type=text] {
  width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink);
}
.fine { font-size: 0.85rem; color: var(--ink-soft); }
.preview-note { font: 400 0.85rem var(--stamp); color: var(--saffron); }

.ml-wrap { min-height: 320px; }

/* faq */
.faq { display: grid; gap: 0; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.faq details p { margin-top: 10px; color: var(--ink-soft); }

/* download rows */
.downloads { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.downloads li {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px;
}
.downloads li > div { min-width: 0; display: grid; gap: 4px; }
.downloads .meta { font: 400 0.85rem var(--stamp); color: var(--ink-soft); }
.soon { font: 700 0.8rem var(--stamp); color: var(--saffron); border: 1.5px dashed var(--saffron); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

/* cards for books / kits */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.cards > * { min-width: 0; }
.book { display: grid; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.book .tag { font: 700 0.78rem var(--stamp); color: var(--ink-soft); }

.cards.books { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.books .featured { grid-column: 1 / -1; border: 2px solid var(--ink); }
.cards.books .featured h3 { font-size: 1.6rem; }
.photo.tall img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 900px) { .cards.books { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cards.books { grid-template-columns: 1fr; } }

/* prose pages */
.prose { display: grid; gap: 16px; max-width: 68ch; }
.prose h2 { font-size: 1.4rem; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 36px; color: var(--ink-soft); font-size: 0.92rem; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-soft); }

@media (max-width: 760px) {
  .hero-grid, .signup { grid-template-columns: 1fr; }
  .contents { grid-template-columns: 1fr; }
  .downloads li { grid-template-columns: 1fr; }
  .band-photo img { aspect-ratio: 2 / 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: filter .15s ease; }
}

/* teal hero band, matched to the book cover */
.band { background: radial-gradient(ellipse at 30% 20%, var(--teal-2), var(--teal) 70%); color: var(--cream); }
.band .wrap { padding-block: clamp(40px, 6vw, 76px); }
.band .eyebrow { color: var(--gold); }
.band h1 { color: #fff; }
.band h1 em { font-style: normal; color: var(--gold); display: block; }
.band .lede { color: #f1e6cf; }
.band .btn { background: var(--gold); color: var(--gold-ink); }
.band .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.75); }
.band-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.band-grid > * { min-width: 0; }
.cover-img { width: 100%; max-width: 380px; justify-self: center; border-radius: 4px; box-shadow: 0 2px 0 rgba(255,255,255,.08), 0 24px 50px rgba(0,0,0,.55); transform: rotate(1.5deg); }
.gold-rule { height: 3px; width: 88px; background: var(--gold); border-radius: 2px; }
.btn { background: var(--rim); }
.band + .block { border-top: 0; }
@media (max-width: 760px) { .band-grid { grid-template-columns: 1fr; } .cover-img { max-width: 260px; } }

/* cover on a cream mat with a gold edge so it stands off the teal band */
.band .cover-img {
  background: var(--cream); padding: 14px; border-radius: 6px;
  box-shadow: 0 0 0 2px var(--gold), 0 0 90px 20px rgba(239,180,65,.28), 0 28px 60px rgba(0,0,0,.6);
}

/* meet the author */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about > * { min-width: 0; }
.author-img { width: 100%; max-width: 380px; justify-self: center; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 8px solid var(--card); box-shadow: 0 0 0 2px var(--gold), 0 20px 44px rgba(0,0,0,.18); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .author-img { max-width: 260px; } }
