﻿/* ── Tokens ── */
:root {
  color-scheme: light;
  --paper: #f3f0e9;
  --ink: #15130f;
  --quiet: #6b645a;
  --rule: #d9d3c8;
  --wash: #ebe6dd;
  --accent: #8a3b2a;
  --viewer: #121110;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --step--1: clamp(0.75rem, 0.72rem + 0.14vw, 0.82rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.16vw, 1.04rem);
  --step-1: clamp(1.12rem, 1.02rem + 0.48vw, 1.38rem);
  --step-2: clamp(1.55rem, 1.25rem + 1.15vw, 2.2rem);
  --step-3: clamp(2rem, 1.45rem + 2.2vw, 3.6rem);
  --step-4: clamp(2.5rem, 1.35rem + 4.8vw, 5.6rem);
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --gutter: clamp(20px, 5vw, 64px);
  --container: 1320px;
  --measure: 62ch;
  --radius: 2px;
  --ease: 180ms ease;
  --ease-slow: 240ms ease;
}

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

html {
  scroll-behavior: smooth;
}

html[data-menu-open="true"] {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p,
dl,
dd,
dt,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

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

.page-main {
  min-height: 60vh;
}

/* ── Type ── */
.display {
  font-family: var(--serif);
  font-size: var(--step-4);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.title-page {
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.title-section {
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.lede {
  max-width: var(--measure);
  color: var(--quiet);
  font-size: var(--step-1);
  line-height: 1.45;
}

.kicker {
  color: var(--quiet);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ── Utilities ── */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

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