/* Sourdough on Spires: shared styles.
   Layout: two pages, light only. Type-led until photos arrive; the "this weekend" bake card is the
   one featured object. Dutch-oven blue for actions, crust brown for prices. */
:root {
  color-scheme: light;
  --paper: #fbfaf8;
  --surface: #ffffff;
  --band: #f1efeb;
  --ink: #2a2622;
  --muted: #6a625a;
  --line: #e4e0da;
  --accent: #2f4a6d;      /* enamel Dutch-oven blue */
  --accent-ink: #ffffff;
  --crust: #8a5a2b;
  --ok: #2d6a4f;
  --warn: #9a4b16;

  --display: "Alegreya", "Iowan Old Style", Georgia, serif;
  --body: "Alegreya Sans", "Gill Sans", "Segoe UI", system-ui, sans-serif;

  --s-1: 0.875rem;
  --s0: 1.0625rem;
  --s1: 1.3125rem;
  --s2: 1.75rem;
  --s3: clamp(2.25rem, 5vw, 3.25rem);
  --s4: clamp(2.6rem, 6.5vw, 4.5rem);
  --wrap: 64rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--s0)/1.6 var(--body); }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* header */
header.top { border-bottom: 1px solid var(--line); background: var(--surface); padding-block: 14px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.brand { font: 700 1.5rem/1 var(--display); text-decoration: none; white-space: nowrap; }
.brand i { font-weight: 400; color: var(--muted); }
header nav { display: flex; align-items: center; gap: 18px; }
header nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
header nav a:hover { color: var(--ink); }
header nav a[aria-current="page"] { color: var(--ink); }
header nav a.cta { color: var(--accent-ink); background: var(--accent); padding: 8px 16px; border-radius: 999px; font-weight: 600; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px;
  font: 600 var(--s0)/1 var(--body); text-decoration: none; cursor: pointer;
  border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink);
}
.btn.ghost { background: transparent; color: var(--accent); }
.btn:disabled { opacity: 0.6; cursor: default; }

/* hero */
.hero { padding-block: 56px 48px; }
.hero .wrap { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 52rem) { .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; } }
.hero-text { display: grid; gap: 20px; }
.hero h1 { font-size: var(--s4); max-width: 17ch; }
.lede { font-size: var(--s1); color: var(--muted); max-width: 40ch; }

/* this weekend's bake: the one featured object */
.bake-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: 12px;
  padding: 24px;
  display: grid;
  gap: 14px;
}
.bake-card h2 { font-size: var(--s2); }
.bake-card dl { margin: 0; display: grid; gap: 10px; }
.bake-card dl div { display: grid; gap: 2px; }
.bake-card dt { font-size: var(--s-1); color: var(--muted); }
.bake-card dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.bake-card .btn { justify-self: start; }

/* sections */
section.block { padding-block: 52px; border-top: 1px solid var(--line); }
section.band { background: var(--band); }
.section-head { display: grid; gap: 8px; margin-bottom: 24px; max-width: 40rem; }
.section-head h2 { font-size: var(--s3); }
.section-head p { color: var(--muted); }

/* menu */
.menu { list-style: none; margin: 0; padding: 0; max-width: 44rem; }
.menu li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.menu li:first-child { border-top: 1px solid var(--line); }
.menu h3 { font-size: 1.5rem; }
.menu p { color: var(--muted); }
.menu .price { font: 700 1.375rem/1 var(--display); color: var(--crust); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* notes in her voice */
.notes { margin: 0; padding-left: 1.25em; display: grid; gap: 10px; max-width: 44rem; }
.notes li::marker { color: var(--crust); }
.signoff { font: italic 400 var(--s1)/1.4 var(--display); margin-top: 18px; max-width: 44rem; }

/* order page */
.page-head { padding-block: 44px 8px; }
.page-head .wrap { display: grid; gap: 10px; }
.page-head h1 { font-size: var(--s3); }
.order { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); padding-block: 28px 56px; }
@media (min-width: 56rem) { .order { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } }
.order aside { display: grid; gap: 14px; color: var(--muted); }
.order aside strong { color: var(--ink); }
form {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(18px, 4vw, 30px); display: grid; gap: 20px;
}
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
legend { font: 700 1.375rem/1.2 var(--display); padding: 0; margin-bottom: 6px; }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.field { display: grid; gap: 6px; }
.field label, .item-row label { font-weight: 600; }
.hint { font-size: var(--s-1); color: var(--muted); font-weight: 400; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 13px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 6rem; resize: vertical; }
.choices { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.choice { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 8px; padding: 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: #eef2f7; }
.choice input { width: auto; accent-color: var(--accent); }
.item-row { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; gap: 12px; align-items: center; padding-block: 10px; border-bottom: 1px solid var(--line); }
.item-row .price { color: var(--crust); font-weight: 600; }
.item-row.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 13rem); }
.total { font: 700 var(--s1)/1.3 var(--display); }
.form-foot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.form-foot small { color: var(--muted); }
.hidden-field { position: absolute; left: -9999px; }
.status { border-radius: 8px; padding: 12px 14px; font-weight: 600; border: 1.5px solid var(--c); }
.status.good { --c: var(--ok); }
.status.bad { --c: var(--warn); }

/* footer */
footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 32px 44px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* about */
.about-text { display: grid; gap: 14px; max-width: 40rem; font-size: var(--s1); }
.about-text p { color: var(--ink); }
.draft-note {
  justify-self: start;
  font-size: var(--s-1) !important;
  color: var(--warn) !important;
  border: 1px dashed var(--warn);
  border-radius: 6px;
  padding: 6px 10px;
}

/* hero right column: weekend card, then any special bakes */
.hero-side { display: grid; gap: 16px; }
.specials { display: grid; gap: 16px; }
.bake-card.special { border-top-color: var(--crust); }
.bake-card.special p { color: var(--muted); }
.bake-card.special .btn { border-color: var(--crust); color: var(--crust); }
.small-link { font-size: var(--s-1); color: var(--accent); }
.choice.special { border-style: dashed; }

/* text-me signup */
.reminder-form {
  max-width: 44rem;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  align-items: end;
}
.reminder-form .btn { justify-self: start; }
.reminder-form .status { grid-column: 1 / -1; }

/* logo */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: auto; height: 40px; }
.hero-logo { width: clamp(150px, 22vw, 220px); height: auto; margin-bottom: 4px; }

/* phones: one-row header, compact hero so this weekend's bake shows without scrolling */
@media (max-width: 40rem) {
  header.top { padding-block: 10px; }
  header.top .wrap { flex-wrap: nowrap; }
  .brand { font-size: 1.2rem; gap: 8px; }
  .brand img { height: 32px; }

  .hero { padding-block: 24px 32px; }
  .hero .wrap { gap: 22px; }
  .hero-text { gap: 12px; }
  .hero-logo { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .lede { font-size: 1.125rem; }
  .bake-card { padding: 20px; gap: 12px; }
}

/* phone menu: ☰ opens a full-screen list */
.menu-btn, .menu-close, .nav-home { display: none; }
.menu-btn, .menu-close {
  background: none; border: 0; color: var(--ink); cursor: pointer;
  padding: 8px; margin: -8px; line-height: 0;
}
.menu-btn svg, .menu-close svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 40rem) {
  .js .menu-btn { display: inline-flex; }
  .js #site-nav { display: none; }
  .js #site-nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; inset: 0; z-index: 50; overflow-y: auto;
    background: var(--surface);
    padding: calc(env(safe-area-inset-top, 0px) + 16px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) max(16px, env(safe-area-inset-left, 0px));
  }
  .js #site-nav.open .menu-close { display: inline-flex; align-self: flex-end; margin: 0 0 12px; }
  .js #site-nav.open > a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 0; border-bottom: 1px solid var(--line);
    font: 700 1.5rem/1.2 var(--display); color: var(--ink);
  }
  .js #site-nav.open > a:not(.cta)::after { content: "›"; color: var(--muted); }
  .js #site-nav.open > a[aria-current="page"] { color: var(--accent); }
  .js #site-nav.open > a.cta {
    margin-top: 24px; justify-content: center; border-bottom: 0;
    padding: 14px; color: var(--accent-ink); font: 600 var(--s1)/1 var(--body);
  }
}

/* about page */
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.about-page { padding-block: 48px 64px; }
.about-layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 52rem) { .about-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; } }
.about-logo { width: min(18rem, 70%); height: auto; justify-self: center; }
.about-page h1 { font-size: var(--s3); }
.about-page .about-text { gap: 18px; }
.about-page .signoff { margin-top: 0; }
@media (max-width: 40rem) { .about-page { padding-block: 28px 48px; } .about-logo { width: 11rem; } }
.about-layout { align-items: start; }
@media (min-width: 52rem) { .about-logo { position: sticky; top: 32px; } }
.about-page .about-text { max-width: 38rem; font-size: var(--s0); }
.about-page .about-text p { line-height: 1.7; }
.kicker { font: italic 400 var(--s1)/1.3 var(--display); color: var(--muted) !important; margin-top: -8px; }
.about-page .actions { margin-top: 8px; }
