@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolagegrotesque.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibmplexsans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1B1F2A;
  --text: #1F242B;
  --page: #FFFFFF;
  --card: #F5F6F8;
  --rule: #D0D2D8;
  --brand: #333366;
  --brand-deep: #252846;
  --mute: #999999;

  --ff-head: 'Bricolage Grotesque', Georgia, 'Times New Roman', serif;
  --ff-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --r-1: 3px;
  --r-2: 8px;
  --r-3: 14px;

  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;
  --sp-8: 96px;

  --w-main: 1200px;
  --w-essay: 800px;

  --sh-1: 0 1px 2px rgba(27, 31, 42, 0.06), 0 2px 8px rgba(27, 31, 42, 0.04);
  --sh-2: 0 4px 18px rgba(27, 31, 42, 0.10);
}

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

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--ff-head);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--sp-3);
  line-height: 1.12;
  letter-spacing: -0.012em;
}
h1 { font-size: clamp(2rem, 4.4vw + 1rem, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.2vw + 0.8rem, 2.2rem); }
h3 { font-size: clamp(1.15rem, 0.9vw + 0.9rem, 1.4rem); }
h4 { font-size: 0.98rem; font-family: var(--ff-body); font-weight: 500; letter-spacing: 0.02em; }

strong, b {
  font-family: var(--ff-head);
  font-weight: 600;
  color: var(--ink);
}

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

.intro {
  font-size: 1.12rem;
  color: var(--text);
  max-width: 60ch;
}

a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .18s ease;
}
a:hover { color: var(--brand-deep); }
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }

ul, ol { padding-left: 1.15rem; margin: 0 0 var(--sp-3); }
ul li, ol li { margin-bottom: 6px; }

hr { border: none; height: 1px; background: var(--rule); margin: var(--sp-6) 0; }

table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 13px 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.96rem;
}
th {
  font-family: var(--ff-head);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--page);
  padding: 12px 18px;
  text-decoration: none;
}
.skip-link:focus { left: 16px; top: 16px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.shell { max-width: var(--w-main); margin: 0 auto; padding: 0 24px; }
.shell--narrow { max-width: var(--w-essay); margin: 0 auto; padding: 0 24px; }

.kicker {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.tnum {
  font-feature-settings: "tnum", "lnum";
}

::selection { background: var(--brand); color: var(--page); }
