:root {
  --paper: #F1EEE6;
  --paper-2: #E6E1D6;
  --ink: #1B2430;
  --ink-2: #3A4350;
  --muted: #6B7380;
  --sea: #234B6A;
  --sea-2: #1B3A53;
  --ochre: #D6A23E;
  --ochre-deep: #A9761F;
  --line: rgba(27, 36, 48, .14);
  --font-display: 'Instrument Sans Variable', system-ui, sans-serif;
  --font-serif: 'Fraunces Variable', Georgia, serif;
  --font-body: 'Instrument Sans Variable', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--ochre-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
strong { color: var(--ink); }
main { display: block; flex: 1 0 auto; }

:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px;
}
.skip:focus { top: 8px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(32px, 5vw, 64px); }
.section--dark { background: var(--sea); color: var(--paper); }
.section--dark h2, .section--dark h3, .section--dark strong { color: #fff; }
.section--dark a { color: #fff; }
.section--alt { background: var(--paper-2); }

.lead {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.4; color: var(--ink-2);
  max-width: 56ch;
}

.prose { max-width: var(--measure); }
.prose p + h2, .prose p + h3 { margin-top: 1.75em; }
.prose blockquote {
  margin: 1.5em 0; padding: 0.25em 0 0.25em 1.25em;
  border-left: 4px solid var(--ochre);
  font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--ink-2);
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.85em 1.4em; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--ochre); color: var(--ink); text-decoration: none;
  font: 600 1rem var(--font-body); line-height: 1;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { background: var(--ochre-deep); color: var(--paper); }
.btn:active { transform: scale(.98); }
.btn--ghost {
  padding: 0.4em 0; border-radius: 0; background: transparent; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.btn--ghost:hover { background: transparent; color: var(--ochre-deep); }

.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: 0.01ms !important; }
}

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6em 0.8em; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink); }
