/* Winchesters — base: fonts, tokens, reset, type. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette — the four brand colours, nothing else */
  --navy: #171F46;
  --gold: #D5B568;
  --black: #050505;
  --white: #F5F5F7;

  /* roles */
  --ink: var(--white);
  --ink-2: rgba(245, 245, 247, 0.66);
  --ink-3: rgba(245, 245, 247, 0.4);
  --line: rgba(245, 245, 247, 0.14);
  --gold-line: rgba(213, 181, 104, 0.45);

  /* type */
  --sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --t-note: 0.75rem;
  --t-small: 0.875rem;
  --t-body: 1.0625rem;
  --t-lead: clamp(1.125rem, 0.98rem + 0.62vw, 1.5rem);
  --t-h3: clamp(1.5rem, 1.18rem + 1.35vw, 2.375rem);
  --t-h2: clamp(2.25rem, 1.2rem + 4.4vw, 5.25rem);
  --t-h1: clamp(3.25rem, 1rem + 9.4vw, 10rem);

  /* space and motion */
  --gutter: clamp(20px, 4.2vw, 64px);
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  /* the slope of the mark's strokes: 1 across for 2 down */
  --slope: -26.565deg;
}

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

html {
  background: var(--black);
  color-scheme: dark;
  scrollbar-color: rgba(245, 245, 247, 0.28) var(--black);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--black);
  color: var(--ink);
  font: 400 var(--t-body) / 1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 500;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus {
  outline: none;
}

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

/* visually hidden, still read aloud */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: var(--white);
  color: var(--black);
  font: 500 var(--t-small) / 1 var(--mono);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus-visible {
  transform: none;
}

/* mono annotation: small, lowercase, factual */
.note {
  font: 400 var(--t-note) / 1.65 var(--mono);
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

.note b,
.note strong {
  font-weight: 500;
  color: var(--ink);
}

.gold {
  color: var(--gold);
}

/* line reveal masks created by the motion script */
.line-mask {
  display: block;
  overflow: hidden;
  overflow: clip;
  padding-block: 0.16em;
  margin-block: -0.16em;
}

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