:root {
  --paper: #f8f6f2;
  --ink: #171717;
  --muted: #68635d;
  --faint: #ded8ce;
  --line: #cfc8bc;
  --blue: #0052ff;
  --blue-dark: #003fca;
  --max: 1120px;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

::selection {
  background: rgba(0, 82, 255, 0.14);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 2px;
  background: transparent;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 12px;
  text-decoration: none;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 18px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--ink);
  font-size: 12px;
}

nav {
  display: none;
  align-items: center;
  gap: 18px;
}

nav a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  text-decoration: none;
}

nav a:hover { color: var(--ink); }

.section {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 72px 0;
}

.opening {
  min-height: calc(100vh - 58px);
  display: grid;
  align-content: center;
  gap: 34px;
  padding-top: 56px;
}

.opening-rule {
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 16vw, 7.8rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.dek {
  max-width: 720px;
  margin: 0;
  color: #3b3935;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 6vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.opening-note {
  max-width: 420px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.opening-note span,
.guide-item span,
.note-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.opening-note p,
.copy-status,
.footer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.article-section {
  display: grid;
  gap: 36px;
  border-top: 1px solid var(--line);
}

.story-block {
  max-width: 760px;
}

.story-block h2,
.section-heading h2,
.closing-card h2 {
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 9vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.story-block p,
.text-stack p,
.note-card p,
.guide-item p,
.closing-card > p {
  color: #3f3c37;
  font-size: 17px;
  line-height: 1.75;
}

.story-block p + p,
.text-stack p + p {
  margin-top: 20px;
}

.line-illustration {
  margin: 12px 0 0;
  color: var(--blue);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.line-illustration svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.line-illustration circle { fill: currentColor; }

.line-illustration text {
  fill: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.quote-section {
  padding-top: 42px;
  padding-bottom: 42px;
}

.pull-quote {
  margin: 0;
  padding: 32px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.pull-quote p {
  max-width: 980px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 10vw, 6.2rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.notes-grid,
.field-guide {
  display: grid;
  gap: 22px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 10px;
}

.note-card,
.guide-item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.note-card h3,
.guide-item h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.note-card p,
.guide-item p { margin-bottom: 0; }

.stat-section {
  display: grid;
  gap: 36px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.stat-number {
  display: block;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(8rem, 36vw, 18rem);
  font-weight: 600;
  letter-spacing: -0.1em;
  line-height: 0.78;
}

.stat p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.narrow { max-width: 620px; }

.split-section {
  display: grid;
  gap: 24px;
}

.text-stack {
  max-width: 650px;
}

.guide-list {
  display: grid;
  gap: 0;
}

.closing-section {
  padding-bottom: 56px;
}

.closing-card {
  padding: 28px 0 0;
  border-top: 1px solid var(--ink);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
}

.text-button {
  appearance: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding: 0 0 3px;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.text-button:hover { color: var(--blue-dark); }

.copy-status { min-height: 24px; margin-top: 16px; }

.footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
}

.footer a {
  width: fit-content;
  font-size: 14px;
  font-weight: 650;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.opening-rule.reveal {
  transform: scaleX(0);
}

.opening-rule.reveal.visible {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .opening-rule.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 720px) {
  .site-header { padding: 20px 34px; }
  nav { display: flex; }
  .section { width: min(100% - 68px, var(--max)); padding: 96px 0; }
  .opening { grid-template-columns: 1fr minmax(240px, 360px); column-gap: 56px; }
  .opening-rule,
  .opening-copy { grid-column: 1 / -1; }
  .opening-note { align-self: end; grid-column: 2; }
  .article-section { grid-template-columns: 160px 1fr; align-items: start; }
  .line-illustration { grid-column: 2; }
  .notes-grid { grid-template-columns: repeat(3, 1fr); column-gap: 28px; }
  .notes-grid .section-heading { grid-column: 1 / -1; }
  .stat-section { grid-template-columns: 0.9fr 1fr; align-items: center; }
  .split-section { grid-template-columns: 1fr 0.82fr; align-items: start; }
  .field-guide { grid-template-columns: 0.85fr 1fr; column-gap: 70px; }
  .guide-list { grid-column: 2; }
  .footer { flex-direction: row; justify-content: space-between; align-items: center; width: min(100% - 68px, var(--max)); }
}

@media (min-width: 1040px) {
  .section { padding: 118px 0; }
  .opening { padding-top: 72px; }
  .guide-list { grid-template-columns: 1fr 1fr; column-gap: 34px; }
  .guide-item:nth-child(2) { border-top-color: var(--line); }
}
