/* The Cookie Caterer — site styles v1.0
   Colours come from the Brand Guide (Nov 2026). Black words on bright green/orange/gold;
   the Deep shades only when words must be white. */
:root {
  --white: #ffffff;
  --cream: #FBF6EC;
  --cream-2: #F4ECDC;
  --paper: #ffffff;
  --line: #E6DCCB;
  --ink: #111111;
  --ink-soft: #5b5148;
  --green: #00A64E;
  --green-deep: #007A39;
  --orange: #EA7123;
  --orange-deep: #B5520F;
  --aqua: #2096A9;
  --gold: #E3CF3C;
  --cocoa: #8F6945;
  --cocoa-deep: #503015;

  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-script: "Kaushan Script", "Brush Script MT", cursive;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(80, 48, 21, .06), 0 10px 30px rgba(80, 48, 21, .08);
  --shadow-2: 0 -8px 32px rgba(17, 17, 17, .14);
  --shadow-cookie: 0 24px 40px rgba(80, 48, 21, .22), 0 6px 12px rgba(80, 48, 21, .12);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: 16px;
  --max: 1200px;
  --header-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 56px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 40px; } }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; }
.display, .h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; color: var(--cocoa-deep); letter-spacing: .005em; }
.display { font-size: clamp(3.2rem, 11vw, 8.5rem); line-height: .9; }
.h2 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); line-height: .95; }
.h3 { font: 650 1.1rem/1.25 var(--font-ui); }
.script { font-family: var(--font-script); font-weight: 400; text-transform: none; color: var(--orange-deep); letter-spacing: 0; }
.lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 34em; }
.eyebrow, .mono { font: 500 .8rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.eyebrow { color: var(--green-deep); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 500 .9rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--green-deep); color: #fff; }
.btn-primary:disabled { background: #cfe9da; color: #6c7a72; cursor: not-allowed; transform: none; }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-dark { background: var(--cocoa-deep); color: var(--gold); }
.btn-soft { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover:not(:disabled) { background: #008a41; }
  .btn-orange:hover { background: #f07c2f; }
  .btn-ghost:hover { background: rgba(17,17,17,.04); }
  .btn-dark:hover { background: #63401f; }
  .btn-soft:hover { background: #f4f1ea; }
}

/* ---------- header ---------- */
.strip {
  background: var(--cocoa-deep); color: #fff; font-size: .875rem; text-align: center;
  padding: 8px var(--gutter);
}
.strip { font: 500 .78rem/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.strip b { color: var(--gold); font-weight: 500; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 246, 236, .82);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(80,48,21,.08);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(80,48,21,.22)); }
.brand span { font: 400 1.25rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; color: var(--cocoa-deep); }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 10px 14px; border-radius: 999px; font: 500 .85rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.nav a[aria-current="page"] { color: var(--ink); background: #fff; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); } }
.header-cta { margin-left: auto; }
@media (min-width: 860px) { .nav { display: flex; } .header-cta { margin-left: 8px; } }
.menu-btn { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: none; border-radius: 12px; cursor: pointer; }
@media (min-width: 860px) { .menu-btn { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--cream); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 16px var(--gutter); text-decoration: none; font: 400 1.6rem/1 var(--font-display); text-transform: uppercase; color: var(--cocoa-deep); border-bottom: 1px solid var(--line); }

/* ---------- footer ---------- */
.site-footer { background: var(--cocoa-deep); color: #fff; margin-top: 96px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -38px; height: 40px; background: var(--cocoa-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22c80-14 150 10 230 2s120-24 210-12 130 26 230 14 150-30 250-16 160 22 280 6v24z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22c80-14 150 10 230 2s120-24 210-12 130 26 230 14 150-30 250-16 160 22 280 6v24z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; display: grid; gap: 32px; }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer .footer-big { font: 400 clamp(2.6rem, 7vw, 4.8rem)/.92 var(--font-display); text-transform: uppercase; margin: 0 0 18px; color: #fff; }
.site-footer .footer-big .script { color: var(--gold); font-size: .38em; line-height: 1.2; display: block; margin-top: 6px; }
.site-footer h3 { font: 500 .8rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; color: #fff; opacity: .7; }
.site-footer p, .site-footer a { color: #fff; margin: 0 0 8px; font-size: .95rem; }
.site-footer .links a { display: block; color: var(--gold); text-decoration: none; font: 500 .85rem/1.9 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) { .site-footer .links a:hover { text-decoration: underline; } }
.site-footer .fine { grid-column: 1 / -1; font: 500 .72rem/1.5 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; opacity: .6; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; margin: 0; }

/* ---------- waves (section edges) ---------- */
.wave { display: block; width: 100%; height: clamp(28px, 5vw, 64px); }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink);
  font: 500 .82rem/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 120ms var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"], .chip.on { background: var(--cocoa-deep); color: var(--gold); box-shadow: none; }
.chip .count { font-weight: 500; opacity: .65; font-variant-numeric: tabular-nums; }

/* ---------- stepper ---------- */
.stepper { display: inline-flex; align-items: center; background: var(--cream); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.stepper button {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 999px;
  font-size: 1.35rem; line-height: 1; display: grid; place-items: center;
  transition: transform 120ms var(--ease-out), background-color 120ms ease;
}
.stepper button:active { transform: scale(0.9); background: rgba(17,17,17,.06); }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- sheets (bag, box builder) ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 60; background: rgba(17,17,17,.38);
  opacity: 0; pointer-events: none; transition: opacity 240ms ease;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 0;
  max-height: 92dvh; display: flex; flex-direction: column;
  background: #fff; border-radius: 22px 22px 0 0; box-shadow: var(--shadow-2);
  transform: translateY(100%); transition: transform 320ms var(--ease-drawer);
  visibility: hidden;
}
.sheet.open { transform: translateY(0); visibility: visible; }
.sheet.dragging { transition: none; }
@media (min-width: 720px) {
  .sheet { left: auto; right: 16px; bottom: 16px; top: 16px; width: 440px; max-height: none; border-radius: 22px; transform: translateX(calc(100% + 24px)); }
  .sheet.open { transform: translateX(0); }
}
.sheet-grab { flex: none; padding: 10px 0 2px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet-grab span { width: 40px; height: 5px; border-radius: 3px; background: #d6d1c8; }
@media (min-width: 720px) { .sheet-grab { display: none; } }
.sheet-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 20px 12px; }
.sheet-head h2 { font: 400 1.9rem/1 var(--font-display); text-transform: uppercase; color: var(--cocoa-deep); }
.sheet-close { margin-left: auto; width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--cream); cursor: pointer; font-size: 1.2rem; }
.sheet-body { flex: 1; overflow-y: auto; padding: 0 20px 20px; overscroll-behavior: contain; }
.sheet-foot { flex: none; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; border-radius: 0 0 22px 22px; }

/* ---------- bag bar ---------- */
.bagbar {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px;
  background: var(--cocoa-deep); color: #fff;
  box-shadow: 0 10px 30px rgba(17,17,17,.25);
  transform: translateY(calc(100% + 40px)); visibility: hidden;
  transition: transform 240ms var(--ease-drawer), visibility 0s linear 240ms;
}
.bagbar.show { transform: translateY(0); visibility: visible; transition: transform 240ms var(--ease-drawer), visibility 0s; }
.bagbar .what { font: 500 .85rem/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.bagbar .btn { margin-left: auto; min-height: 44px; }
@media (min-width: 720px) { .bagbar { left: auto; right: 24px; bottom: 24px; width: 380px; } }

/* ---------- cards ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-1); }

/* ---------- reduced motion / transparency / contrast ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .sheet, .bagbar { transition: opacity 200ms ease, visibility 200ms; transform: none !important; opacity: 0; }
  .sheet.open, .bagbar.show { opacity: 1; }
  .btn:active, .chip:active, .stepper button:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--cream); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .bagbar { background: var(--cocoa-deep); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .chip, .stepper, .card { box-shadow: inset 0 0 0 2px var(--ink); }
}

/* ---------- scroll reveal (home and info pages only) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { transform: none; transition: opacity 300ms ease; } }

/* ---------- colour bands: the inner-page heroes, built like the home page's Flavours band ---------- */
.band { --band: var(--green); background: var(--band); color: var(--ink); }
.band-orange { --band: var(--orange); }
.band-wave { display: block; width: 100%; height: clamp(28px, 5vw, 64px); color: var(--green); margin-top: -1px; }
.band-wave.orange { color: var(--orange); }
.band-wave.top { margin: 0 0 -1px; }
.band-wave path { fill: currentColor; }
.band-inner { padding-top: 36px; padding-bottom: 18px; text-align: center; }
@media (min-width: 900px) { .band-inner { padding-top: 56px; } }
.band-title { margin: 0; }
.band-title .script { display: block; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.1; margin-bottom: .02em; color: var(--ink); transform: rotate(-4deg); }
.band-orange .band-title .script { color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.15); }
.band-title .h2 { display: block; font-size: clamp(3.4rem, 13vw, 8rem); line-height: .9; color: var(--ink); }
.band .lead { color: var(--ink); margin: 18px auto 0; }
.band .mono { margin: 14px 0 0; }
.band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.band .btn-soft { box-shadow: none; }
.band-logo { width: min(220px, 52vw); height: auto; margin: 0 auto 18px; filter: drop-shadow(0 14px 24px rgba(80,48,21,.28)); }

/* section headings with a brush-script tail, as on the home page */
.h2 .script { font-size: .62em; vertical-align: .1em; margin-left: .1em; display: inline-block; transform: rotate(-4deg); }

/* one-time entrance used by every hero */
.intro { animation: rise 760ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .intro { animation: fade 240ms ease both; } @keyframes fade { from { opacity: 0; } to { opacity: 1; } } }

/* ---------- white words on green (v5) ----------
   Headlines are large enough for white on Cookie Green; body lines are set bold and >= 19px
   so they count as large text too. Buttons use Green Deep so small white words stay readable. */
.band:not(.band-orange) .band-title .script,
.band:not(.band-orange) .band-title .h2 { color: #fff; }
.band:not(.band-orange) .lead { color: #fff; font-weight: 600; font-size: 1.2rem; }
.band:not(.band-orange) .mono { color: #fff; font: 600 1.2rem/1.45 var(--font-ui); letter-spacing: 0; text-transform: none; }

/* ---------- cookie cut-out photos (shadow is baked into the image) ---------- */
img[src*="assets/cookies/"] { border-radius: 0 !important; box-shadow: none !important; object-fit: contain !important; }

/* v6: two-tone headers on green: white script, black headline */
.band:not(.band-orange) .band-title .h2 { color: var(--ink); }

/* v7: logo wordmark beside the chef badge */
.brand .wordmark { width: auto; height: 40px; filter: none; object-fit: contain; }
@media (max-width: 380px) { .brand .wordmark { height: 34px; } }
@media (min-width: 860px) { .brand .wordmark { height: 46px; } }

/* ---------- v8 header: wordmark left, chef badge centred, links split either side ---------- */
.site-header .wrap.hdr { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.hdr-l, .hdr-r { display: flex; align-items: center; gap: 4px; min-width: 0; }
.hdr-r { justify-content: flex-end; gap: 8px; }
.site-header .hdr .nav { display: none; margin: 0; }
.site-header .hdr .header-cta { margin: 0; flex: none; }
.site-header .hdr .menu-btn { display: inline-flex; flex: none; margin-left: -10px; }
.wordmark-link { display: flex; align-items: center; flex: none; margin-right: 8px; }
.wordmark-link .wordmark { height: 34px; width: auto; }
.brand-badge { display: block; width: 60px; height: 60px; border-radius: 50%; position: relative; z-index: 2; }
.brand-badge img { width: 100%; height: 100%; filter: drop-shadow(0 4px 10px rgba(80,48,21,.25)); transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .brand-badge:hover img { transform: rotate(-6deg) scale(1.04); } }
@media (max-width: 379px) { .wordmark-link .wordmark { height: 28px; } .brand-badge { width: 54px; height: 54px; } }
@media (min-width: 1000px) {
  .site-header .hdr .nav { display: flex; }
  .site-header .hdr .menu-btn { display: none; }
  .wordmark-link .wordmark { height: 44px; }
  /* the badge hangs below the header bar, like a seal */
  .brand-badge { width: 96px; height: 96px; align-self: start; margin: 8px 0 -36px; }
}

/* ---------- v9 type: Noctura Georgia duo (Clean for headlines, Brush for script accents) ---------- */
@font-face { font-family: "Noctura Clean"; src: url("fonts/noctura-clean.woff2?v=1") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noctura Brush"; src: url("fonts/noctura-brush.woff2?v=1") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --font-display: "Noctura Clean", "Arial Narrow", Impact, sans-serif;
  --font-script: "Noctura Brush", "Brush Script MT", cursive;
}
/* the brush face runs small: give inline script tails a little more size */
.h2 .script, .section-head .script { font-size: .8em; }

/* ---------- v10 type: Anton headlines, Noctura Brush script, Apple's San Francisco for small text ----------
   SF is Apple's system font: Apple devices use it directly; others fall back to their own system font. */
:root {
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-sf: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: var(--font-sf);
  --font-ui: var(--font-sf);
}
.btn { font-weight: 650; }
.strip { font-weight: 600; }
.mono, .eyebrow { font-weight: 600; }
/* header links: bigger, bolder, darker */
.site-header .nav a { font: 700 1rem/1 var(--font-sf); letter-spacing: .05em; color: var(--ink); padding: 11px 14px; }
.site-header .nav a[aria-current="page"] { color: var(--green-deep); background: #fff; box-shadow: inset 0 0 0 1.5px var(--green-deep); }
@media (hover: hover) and (pointer: fine) { .site-header .nav a:hover { color: var(--green-deep); background: rgba(0,122,57,.08); } }
.site-header .header-cta { font-size: .95rem; font-weight: 700; }
.band-title .script { margin-bottom: .14em; }

/* v11: the centre badge shrinks into the header bar once the page scrolls */
.brand-badge { transform-origin: 50% 0; transition: transform 320ms var(--ease-out); will-change: transform; }
.site-header.is-scrolled .brand-badge { transform: scale(.82); }
@media (min-width: 1000px) {
  .brand-badge { margin: 6px 0 -34px; }
  /* 96px -> about 56px, centred in the 68px bar */
  .site-header.is-scrolled .brand-badge { transform: scale(.58); }
}
@media (prefers-reduced-motion: reduce) { .brand-badge { transition: none; } }

/* v12: headline first, brush script underneath ("Order for pickup", "Sell our cookies in your store") */
.band-title-after .script { margin: -.12em 0 0; transform: rotate(-4deg); }
.site-footer .fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
