/* Reset, typography, layout primitives. */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
  /* Footer sits at the bottom of the viewport on short pages. */
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }

img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

a { color: var(--action-primary); text-decoration: none; }
a:hover { color: var(--action-primary-hover); }

/* Visible focus on every interactive element: 2px action/primary, 2px offset. */
:focus { outline: none; }
:focus-visible {
  outline: var(--focus-ring-width) solid var(--action-primary);
  outline-offset: var(--focus-ring-offset);
}

/* Headings and alerts receive focus from script only (to announce them), not as controls. */
h1[tabindex="-1"]:focus-visible, h2[tabindex="-1"]:focus-visible, .alert[tabindex="-1"]:focus-visible { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--surface-card); color: var(--text-primary);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Text styles (one class per Figma text style) ---------- */
.t-display, .t-h1, .t-h2, .t-h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-primary);
}
.t-display { font-size: var(--display-size); line-height: var(--display-lh); }
.t-h1 { font-size: var(--h1-size); line-height: var(--h1-lh); }
.t-h2 { font-size: var(--h2-size); line-height: var(--h2-lh); }
.t-h3 { font-size: var(--h3-size); line-height: var(--h3-lh); }
.t-h4 { font-family: var(--font-sans); font-weight: 700; font-size: var(--h4-size); line-height: var(--h4-lh); }
.t-body-lg { font-size: var(--body-lg-size); line-height: var(--body-lg-lh); }
.t-body { font-size: var(--body-size); line-height: var(--body-lh); }
.t-small { font-size: var(--body-sm-size); line-height: var(--body-sm-lh); }
.t-small-medium { font-size: var(--body-sm-size); line-height: var(--body-sm-lh); font-weight: 500; }
.t-button { font-size: var(--button-size); line-height: var(--button-lh); font-weight: 700; }
.t-eyebrow {
  font-size: var(--eyebrow-size); line-height: var(--eyebrow-lh); font-weight: 700;
  letter-spacing: var(--eyebrow-tracking); text-transform: uppercase;
  color: var(--text-muted);
}
.t-hand {
  font-family: var(--font-hand); font-weight: 700;
  font-size: var(--hand-size); line-height: var(--hand-lh);
  color: var(--action-primary);
}
.t-price { font-size: var(--price-size); line-height: var(--price-lh); font-weight: 700; }
.muted { color: var(--text-muted); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(840px + var(--gutter) * 2); }

.section { padding-block: var(--section-pad); }
.section--tight { padding-block: var(--section-pad-tight); }
/* ---------- Colour blocks: full-width section backgrounds ----------
   Contrast (WCAG AA): on peach, blush and butter (full or soft) all text is
   text/primary (cocoa, 6.8:1 or better). text/muted and action/primary drop
   below 4.5:1 on these colours, so they are only used on cream and card surfaces. */
.block--peach { background: var(--brand-peach); }
.block--blush { background: var(--brand-blush); }
.block--butter { background: var(--brand-butter); }
.block--peach-soft { background: var(--surface-peach-soft); }
.block--blush-soft { background: var(--surface-blush-soft); }
.block--cream { background: var(--surface-page); }

:is(.block--peach, .block--blush, .block--butter, .block--peach-soft, .block--blush-soft)
  :is(.muted, .t-eyebrow, .breadcrumb, .breadcrumb a, .hero__lede, .hero__note, .feature__copy > p,
      .menu-section__note, .swipe-hint, .sent__body, .policies__head p, .order-header__inner p) {
  color: var(--text-primary);
}

.section-head { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-7); }
.section-head--center { align-items: center; text-align: center; }
@media (max-width: 767px) {
  .section-head { margin-bottom: var(--space-5); }
  .section-head--center { align-items: flex-start; text-align: left; }
}
.section-head--row {
  flex-direction: row; align-items: flex-end; justify-content: space-between;
  gap: var(--space-5); flex-wrap: wrap;
}
.section-head__text { display: flex; flex-direction: column; gap: var(--space-3); }

.stack > * + * { margin-top: var(--space-4); }

/* Viewport-specific content swaps (copy differs between mobile and desktop wireframes). */
@media (max-width: 767px) { .only-desktop { display: none !important; } }
@media (min-width: 768px) { .only-mobile { display: none !important; } }
