/* base.css — reset, tokens, typography, utilities — Royal Cafe Westminster */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* ---------- tokens ---------- */
:root {
  --cream:   #F0ECE3;
  --cream-2: #E9E3D7;
  --paper:   #F7F4EE;
  --ink:     #1E2022;
  --ink-soft:#4A4D50;
  --slate:   #596E79;
  --clay:    #9A5B3C;
  --line:    rgba(30,32,34,.14);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 10vw, 120px);
  --radius-btn: 40px;
}

/* ---------- base typography ---------- */
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.1;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; }
h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; line-height: 1.35; }
h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; }

p { max-width: 62ch; }
strong { font-weight: 700; }
em { font-style: italic; }

/* ---------- utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-block;
  margin-bottom: 1rem;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.bg-alt { background: var(--cream-2); }

/* reveal-on-scroll — only hidden when JS is active (html.js); no-JS = always visible */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .reveal.in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
