/* =========================================================
   MAIN.CSS — Design tokens, resets, base type, layout primitives
   The Duke's Masterclass
========================================================= */

:root {
  /* ---- Color: dark dominates, sky blue guides, gold whispers ---- */
  --void:       #05070B;   /* primary background */
  --ink:        #0B0F16;   /* elevated panels */
  --ink-2:      #10151D;   /* secondary background / cards */
  --ink-3:      #161C26;   /* hover / raised */

  --bone:       #F4EFE6;   /* headline white — warm */
  --paper:      #E7E9EE;   /* body white — cool */
  --mist:       #CBD1DB;   /* muted / secondary text — this is the main body-copy color site-wide, brightened for legibility */
  --mist-dim:   #98A0AC;   /* tertiary / caption text — brightened for legibility */

  --line:       rgba(244, 239, 230, 0.10);
  --line-strong:rgba(244, 239, 230, 0.22);

  --sky:        #6D89B7;   /* primary accent — brand color — used sparingly */
  --sky-bright: #96AACB;
  --sky-deep:   #4A5D7C;
  --sky-dim:    rgba(109, 137, 183, 0.12);

  --gold:       #C7A24B;   /* ceremonial accent — host/keynote labels only */
  --gold-dim:   rgba(199, 162, 75, 0.16);

  /* ---- Type ---- */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* ---- Motion ---- */
  --ease-out:     cubic-bezier(.16,.8,.24,1);
  --ease-in-out:  cubic-bezier(.65,0,.35,1);
  --dur-slow:     1.1s;
  --dur-med:      .6s;
  --dur-fast:     .3s;

  /* ---- Layout ---- */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --edge: clamp(1.25rem, 5vw, 5rem);
  --max: 1600px;
  --radius: 2px;
 
  --radius-img: 12px;   /* soft corners for contained/card images (not full-bleed heroes) */
}

/* ---------------------------------------------------------
   Reset
--------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

html, body { height: 100%; }
body {
  background: var(--void);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-anchor: none;
}

/* ---------------------------------------------------------
   Skip link / a11y
--------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  background: var(--sky);
  color: var(--void);
  padding: .75rem 1.25rem;
  z-index: 999;
  font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.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;
}

:focus-visible {
  outline: 1.5px solid var(--sky);
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   Typography scale
--------------------------------------------------------- */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bone);
}

.type-hero {
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.98;
  font-weight: 400;
}

.type-h1 { font-size: clamp(2.5rem, 6vw, 5.25rem); line-height: 1.12; }
.type-h2 { font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: 1.16; }
.type-h3 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.2; }

.type-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
  
  display: inline-flex;
  align-items: center;
  gap: .6em;
}



.type-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--mist);
  font-weight: 300;
  max-width: 42ch;
}

.type-body { font-size: 1rem; color: var(--mist); max-width: 60ch; }
.type-caption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--mist-dim);
}

em, .italic { font-style: italic; color: var(--sky-bright); font-family: var(--font-display); }

/* ---------------------------------------------------------
   Layout primitives
--------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.scene {
  position: relative;
  padding-block: clamp(5rem, 12vh, 9rem);
  border-top: 1px solid var(--line);
}
.scene--flush { border-top: none; }
.scene--tight { padding-block: clamp(3rem, 6vh, 4rem); }
.scene--ink { background: var(--ink-2); }

.scene-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(1.5rem, 5vw, 6rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.scene-head__right { font-family: var(--font-body); color: var(--mist); font-weight: 400; }

/* number/labels — used only where content is genuinely sequential (the 11 scenes / editions) */
.scene-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mist-dim);
  letter-spacing: 0.15em;
}

.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

::selection { background: var(--sky); color: var(--void); }

/* Scrollbar, refined */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 4px; }

/* Scrollbar, refined */
/* ---------------------------------------------------------
   Scrollbar — thin, dark, sky-blue on hover. Covers both
   webkit browsers and Firefox (scrollbar-color/-width), since
   the site previously only styled webkit, leaving Firefox on
   the default system scrollbar.
--------------------------------------------------------- */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--ink-3) var(--void);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb {
  background: var(--ink-3);
  border-radius: 999px;
  border: 2px solid var(--void);
  background-clip: padding-box;
  transition: background .3s ease;
}
::-webkit-scrollbar-thumb:hover { background: var(--sky-deep); }
::-webkit-scrollbar-corner { background: var(--void); }
 