/* ============================================================
   Eatery Accessibility — design tokens
   Archetype: Precision Minimal, with a Dense Utility evidence block.
   Light mode only. Every text pair below is verified >= 4.5:1.
   ============================================================ */
:root {
  /* Color — roles, not appearances */
  --c-canvas:    #ffffff;
  --c-surface:   #f4f7f8;
  --c-surface-2: #e6edf0;
  --c-dark:      #11161c;
  --c-ink:       #14181d;  /* 17.8:1 on canvas */
  --c-ink-soft:  #4b555f;  /*  7.6:1 on canvas */
  --c-ink-faint: #5c666f;  /*  5.9:1 on canvas */
  --c-on-dark:      #ffffff;
  --c-on-dark-soft: #c3ced8; /* 11.4:1 on dark */
  --c-brand:     #1b3a5c;  /* 11.6:1 both ways */
  --c-brand-ink: #ffffff;
  --c-accent:    #9a3b12;  /*  7.0:1 on canvas — used sparingly */
  --c-line:        rgba(20,24,29,.14);
  --c-line-strong: rgba(20,24,29,.28);

  /* Type — one family, many weights */
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1.0625rem;
  --t-md:   1.3125rem;
  --t-lg:   1.625rem;
  --t-xl:   clamp(1.9rem, 1.4rem + 2.2vw, 2.5rem);
  --t-2xl:  clamp(2.2rem, 1.5rem + 3.2vw, 3.3rem);
  --t-3xl:  clamp(2.15rem, 1.5rem + 4.4vw, 4.4rem);

  --lh-tight: 1.06;
  --lh-snug:  1.22;
  --lh-body:  1.6;
  --ls-tight: -0.03em;
  --ls-body:  -0.011em;
  --ls-caps:   0.16em;

  /* Space — one scale */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px; --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 160px;
  --section-y: clamp(56px, 7vw, 112px);
  --gutter:    clamp(20px, 4vw, 48px);

  /* Containers */
  --w-prose: 66ch;
  --w-text:  940px;
  --w-wide:  1200px;

  /* Shape — two radii only */
  --r-sm: 4px;
  --r-lg: 14px;

  /* Motion */
  --ease-soft: cubic-bezier(.28,.11,.32,1);
  --d-fast: 160ms;
  --d-base: 320ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-canvas);
  color: var(--c-ink);
  font: 400 var(--t-base)/var(--lh-body) var(--f-body);
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; letter-spacing: var(--ls-tight); font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

::selection { background: var(--c-brand); color: var(--c-brand-ink); }
:focus-visible {
  outline: 3px solid var(--c-brand);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: #ffffff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--w-wide); margin-inline: auto; padding-inline: var(--gutter); }
.container--text { max-width: var(--w-wide); }
/* Text-led sections keep the same left gutter as wide sections, and cap
   their own measure, so every section starts on the same vertical line. */
.container--text > *,
.container--text .display,
.container--text .h2,
.container--text .lead,
.container--text .not-list,
.container--text .numbered,
.container--text .table-wrap,
.container--text > p { max-width: var(--w-text); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(36px, 4vw, 64px); }
.section--surface { background: var(--c-surface); }
.section--dark { background: var(--c-dark); color: var(--c-on-dark); }
.prose { max-width: var(--w-prose); }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }

.eyebrow {
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--c-ink-faint);
  margin-bottom: var(--s-4);
}
.section--dark .eyebrow { color: var(--c-on-dark-soft); }

.display { font-size: var(--t-3xl); line-height: var(--lh-tight); }
.h2 { font-size: var(--t-2xl); line-height: var(--lh-snug); }
.h3 { font-size: var(--t-lg); line-height: var(--lh-snug); letter-spacing: -0.02em; }
.lead { font-size: var(--t-md); line-height: 1.42; color: var(--c-ink-soft); letter-spacing: -0.015em; }
.section--dark .lead { color: var(--c-on-dark-soft); }
.small { font-size: var(--t-sm); color: var(--c-ink-faint); }
.mono { font-family: var(--f-mono); font-size: var(--t-sm); letter-spacing: 0; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  z-index: 100;
  transform: translateY(-200%);
  background: var(--c-brand);
  color: var(--c-brand-ink);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Links & buttons ---------- */
a { color: var(--c-brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.section--dark a { color: #ffffff; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font: 600 var(--t-base)/1 var(--f-body);
  letter-spacing: -0.01em;
  padding: 15px 24px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--d-fast) var(--ease-soft), transform var(--d-fast) var(--ease-soft);
}
.btn--primary { background: var(--c-brand); color: var(--c-brand-ink); }
.btn--primary:hover { background: #12293f; }
.btn--secondary { background: transparent; color: var(--c-brand); border-color: var(--c-line-strong); }
.btn--secondary:hover { background: var(--c-surface); }
.btn:active { transform: scale(.985); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--c-line);
  background: var(--c-canvas);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 68px;
  flex-wrap: wrap;
  padding-block: var(--s-3);
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .45em;
  font-weight: 700;
  font-size: var(--t-md);
  letter-spacing: -0.03em;
  color: var(--c-ink);
  text-decoration: none;
}
.wordmark span { font-weight: 400; font-size: var(--t-sm); letter-spacing: 0.02em; color: var(--c-ink-soft); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: var(--s-5); list-style: none; align-items: center; }
.site-nav a { color: var(--c-ink-soft); text-decoration: none; font-size: var(--t-sm); font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--c-ink); text-decoration: underline; }
.site-nav .btn { font-size: var(--t-sm); padding: 11px 18px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 128px) clamp(48px, 6vw, 96px); }
.hero h1 { max-width: 17ch; }
.hero .lead { max-width: 58ch; margin-top: var(--s-5); }
.hero .btn-row { margin-top: var(--s-7); }
.hero__note { margin-top: var(--s-5); max-width: 56ch; }

/* ---------- Evidence panel (Dense Utility note) ---------- */
.evidence {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-lg);
  background: #171e26;
  padding: var(--s-6);
}
.evidence__caption { margin-top: var(--s-4); font-size: var(--t-sm); color: var(--c-on-dark-soft); }
.swatch-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.chip {
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.28);
  color: var(--c-on-dark);
}
.variant-demo { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.variant-demo__btn {
  font: 500 var(--t-sm)/1 var(--f-body);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.4);
  background: transparent;
  color: var(--c-on-dark);
}
.variant-demo__btn--ring { outline: 3px solid #ffffff; outline-offset: 3px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--s-6); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.split .h2 { font-size: var(--t-xl); }
.split { display: grid; gap: var(--s-8); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--s-6); } }

.block h3 { margin-bottom: var(--s-3); }
.block p, .block li { color: var(--c-ink-soft); }
.block__rule { height: 2px; width: 40px; background: var(--c-brand); margin-bottom: var(--s-5); }

/* ---------- Lists ---------- */
.list { list-style: none; }
.list li { padding-left: var(--s-6); position: relative; }
.list li + li { margin-top: var(--s-3); }
.list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 10px; height: 2px;
  background: var(--c-brand);
}
.section--dark .list li::before { background: var(--c-on-dark); }

.numbered { list-style: none; counter-reset: step; }
.numbered li { counter-increment: step; position: relative; padding-left: 56px; }
.numbered li + li { margin-top: var(--s-6); }
.numbered li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  font: 600 var(--t-md)/1 var(--f-mono);
  color: var(--c-brand);
  letter-spacing: 0;
}

/* ---------- "What we are not" ---------- */
.not-list { list-style: none; border-top: 1px solid var(--c-line-strong); }
.not-list > li { border-bottom: 1px solid var(--c-line-strong); padding-block: var(--s-5); }
.not-list h3 { font-size: var(--t-md); letter-spacing: -0.02em; }
.not-list p { color: var(--c-ink-soft); margin-top: var(--s-2); max-width: var(--w-prose); }

/* ---------- Stats ---------- */
.stat-grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.stat { border-top: 2px solid var(--c-ink); padding-top: var(--s-4); }
.stat__num { font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.03em; line-height: 1; display: block; }
.stat p { font-size: var(--t-sm); color: var(--c-ink-soft); margin-top: var(--s-3); }
.stat a { font-size: var(--t-xs); }

/* ---------- Price ---------- */
.price-card {
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  background: var(--c-canvas);
}
.price-card--muted { background: var(--c-surface); border-style: dashed; }
.price-card__amount { font-size: var(--t-2xl); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.price-card__unit { font-size: var(--t-sm); color: var(--c-ink-faint); display: block; margin-top: var(--s-3); }
.price-card h3 { margin-bottom: var(--s-4); }
.price-card .list { margin-top: var(--s-5); }
.price-card .btn { margin-top: var(--s-6); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: var(--t-sm); }
caption { text-align: left; font-size: var(--t-sm); color: var(--c-ink-faint); margin-bottom: var(--s-3); }
th, td { text-align: left; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-line); vertical-align: top; }
th { font-weight: 600; border-bottom-color: var(--c-line-strong); }

/* ---------- Form ---------- */
.form { max-width: 560px; }
.container--text .form { max-width: 560px; }
.field + .field { margin-top: var(--s-5); }
.field label { display: block; font-weight: 600; font-size: var(--t-sm); margin-bottom: var(--s-2); }
.field .hint { display: block; font-size: var(--t-sm); color: var(--c-ink-faint); margin-bottom: var(--s-2); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%;
  font: 400 var(--t-base)/1.4 var(--f-body);
  color: var(--c-ink);
  background: var(--c-canvas);
  padding: 13px 14px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-sm);
}
.field textarea { min-height: 120px; resize: vertical; }
.form .btn { margin-top: var(--s-6); }
.form__status { margin-top: var(--s-5); font-size: var(--t-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-surface); border-top: 1px solid var(--c-line); padding-block: var(--s-8) var(--s-7); }
.site-footer h2 { font-size: var(--t-sm); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--c-ink-faint); margin-bottom: var(--s-4); font-weight: 600; }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: var(--s-2); }
.site-footer a { color: var(--c-ink-soft); }
.site-footer .footer-grid { display: grid; gap: var(--s-7); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.site-footer p { color: var(--c-ink-soft); font-size: var(--t-sm); }
.footer-legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); justify-content: space-between; }
.footer-legal p { font-size: var(--t-xs); }

/* ---------- Footnote references ---------- */
.fn { font-size: .78em; vertical-align: super; line-height: 0; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Nav link color must not win over the primary button fill.
   Caught by axe: the nav CTA was rendering ink-soft on brand. */
.site-nav a.btn--primary { color: var(--c-brand-ink); text-decoration: none; }
.site-nav a.btn--primary:hover { color: var(--c-brand-ink); text-decoration: underline; }
