@font-face {
  font-family: Manrope;
  src: url('../fonts/manrope-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url('../fonts/manrope-semibold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url('../fonts/manrope-extrabold.ttf') format('truetype');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #191a1c;
  --muted: #626469;
  --line: #e3e4e6;
  --accent: #191a1c;
  --selection: #e1e3e7;
  --font: Manrope, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.8 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
::selection { background: var(--selection); color: var(--ink); }
img { max-width: 100%; height: auto; }
.wrap { width: min(760px, calc(100% - 64px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.identity { font-size: 14px; font-weight: 800; letter-spacing: -.025em; }
.site-header nav { display: flex; gap: 28px; font-size: 12px; color: var(--muted); }
.site-header nav a { padding-block: 8px; }
.site-header nav a:hover, .site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.site-header nav span { margin-left: 3px; }

.intro { padding-block: 48px 52px; }
.intro h1 { font-size: 64px; font-weight: 800; letter-spacing: -.065em; line-height: 1.15; }
.intro-copy { margin-top: 28px; }
.intro-copy > p:first-child { font-size: 24px; line-height: 1.6; letter-spacing: -.025em; }
.intro-copy strong { font-weight: 600; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.8;
}
.text-link > span { font-size: 16px; }
.text-link:hover { border-bottom-color: var(--ink); }

.chapter { border-top: 1px solid var(--line); padding-block: 36px 44px; }
.chapter-label { display: flex; align-items: baseline; gap: 12px; margin-bottom: 23px; color: var(--muted); }
.section-number { font-size: 10px; font-variant-numeric: tabular-nums; }
.chapter-label h2 { font-size: 12px; font-weight: 600; line-height: 1.6; }
.chapter-content > .lead-title { margin-bottom: 16px; font-size: 27px; font-weight: 600; line-height: 1.35; letter-spacing: -.035em; }
.chapter-content > p:not(.lead-title) { margin-top: 14px; color: var(--muted); }
.chapter-content > p:first-child { margin-top: 0; }
.history-entry + .history-entry { margin-top: 26px; }
.history-entry h3 { margin-bottom: 7px; font-size: 17px; line-height: 1.5; font-weight: 600; letter-spacing: -.02em; }
.history-entry p { font-size: 15px; color: var(--muted); line-height: 1.8; }
.history-entry .text-link { margin-top: 9px; }
.inline-links { display: flex; flex-wrap: wrap; gap: 22px; }
.mountain-link { display: block; margin-top: 24px; }
.mountain-link img { display: block; width: 100%; aspect-ratio: 2.3; object-fit: cover; object-position: center 56%; }
.mountain-link figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 18px; margin-top: 10px; font-size: 10px; color: var(--muted); line-height: 1.8; }
.mountain-link:hover figcaption > span:last-child { text-decoration: underline; text-underline-offset: 4px; }

.site-footer { border-top: 1px solid var(--line); display: flex; align-items: center; gap: 24px; padding-block: 25px 36px; }
.site-footer > p { margin-right: auto; color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; gap: 24px; font-size: 12px; }
.back-top { margin-left: 4px; font-size: 18px; padding: 2px 5px; }

@media (max-width: 620px) {
  .wrap { width: calc(100% - 44px); }
  .site-header { min-height: 80px; gap: 16px; }
  .site-header nav { gap: 18px; font-size: 11px; }
  .identity { font-size: 13px; }
  .intro { padding-block: 31px 36px; }
  .intro h1 { font-size: clamp(39px, 8.5vw, 52px); letter-spacing: -.06em; }
  .intro-copy { margin-top: 23px; }
  .intro-copy > p:first-child { font-size: 21px; line-height: 1.65; }
  .chapter { padding-block: 28px 34px; }
  .chapter-label { margin-bottom: 20px; }
  .chapter-content > .lead-title { font-size: 25px; line-height: 1.4; margin-bottom: 14px; }
  .chapter-content > p:not(.lead-title) { font-size: 15px; line-height: 1.85; }
  .history-entry p { font-size: 15px; }
  .text-link { font-size: 12px; }
  .mountain-link img { aspect-ratio: 1.65; }
  .mountain-link figcaption { flex-direction: column; gap: 3px; }
  .site-footer { flex-wrap: wrap; gap: 18px; padding-block: 24px 30px; }
  .site-footer > p { width: 100%; }
  .back-top { margin-left: auto; }
}
@media (max-width: 350px) {
  .wrap { width: calc(100% - 36px); }
  .site-header nav { gap: 14px; font-size: 10px; }
  .intro h1 { font-size: 37px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  :root { --paper: white; --ink: black; --muted: #444; }
  .wrap { width: 100%; }
  .site-header { min-height: 45px; }
  .site-header nav, .back-top, .skip-link { display: none; }
  .intro { padding-block: 20px; }
  .intro h1 { font-size: 42px; }
  .intro-copy > p:first-child { font-size: 18px; }
  .chapter { padding-block: 20px; }
  .history-entry, .mountain-link { break-inside: avoid; }
  .mountain-link img { max-height: 170px; }
}
