/* ============================================================
   Grain & Gather Bakehouse
   Type: Fraunces (display/editorial) + Hanken Grotesk (UI) + Pinyon (accent)
   Palette derived from the bakehouse's own seasonal posters.
   ============================================================ */

:root {
  --paper:        #F4EDDF;
  --paper-2:      #FBF6EC;
  --parchment:    #F0E1C2;
  --parchment-2:  #E8D4AC;
  --cream:        #F8F3E7;

  --ink:          #2A2017;
  --ink-2:        #4A3C2C;
  --ink-soft:     rgba(42, 32, 23, 0.66);
  --ink-faint:    rgba(42, 32, 23, 0.42);

  --berry:        #B23A33;
  --berry-deep:   #8E2A26;
  --olive:        #454E25;
  --olive-deep:   #333B16;
  --gold:         #AE781D;
  --gold-soft:    #C99A45;

  --line:         rgba(42, 32, 23, 0.16);
  --line-2:       rgba(42, 32, 23, 0.30);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --script:"Pinyon Script", cursive;

  --shadow-sm: 0 2px 10px rgba(42, 32, 23, 0.06);
  --shadow:    0 18px 44px -22px rgba(42, 32, 23, 0.45);
  --shadow-lg: 0 34px 70px -28px rgba(42, 32, 23, 0.50);

  --maxw: 1160px;
  --pad: clamp(20px, 5vw, 64px);
  --r: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 82% -8%, rgba(174, 120, 29, 0.10), transparent 60%),
    radial-gradient(1000px 700px at -6% 4%, rgba(178, 58, 51, 0.06), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---- Type primitives ---- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 120, "SOFT" 28, "WONK" 1;
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.012em;
}

.script {
  font-family: var(--script);
  font-weight: 400;
  font-variation-settings: normal;
  letter-spacing: 0;
  color: var(--berry);
  line-height: 0.9;
}

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow--red   { color: var(--berry); }
.eyebrow--olive { color: var(--olive); }
.eyebrow--gold  { color: var(--gold-soft); }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1.5px;
  margin-right: 12px;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.7;
}

.wrap { width: min(var(--maxw), 100% - (var(--pad) * 2)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--olive); color: var(--cream);
  padding: 12px 18px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 700;
  letter-spacing: 0.04em; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn--solid { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.btn--solid:hover { background: var(--olive-deep); border-color: var(--olive-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--full { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14.5px; letter-spacing: 0.02em;
  text-decoration: none; color: var(--berry);
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
  transition: gap .18s ease, border-color .18s ease;
}
.link-arrow span { transition: transform .18s ease; }
.link-arrow:hover { border-color: currentColor; }
.link-arrow:hover span { transform: translateX(4px); }

.link-inline {
  font: inherit; color: var(--olive); font-weight: 700;
  background: none; border: none; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}
.link-inline:hover { color: var(--olive-deep); }

/* ============================================================
   Masthead
   ============================================================ */
.masthead {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  padding: 12px var(--pad);
  background: rgba(248, 243, 231, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.masthead.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(42, 32, 23, 0.6);
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; margin-right: auto; color: var(--ink); }
.brand-badge { width: 52px; height: 52px; color: var(--ink); flex: none; }
.brand-words { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 22px; font-variation-settings: "opsz" 40, "SOFT" 20; letter-spacing: -0.01em; }
.brand-sub { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav a {
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; color: var(--ink-2);
  padding: 6px 2px; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--berry); transition: right .25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }
.masthead-cta { min-height: 44px; padding: 0 20px; }
.masthead-cta .cta-short { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(48px, 8vw, 104px) var(--pad) clamp(56px, 8vw, 96px);
  width: min(calc(var(--maxw) + 120px), 100%); margin-inline: auto;
}
.hero-grain { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-wheat {
  position: absolute; right: -3%; top: 50%; transform: translateY(-50%);
  width: min(620px, 52vw); height: auto; aspect-ratio: 200 / 230;
  color: var(--olive); opacity: 0.05;
}
.hero-copy { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(42px, 7vw, 84px);
  font-variation-settings: "opsz" 144, "SOFT" 24, "WONK" 1;
  font-weight: 580; letter-spacing: -0.02em; line-height: 0.98; margin: 0;
}
.hero-title .script { display: inline-block; font-size: 1.16em; margin-top: 0.06em; }
.lead {
  max-width: 33ch; margin: 26px 0 0; font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-2); line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 30px 0 0; font-size: 14px; color: var(--ink-soft);
}
.hero-meta strong { color: var(--ink); font-weight: 700; }
.hero-meta .dot { color: var(--ink-faint); }

.hero-art { position: relative; z-index: 1; display: grid; place-items: center; }
.medallion { position: relative; width: min(440px, 78vw); aspect-ratio: 1; }
.medallion img {
  position: absolute; inset: 11%; width: 78%; height: 78%; border-radius: 50%;
  object-fit: cover; filter: saturate(1.03) contrast(1.02);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(0,0,0,0.04);
}
.medallion-ring { position: absolute; inset: 0; animation: spin 180s linear infinite; }
.medallion-ring svg { width: 100%; height: 100%; overflow: visible; }
.medallion-ring text {
  font-family: var(--sans); font-size: 8.4px; font-weight: 700; letter-spacing: 1.5px;
  fill: var(--olive); text-transform: uppercase;
}
.medallion::after {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  border: 1.5px solid var(--line-2);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Rhythm band  (a real sequence → numbered)
   ============================================================ */
.band-rhythm {
  background: var(--olive);
  color: var(--cream);
  padding: clamp(40px, 6vw, 64px) 0;
  position: relative;
}
.rhythm { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 4vw, 56px); list-style: none; margin-block: 0; padding: 0; counter-reset: r; }
.rhythm-step { position: relative; padding-left: 4px; }
.rhythm-num {
  display: block; font-family: var(--serif); font-weight: 300; font-size: 15px;
  letter-spacing: 0.3em; color: var(--gold-soft); margin-bottom: 14px;
}
.rhythm-head {
  font-size: clamp(24px, 2.6vw, 32px); color: var(--cream);
  font-variation-settings: "opsz" 60, "SOFT" 24; margin-bottom: 10px;
}
.rhythm-step p { margin: 0; color: rgba(248, 243, 231, 0.78); font-size: 15.5px; line-height: 1.55; max-width: 34ch; }
.rhythm-step + .rhythm-step::before {
  content: ""; position: absolute; left: calc(-1 * clamp(11px, 2vw, 28px)); top: 4px; bottom: 4px;
  width: 1px; background: rgba(248, 243, 231, 0.22);
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(56px, 9vw, 116px) 0; }
.sec-head { max-width: 740px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-title { font-size: clamp(32px, 4.6vw, 56px); font-variation-settings: "opsz" 110, "SOFT" 26, "WONK" 1; }
.sec-note { margin: 18px 0 0; color: var(--ink-soft); font-size: 16.5px; max-width: 58ch; }

/* Wheat rule divider */
.rule-wheat { display: flex; align-items: center; gap: 22px; margin: 0 auto; }
.rule-wheat span { flex: 1; height: 1px; background: var(--line); }
.rule-mark { width: 30px; height: 35px; color: var(--olive); opacity: 0.65; aspect-ratio: 200/230; }

/* ============================================================
   Seasonal posters
   ============================================================ */
.posters { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.poster { display: flex; flex-direction: column; }
.poster-frame {
  display: block; position: relative; border-radius: var(--r); overflow: hidden;
  background: var(--paper-2); padding: 12px; border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease;
  border-top: 5px solid var(--berry);
}
.poster--asiago .poster-frame { border-top-color: var(--olive); }
.poster--movie  .poster-frame { border-top-color: var(--ink); }
.poster-frame img { width: 100%; border-radius: 6px; aspect-ratio: 2 / 3; object-fit: cover; }
.poster-frame:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.poster-frame:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
.poster-body { padding: 22px 6px 0; }
.poster-title { font-size: 25px; font-variation-settings: "opsz" 50, "SOFT" 24; margin-bottom: 8px; }
.poster--berry  .poster-title { color: var(--berry-deep); }
.poster--asiago .poster-title { color: var(--olive-deep); }
.poster-body p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15.5px; }

/* ============================================================
   Cards (shared surface)
   ============================================================ */
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Menu
   ============================================================ */
.section--menu {
  background:
    linear-gradient(180deg, transparent, rgba(240, 225, 194, 0.4) 12% 88%, transparent),
    transparent;
}
.menu-list { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 68px); }
.menu-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.menu-section-head h3 {
  font-size: clamp(23px, 2.6vw, 30px); font-variation-settings: "opsz" 50, "SOFT" 26, "WONK" 1;
}
.menu-section-note { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); flex: none; white-space: nowrap; }
.menu-section-desc { margin: 14px 0 0; color: var(--ink-2); line-height: 1.6; font-size: 15px; max-width: 78ch; }

.menu-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(244px, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: clamp(20px, 3vw, 28px); }
.menu-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.menu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.menu-card-photo { aspect-ratio: 1 / 1; background: var(--parchment); overflow: hidden; }
.menu-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-card-body { display: flex; flex-direction: column; gap: 7px; padding: 15px 17px 17px; flex: 1; }
.menu-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.menu-card-name { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.2; font-variation-settings: "opsz" 30, "SOFT" 10; }
.menu-card-desc { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.menu-card-meta { margin: 0; color: var(--ink-soft); font-family: var(--sans); font-size: 12.5px; line-height: 1.45; }
.price { font-family: var(--sans); font-weight: 800; font-size: 16px; color: var(--olive-deep); flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.add-button {
  width: 100%; margin-top: auto; padding: 10px 14px; border-radius: 999px; flex: none;
  border: 1.5px solid var(--olive); color: var(--olive-deep); background: transparent;
  font-family: var(--sans); font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.add-button:hover { background: var(--olive); color: var(--cream); }
.add-button:active { transform: scale(0.97); }

/* ============================================================
   Flavor lab
   ============================================================ */
.lab-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.lab-form { padding: clamp(24px, 3vw, 32px); display: grid; gap: 18px; }
.lab-board { padding: clamp(24px, 3vw, 32px); }
.lab-board-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 2px solid var(--line); }
.lab-board-top h3 { font-size: 24px; font-variation-settings: "opsz" 40, "SOFT" 24; }
.tally { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.flavor-ideas { display: grid; }
.flavor-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.flavor-card:last-child { border-bottom: 0; }
.flavor-tag {
  display: inline-block; margin-bottom: 9px; padding: 4px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cream); background: var(--berry);
}
.flavor-card strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 20px; font-variation-settings: "opsz" 40, "SOFT" 18; }
.flavor-card p { margin: 5px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.vote-button {
  display: grid; place-items: center; gap: 1px; min-width: 70px; min-height: 70px; padding: 8px; flex: none;
  border: 1.5px solid var(--olive); border-radius: 12px; background: transparent; color: var(--olive);
  font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.vote-button:hover { transform: translateY(-2px); }
.vote-button .count { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: 0; line-height: 1; color: var(--ink); }
.vote-button.voted { background: var(--olive); color: var(--cream); }
.vote-button.voted .count { color: var(--cream); }

/* ============================================================
   Forms
   ============================================================ */
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label, legend { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.opt { font-weight: 600; letter-spacing: 0.04em; text-transform: none; color: var(--ink-faint); }
input, textarea, select {
  width: 100%; padding: 13px 14px; font: 16px/1.4 var(--sans); color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line-2); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(69, 78, 37, 0.15); }
textarea { resize: vertical; min-height: 60px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 14px) center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }

.pay { border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; }
.pay legend { padding: 0 8px; }
.pay-panel { margin-top: 6px; }
.paypal-buttons { min-height: 46px; }
.pay-loading { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-soft); text-align: center; }
.pay-unavailable { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; text-align: center; }
.pay-unavailable a { color: var(--berry); }
.form-help { margin: 0; font-size: 13.5px; color: var(--ink-soft); text-align: center; }

.order-confirm { text-align: center; padding: clamp(32px, 6vw, 56px); max-width: 560px; margin: 0 auto; }
.confirm-title { font-size: clamp(26px, 3vw, 34px); color: var(--ink); margin: 6px 0 12px; }
.confirm-body { color: var(--ink-2); line-height: 1.65; margin: 0 auto 22px; max-width: 44ch; }


/* ============================================================
   Order / cart
   ============================================================ */
.order-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.cart { padding: clamp(24px, 3vw, 32px); position: sticky; top: 92px; background: var(--parchment); border-color: var(--line-2); }
.cart-title { font-size: 24px; font-variation-settings: "opsz" 40, "SOFT" 24; margin-bottom: 16px; }
.cart-items { min-height: 72px; }
.empty-cart { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line strong { font-family: var(--serif); font-weight: 600; font-size: 16.5px; font-variation-settings: "opsz" 30; }
.cart-line small { color: var(--ink-soft); font-size: 12.5px; }
.cart-line .line-total { font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-controls { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.cart-controls span { min-width: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.qty-button { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink-2); color: var(--ink); background: transparent; font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; }
.qty-button:hover { background: var(--ink); color: var(--cream); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--line-2); }
.cart-total span { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.cart-total strong { font-family: var(--serif); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.checkout { padding: clamp(24px, 3vw, 34px); display: grid; gap: 18px; }

/* ============================================================
   Follow band
   ============================================================ */
.follow { background: var(--ink); color: var(--cream); }
.follow-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: center; padding: clamp(44px, 6vw, 72px) 0; }
.follow-title { font-size: clamp(26px, 3.2vw, 42px); color: var(--cream); font-variation-settings: "opsz" 80, "SOFT" 26, "WONK" 1; max-width: 18ch; }
.follow-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.follow-links a { padding: 12px 18px; border: 1.5px solid rgba(248, 243, 231, 0.32); border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .18s, color .18s, border-color .18s; }
.follow-links a:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ============================================================
   Footer
   ============================================================ */
.site-foot { background: var(--olive-deep); color: rgba(248, 243, 231, 0.86); }
.foot-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; padding: clamp(32px, 5vw, 48px) 0; }
.foot-badge { width: 76px; height: 76px; color: rgba(248, 243, 231, 0.92); flex: none; }
.foot-name { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--cream); margin: 0; font-variation-settings: "opsz" 40, "SOFT" 20; }
.foot-tag { margin: 4px 0 0; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(248, 243, 231, 0.7); }
.foot-fine { margin: 0; max-width: 30ch; font-size: 13.5px; color: rgba(248, 243, 231, 0.66); text-align: right; }

/* ============================================================
   Floating review bar
   ============================================================ */
.orderbar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(120%);
  z-index: 45; display: flex; align-items: center; gap: 18px;
  padding: 14px 14px 14px 22px; border-radius: 999px; text-decoration: none;
  background: var(--ink); color: var(--cream); box-shadow: var(--shadow-lg);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.orderbar[hidden] { display: none; }
.orderbar.is-visible { transform: translateX(-50%) translateY(0); }
.orderbar-count { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.orderbar-mid { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); }
.orderbar-total { background: var(--berry); padding: 8px 16px; border-radius: 999px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ============================================================
   Lightbox (printed menu)
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 28px; background: rgba(42, 32, 23, 0.72); backdrop-filter: blur(4px); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(820px, 100%); max-height: 90vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--cream); color: var(--ink); font-size: 20px; cursor: pointer; box-shadow: var(--shadow); }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(14px);
  z-index: 70; max-width: min(420px, calc(100% - 36px));
  padding: 13px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  color: var(--cream); background: var(--olive); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Focus
   ============================================================ */
:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 3px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: clamp(36px, 8vw, 64px); }
  .hero-copy { order: 2; }
  .hero-art { order: 1; }
  .eyebrow, .lead, .hero-meta, .hero-actions { justify-content: center; }
  .lead { margin-inline: auto; }
  .eyebrow::before { display: none; }
  .hero-wheat { opacity: 0.04; }
  .medallion { width: min(320px, 70vw); }

  .posters, .lab-grid, .order-grid, .rhythm, .follow-grid, .about-grid, .faq-wrap { grid-template-columns: 1fr; }
  .rhythm-step + .rhythm-step::before { display: none; }
  .rhythm { gap: 32px; }

  .nav { display: none; }
  .cart { position: static; }
  .follow-grid { gap: 22px; }
  .follow-links { justify-content: flex-start; }
  .foot-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .foot-fine { text-align: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .masthead { gap: 12px; }
  .brand-badge { width: 44px; height: 44px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 10px; letter-spacing: 0.1em; }
  .masthead-cta { min-height: 40px; padding: 0 16px; font-size: 14px; }
  .masthead-cta .cta-full { display: none; }
  .masthead-cta .cta-short { display: inline; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .poster-frame img { aspect-ratio: 3 / 4; }
  .orderbar { left: 16px; right: 16px; bottom: 16px; transform: translateY(120%); justify-content: space-between; }
  .orderbar.is-visible { transform: translateY(0); }
  .toast { bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .medallion-ring { animation: none !important; }
  .btn, .add-button, .poster-frame, .link-arrow span { transition: none !important; }
}

/* ============ Added features: allergens, sold-out, signup, about, FAQ ============ */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Allergen tags */
.menu-card-allergens { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 0; }
.allergen { font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--berry-deep); background:rgba(178,58,51,0.10); border:1px solid rgba(178,58,51,0.22); padding:3px 8px; border-radius:999px; }

/* Sold-out / limited flags */
.card-flag { display:inline-block; font-size:11px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; padding:4px 9px; border-radius:999px; }
.menu-card-photo .card-flag { position:absolute; top:10px; left:10px; box-shadow:var(--shadow-sm); }
.card-flag--out { background:var(--ink); color:var(--cream); }
.card-flag--few { background:var(--gold); color:var(--ink); }
.menu-card-name .card-flag { vertical-align:middle; margin-left:8px; }
.menu-card--soldout .menu-card-photo img { filter:grayscale(0.7); opacity:0.55; }
.menu-card--soldout .menu-card-name { color:var(--ink-soft); }
.add-button--out { background:var(--line); color:var(--ink-soft); border-color:var(--line-2); cursor:not-allowed; }
.add-button--out:hover { background:var(--line); color:var(--ink-soft); }

/* Allergen note under menu intro */
.allergen-note { margin:10px 0 0; font-size:13px; color:var(--ink-soft); max-width:64ch; line-height:1.55; }

/* Newsletter signup */
.follow-sub { margin:10px 0 0; color:var(--cream); opacity:.85; max-width:42ch; line-height:1.55; }
.follow-actions { display:flex; flex-direction:column; gap:14px; align-items:stretch; }
.news-form { display:flex; gap:10px; width:100%; flex-wrap:wrap; position:relative; }
.news-input { flex:1 1 220px; min-width:0; padding:13px 15px; border-radius:10px; border:1.5px solid rgba(248,243,231,0.30); background:rgba(248,243,231,0.08); color:var(--cream); font:inherit; font-size:15px; }
.news-input::placeholder { color:rgba(248,243,231,0.55); }
.news-input:focus { outline:none; border-color:var(--gold); background:rgba(248,243,231,0.14); }
.news-btn { white-space:nowrap; flex:0 0 auto; }
.news-hp { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.news-note { margin:0; font-size:14px; color:var(--gold-soft); line-height:1.5; }

/* About / story */
.about-grid { display:grid; grid-template-columns:1fr; gap:clamp(24px,4vw,56px); align-items:center; }
.about-media { display:flex; justify-content:center; }
.about-media img { width:100%; max-width:560px; height:auto; display:block; filter:drop-shadow(0 16px 22px rgba(42,32,23,0.16)); }
.about-body .sec-title { margin-top:6px; }
.about-body p { color:var(--ink-2); line-height:1.7; margin:14px 0 0; max-width:60ch; }
.about-pickup { background:var(--paper-2); border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin-top:18px; }
.about-pickup strong { color:var(--olive-deep); }

/* FAQ */
.faq-wrap { display:grid; grid-template-columns:1fr; gap:clamp(24px,4vw,56px); align-items:start; }
@media (min-width: 941px) {
  .about-grid { grid-template-columns:0.9fr 1.1fr; }
  .faq-wrap { grid-template-columns:0.8fr 1.2fr; }
}
.faq-intro .sec-note { margin-top:12px; }
.faq-list { display:flex; flex-direction:column; }
.faq-item { border-bottom:1px solid var(--line); }
.faq-item:first-child { border-top:1px solid var(--line); }
.faq-item summary { list-style:none; cursor:pointer; padding:18px 38px 18px 0; position:relative; font-family:var(--serif); font-size:clamp(17px,2vw,19px); font-weight:600; color:var(--ink); }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:"+"; position:absolute; right:4px; top:50%; transform:translateY(-50%); font-size:24px; font-weight:300; color:var(--berry); line-height:1; }
.faq-item[open] summary::after { content:"\2013"; }
.faq-a { padding:0 0 20px; }
.faq-a p { margin:0; color:var(--ink-2); line-height:1.7; max-width:66ch; }
