:root {
  /* warm-modern preset */
  --color-bg: #fbf7f2;
  --color-text: #1c1410;
  --color-text-muted: #5b4d42;
  --color-primary: #8b4f2e;
  --color-primary-contrast: #fbf7f2;
  --color-accent: #c9a14a;
  --color-surface: #f1e9df;
  --color-border: #d8c9b8;
  --color-success: #2f7d3a;
  --color-error: #9a2929;

  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;

  --container-max: 1200px;

  --shadow-sm: 0 1px 2px rgba(28, 20, 16, 0.06);
  --shadow-md: 0 4px 12px rgba(28, 20, 16, 0.08);

  --duration-fast: 150ms;
  --duration-base: 250ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1c1410;
    --color-text: #fbf7f2;
    --color-text-muted: #d9b977;
    --color-primary: #e89968;
    --color-accent: #7a5a1f;
    --color-surface: #2a1f17;
    --color-border: #3a2e22;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0;
}

a { color: var(--color-primary); }
a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  padding: var(--space-2) var(--space-4);
  z-index: 1000;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

button, .btn {
  font: inherit;
  cursor: pointer;
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  min-height: 44px;
  transition: transform var(--duration-fast);
}
button:hover, .btn:hover { transform: translateY(-1px); }
button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}


/* --- Performance: skip initial layout/paint of below-the-fold sections.
   Above-the-fold (hero, highlights) excluded so they render instantly.
   contain-intrinsic-size keeps the scrollbar stable (no CLS). --- */
.reviews, .story, .hours, .menu, .gallery, .loc, .order, .reserve, .contact-form, .footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

/* 2026 typography defaults: balanced headings + pretty body wrap.
   text-wrap: balance distributes lines so the last line is similar length to others
   (no orphan word). pretty avoids single-word orphans in paragraphs. Both are
   progressive enhancements: browsers without support fall back gracefully. */
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p, li, blockquote, dd { text-wrap: pretty; }
