/* ============================================================
   common.css — site-wide tokens only
   Colors, type, spacing, resets, shared primitives (container,
   buttons). No page- or section-specific styling lives here.
   ============================================================ */

:root {
  /* --- Color: muted, low-saturation family + one warm gold accent --- */
  --paper:        #F6F3EC;  /* warm off-white, main background */
  --paper-2:      #EFE9DC;  /* slightly deeper panel tone */
  --ink:          #322F2A;  /* headings — warm near-charcoal */
  --ink-soft:     #4A494A;  /* body text (brand dark grey) */
  --muted:        #6F6C64;  /* secondary / supporting text */
  --blue:         #2F4A6B;  /* navy accent, 2026-09-15 comparison for Chris (teal blue was #6B868C) */
  --gold:         #B5AE7B;  /* established warm gold accent */
  --gold-deep:    #8C8551;  /* gold for text/links on light (contrast) */
  --taupe:        #7B795A;
  --dark:         #4A494A;  /* brand Dark Grey (palette sheet) — approved dark surface */
  --line:         rgba(50, 47, 42, 0.14);   /* hairlines */
  --line-soft:    rgba(50, 47, 42, 0.08);

  /* --- Type --- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* --- Spacing scale --- */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6.5rem;

  /* --- Layout --- */
  --container: 1200px;
  --radius: 12px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1.0625rem;      /* ~17px */
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }
figure, blockquote { margin: 0; }

a { color: inherit; text-decoration: none; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* small overline / eyebrow label used across sections */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease,
              border-color .25s ease, transform .25s ease;
}

.btn--primary {
  background: var(--blue);
  color: #FBF9F4;
}
.btn--primary:hover { background: #24395A; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(50,47,42,0.03); }

/* ---------- Hero entrance (plays on load; heroes are above the fold) ---------- */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFigure {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Scroll reveal (added by site.js; see reduced-motion guard) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
