/* ==========================================================================
   BASE — tokens, reset, typography, layout primitives
   Loaded on every page. Keep this file lean.

   Tokens below are reconciled against the two approved designs in _design/.
   Where a value differed from the original scaffold, the design wins and the
   change is noted inline.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* Brand */
  --navy:        #0a3a63;
  --navy-mid:    #0c467f;  /* alternating quick-link tiles */
  --navy-dark:   #072c4c;
  --navy-link:   #0d5aa7;
  --gold:        #c19a3e;
  --gold-dark:   #a8842f;
  --cream:       #faf8f3;  /* was #f0ece4 — both designs use #faf8f3 */

  /* Text */
  --ink:         #1b2733;
  --ink-body:    #4a5763;  /* lede and quote copy */
  --ink-muted:   #5c6b7a;  /* supporting copy */
  --ink-light:   #8a8778;  /* captions, table headers — warm grey, was #8a95a1 */
  --on-dark:       #ffffff;
  --on-dark-mut:   #c7d4e2;  /* body copy on navy — was #b9cbe0 */
  --on-dark-soft:  #93a7bd;
  --on-dark-faint: #6f88a2;  /* footer column headings */
  --on-dark-accent:#a9c2db;  /* quick-link kickers */

  /* Surfaces */
  --surface:     #ffffff;
  --surface-alt: #faf8f3;

  /* Rules
     The designs are built on hairlines, not shadows. Three weights:
     structural ink rules, soft rules inside cream areas, and rules on navy. */
  --rule:        #1b2733;
  --rule-soft:   #e2dccd;
  --rule-cream:  #e6ddca;
  --rule-navy:   #2c5378;

  /* Image placeholders */
  --ph-bg:       #eef1ee;
  --ph-rule:     #b7bcb2;
  --ph-text:     #8a8f84;

  /* Layout */
  --wrap:        1180px;
  --wrap-narrow: 760px;
  --gutter:      46px;
  --radius:      0;        /* the designs are square-cornered throughout */

  /* Type */
  --font-body:    Archivo, system-ui, -apple-system, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;

  /* Space scale */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 16px;  --sp-4: 24px;
  --sp-5: 32px;  --sp-6: 48px;  --sp-7: 64px;  --sp-8: 96px;

  --sp-section: 56px;      /* standard section rhythm in both designs */

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* Breakpoints, settled across both designs:
    1180px — nav tightens (eight items plus the Join button is a tight fit)
    1100px — primary nav collapses to the burger
     900px — multi-column grids drop to one or two columns
     600px — everything single column
   The designs used 900/820 and 520/460; these are reconciled to 900 and 600. */

@media (max-width: 900px) {
  :root { --gutter: 22px; --sp-section: 44px; }
}

/* --- Reset -------------------------------------------------------------- */

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

/* Scrollbars. The OS default is close to invisible against white on desktop,
   so give it the brand navy in both the standard and WebKit syntaxes. */
html { scrollbar-color: var(--navy) var(--cream); }

::-webkit-scrollbar { width: 13px; height: 13px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--navy); border: 3px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: var(--navy-dark); }

body {
  margin: 0;
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.2em; }

/* --- Typography --------------------------------------------------------- */
/* Headings are Archivo bold with tight tracking. Cormorant is reserved for
   prestige moments — pull-quotes, event day numbers, step numerals, figures —
   applied with .display rather than by element. */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 var(--sp-3);
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.01em; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
h5, h6 { font-size: 14px; }

p { margin: 0 0 var(--sp-4); }

a { color: var(--navy-link); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--navy); }

blockquote {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  line-height: 1.4;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  margin: var(--sp-5) 0;
  padding-left: var(--sp-4);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--sp-3);
}

.display { font-family: var(--font-display); }

.lede { font-size: 17px; line-height: 1.7; color: var(--ink-body); }

/* --- Layout ------------------------------------------------------------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section        { padding: var(--sp-section) 0; }
.section--tight { padding: calc(var(--sp-section) * .8) 0; }

/* Sections are separated by a hairline, not by whitespace alone. */
.section--rule  { border-top: 1px solid var(--rule); }

.section--cream { background: var(--cream); }
.section--navy  { background: var(--navy); color: var(--on-dark-mut); }
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--on-dark); }
.section--navy a  { color: var(--on-dark); }

.grid { display: grid; gap: var(--sp-4); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }

/* --- Accessibility ------------------------------------------------------ */

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px; left: var(--sp-3);
  z-index: 999;
  background: var(--navy);
  color: var(--on-dark);
  padding: var(--sp-2) var(--sp-4);
}
.skip-link:focus { top: var(--sp-3); color: var(--on-dark); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
