@import url("../fonts/fonts.css");

/* ============================================================
   The Cookie Cottage — brand system
   Palette sampled directly from the logo artwork:
     cream page  #FEF6EA   arch tan  #EFD9BF   logo ink  #4E3A21
   Text tones are darkened from the menu artwork's #AB9B83 so body
   copy clears WCAG AA on cream while keeping the same warm hue.
   ============================================================ */

:root {
  --cream: #fef6ea;
  --cream-2: #fbf0e0;
  --cream-3: #f8ead9;
  --tan: #efd9bf;
  --tan-soft: #f4e3ce;
  --ink: #4e3a21;
  --ink-soft: #6e5b45;
  --ink-mute: #7a6850;
  --ink-faint: #a3907a;
  --line: #e7d6bf;
  --line-soft: #f0e2cf;
  --white: #fffdf9;
  --shadow: 0 1px 2px rgba(78, 58, 33, 0.04), 0 8px 28px -12px rgba(78, 58, 33, 0.16);
  --shadow-lg: 0 2px 4px rgba(78, 58, 33, 0.05), 0 24px 60px -24px rgba(78, 58, 33, 0.24);
  --arch: 50% 50% 6px 6px / 33% 33% 6px 6px;
  --wrap: 1140px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: "Urbanist", "Century Gothic", "Avenir Next", sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* height:auto is load-bearing — the width/height attributes on <img> otherwise
   set a literal CSS height and override every aspect-ratio below. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 300;
  margin: 0;
  line-height: 1.2;
}

/* ---------- type helpers ---------- */

.script {
  font-family: "Mrs Saint Delafield", "Snell Roundhand", cursive;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}

/* visible to screen readers only — the hero's page title lives in the logo art */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head .script { font-size: clamp(3.2rem, 7vw, 4.6rem); margin: 0.2rem 0 0.6rem; }
.section-head p { max-width: 46ch; margin: 0.75rem auto 0; color: var(--ink-mute); }

.rule {
  width: 74px;
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 1.25rem auto;
}

/* wheat-stalk divider, echoing the logo mark */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
  max-width: 320px;
  color: var(--ink-faint);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.divider svg { width: 15px; height: 26px; opacity: 0.75; }

/* ---------- layout ---------- */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
section { padding: 6rem 0; }
.band-2 { background: var(--cream-2); }
.band-tan { background: var(--tan-soft); }

/* ---------- buttons ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2.1rem;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn-ghost:hover { --btn-bg: var(--tan-soft); --btn-bd: var(--tan); }
.btn-sm { padding: 0.7rem 1.5rem; font-size: 0.66rem; letter-spacing: 0.16em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(254, 246, 234, 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); box-shadow: 0 10px 30px -26px rgba(78, 58, 33, 0.5); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
  padding: 0.75rem 0;
}

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; }
.brand img.mark { height: 44px; width: auto; }
.brand img.word { height: 26px; width: auto; margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 2.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s;
}
.cart-link:hover { background: var(--tan-soft); border-color: var(--tan); }
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.62rem;
  letter-spacing: 0;
  line-height: 1;
}
.cart-count[hidden] { display: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span::before { transform: translateY(-5px); }
.nav-toggle span::after { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(1px); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  text-align: center;
  padding: 3.25rem 0 4rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 50% auto;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle closest-side, rgba(239, 217, 191, 0.42), rgba(239, 217, 191, 0.16) 45%, transparent 78%);
  pointer-events: none;
}
.hero > * { position: relative; }
/* The 34vh cap is what keeps the whole hero — logo, tagline, buttons and the
   booking badge — above the fold on a 1366x768 or 1440x800 laptop. The logo
   art is 575x717, so its height is ~1.25x whatever width lands here. */
.hero-logo { width: min(330px, 66vw, 34vh); margin: 0 auto 1.5rem; }
.hero-tagline {
  max-width: 40ch;
  margin: 1.25rem auto 0;
  font-size: 1.08rem;
  color: var(--ink-mute);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2rem; }
.hero-note {
  display: inline-flex;
  align-items: center;
  margin-top: 1.75rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- arch photo frame (echoes the logo mark) ---------- */

.arch {
  --frame-bg: var(--cream);
  position: relative;
  border-radius: var(--arch);
  overflow: hidden;
  background: var(--tan-soft);
  aspect-ratio: 3 / 4;
}
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.arch:hover img { transform: scale(1.045); }
/* the little tag notch at the crown of the logo arch */
.arch::after {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 30px;
  height: 18px;
  transform: translateX(-50%);
  background: var(--frame-bg);
  border-radius: 0 0 999px 999px;
}
.arch-wide { aspect-ratio: 4 / 5; }

/* arch with no photo — brand mark instead, used where no product shot exists */
.arch-blank {
  display: grid;
  place-content: center;
  gap: 0.5rem;
  background: var(--tan-soft);
  border: 1px solid var(--tan);
  text-align: center;
}
.arch-blank .blank-mark { width: 96px; margin: 0 auto; opacity: 0.9; }
.arch-blank .script { font-size: 2.6rem; color: var(--ink); }

/* ---------- menu ---------- */

/* Two categories per row on desktop, one per row on phones and small
   tablets. Each category stacks photo-over-list inside its own column. */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4.5rem clamp(2.5rem, 5vw, 4rem);
}

.menu-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

/* An odd number of categories leaves the last one alone on its row, so let
   it span the full width and lay out side-by-side instead. */
.menu-grid > .menu-row:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
}

.menu-figure { position: relative; margin: 0; min-width: 0; }
.menu-figure .arch { box-shadow: var(--shadow); }
/* stacked cards let the photo fill the column, at a gentler arch ratio */
.menu-grid > .menu-row:not(:last-child:nth-child(odd)) .arch { aspect-ratio: 1 / 1.15; }
.menu-grid > .menu-row:last-child:nth-child(odd) .arch { aspect-ratio: 3 / 4; }
.menu-figure figcaption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.menu-cat-title { font-size: clamp(1.5rem, 3vw, 1.95rem); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 300; }
.menu-cat-sub { margin: 0.9rem 0 0; color: var(--ink-mute); max-width: 48ch; }

.price-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.price-list li { padding: 0.75rem 0; border-bottom: 1px dashed var(--line); }
.price-list li:first-child { border-top: 1px dashed var(--line); }
.price-row { display: flex; align-items: baseline; gap: 0.85rem; }
.price-row .name { color: var(--ink); font-weight: 400; }
.price-row .leader { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.price-row .price { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-list .meta { display: block; font-size: 0.86rem; color: var(--ink-faint); margin-top: 0.15rem; }

.add {
  flex-shrink: 0;
  padding: 0.34rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-mute);
  font-family: inherit;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.add:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.add:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.add.is-added { background: var(--tan); border-color: var(--tan); color: var(--ink); }

.menu-note {
  margin-top: 1.6rem;
  padding: 0.9rem 1.2rem;
  border-left: 2px solid var(--tan);
  background: var(--cream-3);
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  color: var(--ink-mute);
}
.menu-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* flavour chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 0.45rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.chips.chips-tan li { background: rgba(255, 253, 249, 0.6); }

/* gallery strip under a menu row */
.thumb-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1rem; }
.thumb-strip img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

/* ---------- policies ---------- */

.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.5rem 2rem;
  margin-top: 3rem;
}
.policy { text-align: center; }
.policy .num {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border: 1px solid var(--ink-faint);
  border-radius: 50%;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.policy h3 { font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 0.6rem; }
.policy p { margin: 0; font-size: 0.95rem; color: var(--ink-mute); }

/* ---------- forms ---------- */

.field { margin-bottom: 1.15rem; }
.field label,
.legend {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field .hint { margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--ink-faint); line-height: 1.5; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  transition: border-color 0.25s, box-shadow 0.25s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink-faint);
  box-shadow: 0 0 0 3px rgba(239, 217, 191, 0.6);
}
input::placeholder, textarea::placeholder { color: #bdae99; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%237a6850' stroke-width='1.4' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }

.link-btn {
  border: 0;
  padding: 0;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: var(--ink-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--ink); }

.check { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 0.85rem; cursor: pointer; }
.check input { margin: 0.35rem 0 0; width: 15px; height: 15px; accent-color: var(--ink); flex-shrink: 0; }
.check span { font-size: 0.94rem; color: var(--ink-soft); line-height: 1.5; }
.check .sub { display: block; font-size: 0.82rem; color: var(--ink-faint); }

.form-card {
  padding: clamp(1.6rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.35rem; letter-spacing: 0.02em; margin-bottom: 1.6rem; }
.form-card h2 .step {
  display: inline-block;
  margin-right: 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  vertical-align: middle;
}

/* ---------- checkout ---------- */

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}
/* min-width:0 all the way down, or a long line inside a card sets a
   min-content floor and the grid pushes past a narrow phone viewport */
.checkout-col { display: flex; flex-direction: column; gap: 1.75rem; min-width: 0; }
.checkout-col > *, .summary, .summary-card, .form-card { min-width: 0; }
.summary { position: sticky; top: 100px; }

.crumbs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.crumbs a { color: var(--ink-mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* fulfilment option cards */
.option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.option + .option { margin-top: 0.75rem; }
.option:hover { border-color: var(--tan); background: var(--cream-3); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .body { flex: 1; min-width: 0; }
.option .title { color: var(--ink); font-weight: 400; }
.option .sub { display: block; font-size: 0.85rem; color: var(--ink-faint); }
.option .tag {
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  background: var(--cream-3);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.option .tick {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.option .tick::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
  transition: transform 0.25s var(--ease);
}
.option:has(input:checked) { border-color: var(--ink); background: var(--cream-3); box-shadow: 0 0 0 1px var(--ink); }
.option:has(input:checked) .tick { border-color: var(--ink); }
.option:has(input:checked) .tick::after { transform: scale(1); }
.option:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }

.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 0; padding: 0; list-style: none; }
.pill {
  padding: 0.34rem 0.9rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.pill-cash { background: #e6f2e4; color: #3f6b3a; }
.pill-venmo { background: #e3edf7; color: #2f5e88; }

.callout {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.1rem;
  padding: 0.95rem 1.15rem;
  border-radius: 10px;
  background: var(--cream-3);
  border: 1px solid var(--line-soft);
  font-size: 0.9rem;
  color: var(--ink-mute);
  line-height: 1.55;
}
.callout svg { flex-shrink: 0; margin-top: 3px; color: var(--ink-faint); }

/* order summary */
.summary-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.summary-head h2 { font-size: 1.2rem; }
.summary-head .count { font-size: 0.78rem; color: var(--ink-faint); }
.summary-body { padding: 1.4rem 1.5rem; }

.line-items { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.line-item { display: flex; gap: 0.9rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line-soft); }
.line-item img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.line-item .li-body { flex: 1; min-width: 0; }
.line-item .li-name { color: var(--ink); font-size: 0.95rem; }
.line-item .li-variant { font-size: 0.82rem; color: var(--ink-faint); }
.line-item .li-price { font-size: 0.95rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; gap: 0.15rem; margin-top: 0.4rem; }
/* :not(.li-remove) matters — Remove is a sibling button inside .qty, and a
   fixed 24px box clipped its label so the underline ran past the text. */
.qty button:not(.li-remove) {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.qty button:hover { background: var(--cream-3); border-color: var(--tan); }
.qty .n { min-width: 26px; text-align: center; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.li-remove {
  border: 0;
  background: none;
  padding: 0;
  margin-left: 0.75rem;
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-decoration: underline;
  cursor: pointer;
}
.li-remove:hover { color: var(--ink); }

.totals { list-style: none; margin: 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line-soft); }
.totals li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.32rem 0; font-size: 0.95rem; }
.totals .label { color: var(--ink-mute); }
.totals .val { color: var(--ink); font-variant-numeric: tabular-nums; }
.totals .grand { margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--line-soft); }
.totals .grand .label { color: var(--ink); font-weight: 500; }
.totals .grand .val { font-size: 1.15rem; font-weight: 500; }

.summary-foot { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line-soft); background: var(--cream-3); }
.summary-foot .fine { margin: 0.9rem 0 0; font-size: 0.78rem; color: var(--ink-faint); text-align: center; line-height: 1.5; }

.empty-cart { text-align: center; padding: 2rem 0 1rem; }
.empty-cart p { color: var(--ink-mute); margin: 0 0 1.4rem; }

/* ---------- about ---------- */

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.portrait { position: relative; width: min(420px, 100%); margin-inline: auto; }
.portrait img { width: 100%; height: 100%; border-radius: 50%; aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow-lg); }
.portrait::before {
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px solid var(--tan);
  border-radius: 50%;
  pointer-events: none;
}
.portrait .stamp {
  position: absolute;
  right: -6px;
  bottom: 6px;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tan-soft);
  border: 1px solid var(--tan);
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.7;
}
.about-copy .script { font-size: clamp(2.9rem, 6vw, 4rem); margin: 0.4rem 0 1.2rem; }
.about-copy .lede { font-size: 1.2rem; color: var(--ink); line-height: 1.65; }

/* ---------- carousel ---------- */

.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0 1.5rem;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 clamp(230px, 28vw, 330px);
  scroll-snap-align: center;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.carousel-slide figcaption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 0.5rem; }
.carousel-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.carousel-btn:hover { background: var(--tan-soft); border-color: var(--tan); }
.carousel-btn:active { transform: scale(0.94); }
.carousel-dots { display: flex; gap: 0.4rem; }
.carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.carousel-dots button[aria-current="true"] { background: var(--ink); transform: scale(1.35); }

.carousel-counter {
  display: none;
  min-width: 4.5rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 4.5rem 0 2.5rem;
  background: var(--cream-2);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.site-footer .logo { width: 190px; margin: 0 auto 1.75rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; list-style: none; margin: 0 0 2rem; padding: 0; }
.footer-links a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); }
.site-footer .fine { font-size: 0.78rem; color: var(--ink-faint); margin: 0.4rem 0 0; }

.social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  margin-bottom: 1.5rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.social:hover { background: var(--tan-soft); border-color: var(--tan); transform: translateY(-2px); }
.social:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.social svg { color: var(--ink-mute); }
.site-footer .verse { font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.75rem; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.35s;
}
.toast.is-open { transform: translate(-50%, 0); opacity: 1; }

/* ---------- modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(78, 58, 33, 0.32);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-card {
  width: min(100%, 480px);
  padding: 2.75rem 2.25rem 2.25rem;
  background: var(--cream);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.4s var(--ease);
}
.modal.is-open .modal-card { transform: none; }
.modal-card .mark { width: 66px; margin: 0 auto 1.25rem; }
.modal-card .script { font-size: 3.1rem; margin-bottom: 0.5rem; }
.modal-card p { color: var(--ink-mute); margin: 0 0 1.5rem; }
.modal-card .ref {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.15rem;
  border: 1px dashed var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.modal-actions { display: flex; flex-direction: column; gap: 0.7rem; }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .nav-links { gap: 1.6rem; }
  .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}

@media (max-width: 860px) {
  section { padding: 4.5rem 0; }
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.5rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links a::after { display: none; }
  .cart-link span.label { display: none; }
  .cart-link { padding: 0.6rem 0.9rem; }

  /* single column below this width */
  .menu-grid { grid-template-columns: minmax(0, 1fr); gap: 3.25rem; }
  .menu-grid > .menu-row:last-child:nth-child(odd) {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 0;
    border-top: 0;
  }
  .menu-grid .arch,
  .menu-grid > .menu-row:last-child:nth-child(odd) .arch { aspect-ratio: 3 / 4; }
  .menu-figure .arch,
  .menu-figure .thumb-strip { max-width: 340px; margin-inline: auto; }
  .about-hero { grid-template-columns: 1fr; }
  .about-copy { text-align: center; }
  .about-copy .hero-actions { justify-content: center !important; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .brand img.word { display: none; }
  .hero { padding: 2.5rem 0 3.5rem; }
  .thumb-strip { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .portrait .stamp { width: 84px; height: 84px; font-size: 0.53rem; right: -2px; }
}

/* ============================================================
   Touch + small-screen layer

   Most visitors arrive on a phone, so these are corrections for
   real device behaviour rather than just narrower boxes:
   hover effects that stick after a tap, tap targets under 44px,
   iOS zooming any input whose font-size is below 16px, and the
   notch / home-indicator safe areas.
   ============================================================ */

/* 1. Hover belongs to devices that actually have a pointer.
      On touch, :hover latches after a tap and the element stays
      in its hover state until you tap elsewhere. */
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: none; }
  .arch:hover img { transform: none; }
  .add:hover { background: var(--white); color: var(--ink-mute); border-color: var(--line); }
  .cart-link:hover, .option:hover { background: inherit; border-color: var(--line); }
  .social:hover { background: var(--white); border-color: var(--line); transform: none; }
  .nav-links a:hover::after { transform: scaleX(0); }
  .carousel-btn:hover { background: var(--white); border-color: var(--line); }
}

/* 2. Give every control a real finger-sized hit area and kill the
      300ms tap highlight flash. */
@media (pointer: coarse) {
  * { -webkit-tap-highlight-color: rgba(78, 58, 33, 0.06); }

  .btn { padding-block: 1.05rem; }
  .btn-sm { padding-block: 0.85rem; }

  .add {
    min-height: 46px;
    padding-inline: 1.15rem;
    font-size: 0.66rem;
  }
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .check { min-height: 44px; }
  .qty button:not(.li-remove) { width: 44px; height: 44px; font-size: 1.1rem; }
  .qty .n { min-width: 40px; font-size: 1rem; }
  .li-remove {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: 1rem;
  }
  .carousel-btn { width: 52px; height: 52px; }

  /* the logo mark is a narrow arch — give the home link a real hit area */
  .brand { min-height: 44px; padding-inline: 0.5rem; margin-left: -0.5rem; }
  .cart-link { min-height: 44px; }
  .nav-toggle { width: 46px; height: 46px; }
  .crumbs a,
  .link-btn,
  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .footer-links a { padding-inline: 0.5rem; }
  .check { padding-block: 0.55rem; }
  .check input { width: 20px; height: 20px; }
  .option { padding: 1.15rem 1.25rem; }

  /* a 7px dot is not tappable — pad it out without making it look bigger */
  .carousel-dots { gap: 0; flex-wrap: wrap; justify-content: center; max-width: 100%; }
  .carousel-dots button {
    width: 32px;
    height: 44px;
    border-radius: 0;
    background: none;
    position: relative;
  }
  .carousel-dots button::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line);
    transform: translate(-50%, -50%);
    transition: background 0.25s, transform 0.25s;
  }
  .carousel-dots button[aria-current="true"] { background: none; transform: none; }
  .carousel-dots button[aria-current="true"]::after {
    background: var(--ink);
    transform: translate(-50%, -50%) scale(1.35);
  }
}

/* 3. iOS Safari zooms the whole page when it focuses an input whose
      computed font-size is under 16px. 1rem is exactly 16px, so this
      is really a guard against anything shrinking it later. */
@media (max-width: 860px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="number"],
  select,
  textarea { font-size: 16px; }
}

/* 4. Notch, rounded corners and the home indicator. */
@supports (padding: max(0px)) {
  .wrap, .wrap-narrow {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  .site-footer { padding-bottom: max(2.5rem, env(safe-area-inset-bottom)); }
  .toast { bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1rem)); }
}

/* 5. Phones, portrait. */
@media (max-width: 600px) {
  section { padding: 3.5rem 0; }
  .wrap, .wrap-narrow { width: min(100% - 2rem, var(--wrap)); }
  html { scroll-padding-top: 80px; }

  .nav { min-height: 66px; }
  .brand img.mark { height: 38px; }

  .hero-logo { width: min(260px, 72vw); }
  .hero-tagline { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-note { font-size: 0.62rem; letter-spacing: 0.12em; text-align: center; }

  .section-head { margin-bottom: 2.5rem; }
  .section-head .script { font-size: clamp(2.6rem, 13vw, 3.4rem); }

  .menu-cat-title { font-size: 1.25rem; letter-spacing: 0.16em; }
  /* price + Add button drop under the item name instead of squeezing it */
  .price-row { flex-wrap: wrap; row-gap: 0.5rem; }
  .price-row .name { flex: 1 1 100%; }
  .price-row .leader { order: 2; }
  .price-row .price { order: 1; }
  .price-row .add { order: 3; margin-left: auto; }
  .price-list li { padding: 0.9rem 0; }

  .chips { gap: 0.4rem; }
  .chips li { font-size: 0.78rem; padding: 0.4rem 0.85rem; }

  .policy-grid { gap: 2rem 1.5rem; }
  .form-card { padding: 1.35rem 1.15rem; border-radius: 14px; }
  .form-card h2 { font-size: 1.2rem; margin-bottom: 1.25rem; }

  .summary-head, .summary-body { padding-inline: 1.15rem; }
  .summary-foot { padding: 1.15rem; }
  .line-item img { width: 48px; height: 48px; }

  /* 12 dots do not fit a phone and cannot be tapped accurately —
     swap the row for a position counter and let people swipe. */
  .carousel-dots { display: none; }
  .carousel-counter { display: inline-block; }
  .carousel-slide { flex: 0 0 78vw; }
  .portrait { width: min(320px, 82vw); }

  .modal { padding: 1rem; }
  .modal-card { padding: 2rem 1.35rem 1.75rem; }
  .modal-card .script { font-size: 2.6rem; }

  .toast { left: 1rem; right: 1rem; transform: translateY(140%); text-align: center; }
  .toast.is-open { transform: translateY(0); }
}

/* 6. Very small phones (iPhone SE and similar). */
@media (max-width: 380px) {
  .wrap, .wrap-narrow { width: min(100% - 1.5rem, var(--wrap)); }
  .section-head .script { font-size: 2.4rem; }
  .cart-link { padding: 0.55rem 0.75rem; }
  .option { flex-wrap: wrap; row-gap: 0.5rem; }
  .option .tag { margin-left: auto; }
}

/* 7. Phone in landscape — short viewport, don't waste it on padding. */
@media (max-height: 500px) and (orientation: landscape) {
  section { padding: 2.5rem 0; }
  .hero { padding: 1.5rem 0 2.5rem; }
  .hero-logo { width: min(180px, 30vw); }
  .summary { position: static; }
}
