:root {
  --ink: #1b291d;
  --muted: #495748;
  --paper: #f6f3ea;
  --card: #fffcf4;
  --line: #c5caba;
  --olive: #485b3c;
  --gold: #e9cd8e;
  --edge: clamp(1.25rem, 6vw, 6rem);
  color: var(--ink);
  background: var(--paper);
  font: 100%/1.6 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3, h4 { font-family: Georgia, serif; font-weight: 500; line-height: 1.12; }
.wrap { width: min(67rem, calc(100% - 2 * var(--edge))); margin-inline: auto; }
.skip { position: absolute; left: var(--edge); top: -8rem; z-index: 4; background: var(--card); padding: .6rem 1rem; }
.skip:focus { top: .5rem; }
.hero {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 35rem;
  min-height: min(46rem, 92svh);
  background: linear-gradient(90deg, #131e15ef, #131e15ad 60%, #131e156a), url(../hills.webp) center 47% / cover no-repeat, #19271c;
  color: #fff9e9;
}
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 4.5rem;
  margin-inline: var(--edge);
  border-bottom: 1px solid #fff9e94d;
}
.masthead > a:first-child, footer a:first-child { font: 600 1.3rem Georgia, serif; text-decoration: none; }
.masthead [aria-current] { color: var(--gold); }
.hero-copy { align-self: center; padding: clamp(2.5rem, 7vw, 7rem) var(--edge); }
.kicker { font-size: .85rem; font-weight: 700; letter-spacing: .105em; }
.hero .kicker { color: var(--gold); }
h1 { font-size: clamp(3rem, 9.5vw, 8.2rem); letter-spacing: -.065em; margin: .13em 0 .22em; }
h1 span { display: block; font: 500 .54em/1.35 Tahoma, sans-serif; letter-spacing: normal; text-align: left; color: var(--gold); }
.hero-copy > p:last-of-type { font-size: clamp(1rem, 2.4vw, 1.2rem); max-width: 33rem; }
.hero-link { display: inline-block; background: var(--gold); color: #202719; padding: .65rem 1rem; margin-top: 1.3rem; font-weight: 650; border-radius: .22rem; text-decoration: none; }
.hero-link:hover { background: #ffefd0; }
.photo-credit { justify-self: end; margin: 0 var(--edge) 1.1rem; font-size: .8rem; }
.intro { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 1.5rem 3rem; padding-block: clamp(3rem, 8vw, 6.5rem) 2.5rem; }
.intro .kicker { color: var(--olive); margin-bottom: .65rem; }
.intro h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -.05em; }
.intro > p { color: var(--muted); }
.era-bar { position: sticky; top: 0; z-index: 2; background: var(--paper); border-block: 1px solid var(--line); }
.eras { display: flex; gap: .4rem .6rem; overflow-x: auto; padding-block: .55rem; }
.eras a { flex: none; text-decoration: none; color: var(--olive); font-size: .9rem; font-weight: 650; border-radius: .25rem; padding: .4rem .65rem; }
.eras a:hover, .eras a[aria-current="location"] { background: #dee5d4; color: var(--ink); }
.eras a:focus-visible { outline-offset: -2px; }
.timeline { padding-block: 2.3rem 4rem; }
.timeline section { scroll-margin-top: 5rem; }
.timeline section + section { margin-top: 3rem; }
.timeline h3 { font-size: clamp(1.65rem, 3.5vw, 2.6rem); margin-bottom: 1.15rem; }
.timeline ol { list-style: none; padding: 0; margin: 0; }
.timeline li { --rail: 9.2rem; position: relative; display: grid; grid-template-columns: var(--rail) 1fr; gap: 2rem; padding-bottom: .9rem; }
.timeline li::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--rail); border-left: 1px solid var(--line); }
.timeline li::after { content: ""; position: absolute; top: 1.65rem; left: var(--rail); width: .65rem; height: .65rem; border-radius: 50%; background: var(--olive); transform: translateX(-45%); box-shadow: 0 0 0 .25rem var(--paper); }
.timeline time, .timeline .date { color: var(--olive); font-weight: 700; font-variant-numeric: tabular-nums; padding-top: 1.25rem; }
.timeline article { background: var(--card); border: 1px solid #d9dbcb; border-radius: .45rem; padding: clamp(1rem, 3vw, 1.8rem); }
.timeline h4 { font-size: clamp(1.35rem, 3vw, 2rem); }
.timeline article p { margin-block: .55rem .7rem; max-width: 44rem; }
.timeline article a { font-size: .875rem; color: var(--olive); font-weight: 600; }
.sources { border-top: 1px solid var(--line); padding-block: 2rem; }
.sources h2 { font-size: 1.75rem; }
.sources p { margin-top: .6rem; max-width: 49rem; color: var(--muted); }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem; border-top: 1px solid var(--line); padding-block: 1.5rem; }
@media (max-width: 660px) {
  .intro { grid-template-columns: 1fr; }
  .timeline li { display: block; padding-left: 1.25rem; --rail: 0rem; }
  .timeline li::after { top: .5rem; }
  .timeline time, .timeline .date { display: block; padding: 0 0 .35rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy { animation: enter .65s ease-out both; }
  .timeline article.arrive { animation: enter .55s cubic-bezier(.2,.7,.3,1) both; }
}
@keyframes enter {
  from { opacity: .35; transform: translateY(.85rem); }
  to { opacity: 1; transform: translateY(0); }
}

.masthead nav { display: flex; gap: .7rem 1.2rem; align-items: center; }
