/* ==========================================================================
   HAVE A SEAT — Base: reset, typography, texture, layout primitives, utils
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  position: relative;
}

/* Warm paper grain — a faint fixed overlay for atmosphere ----------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--c-clay-soft); color: var(--c-clay-deep); }

/* Focus visibility ------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--seat-accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ---- Headings ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--c-ink);
  font-optical-sizing: auto;
}
h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 144;
}
.serif { font-family: var(--font-display); }
.italic { font-style: italic; }

/* ---- Text utilities ---------------------------------------------------- */
.eyebrow {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--seat-accent-deep);
}
.lead { font-size: var(--fs-md); line-height: var(--lh-loose); color: var(--c-ink-soft); }
.muted { color: var(--c-ink-muted); }
.soft  { color: var(--c-ink-soft); }
.small { font-size: var(--fs-sm); }
.tiny  { font-size: var(--fs-xs); }
.center { text-align: center; }
.balance { text-wrap: balance; }
.accent { color: var(--seat-accent-deep); }
.clay { color: var(--c-clay-deep); }

/* ---- Layout primitives ------------------------------------------------- */
.wrap { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--s-5); }
.wrap-wide { max-width: 1360px; }
.wrap-narrow { max-width: 760px; }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.stack-sm > * + * { margin-top: var(--s-2); }
.row { display: flex; align-items: center; gap: var(--s-3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.row-wrap { flex-wrap: wrap; }
.row-top { align-items: flex-start; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; }
.gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); } .gap-6 { gap: var(--s-6); }
.grid { display: grid; gap: var(--s-5); }
.hidden { display: none !important; }

.section { padding-block: var(--s-9); position: relative; z-index: 2; }
.divider { height: 1px; background: var(--c-line); border: 0; }

/* ---- Reveal-on-load (staggered) ---------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal var(--t-slow) var(--ease-out) forwards; }
.reveal.d1 { animation-delay: 60ms; }
.reveal.d2 { animation-delay: 130ms; }
.reveal.d3 { animation-delay: 210ms; }
.reveal.d4 { animation-delay: 300ms; }
.reveal.d5 { animation-delay: 400ms; }
.reveal.d6 { animation-delay: 520ms; }
@keyframes reveal { to { opacity: 1; transform: none; } }

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

/* ---- The seat / chair glyph mark --------------------------------------- */
.seat-mark { width: 1em; height: 1em; display: inline-block; color: var(--seat-accent); }
