:root {
  color-scheme: light;
  --ink: #132a42;
  --muted: #40566a;
  --green: #275c4d;
  --deep-green: #1d4c40;
  --gold: #ffd45b;
  --rust: #a63728;
  --paper: #f4f8fa;
  --line: #c5d4de;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: var(--rust); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.4vw, 3.45rem); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
h3 { font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.14; letter-spacing: -.024em; }
.shell { width: min(100% - clamp(1.75rem, 7vw, 6rem), 76rem); margin-inline: auto; }
.site-head { border-top: .38rem solid var(--rust); }
.crumbs { padding-block: .9rem; font-size: .84rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .16rem 0; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: ""; width: .35rem; height: .35rem; border-top: 1px solid var(--muted); border-right: 1px solid var(--muted); transform: rotate(45deg); margin-inline: .65rem .8rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--rust); }
.crumbs [aria-current] { font-weight: 700; }
.hero { background: var(--ink); color: white; }
.hero-copy { padding: clamp(1.45rem, 4vw, 3.45rem); align-self: center; }
h1 { font-size: clamp(2.52rem, 5.15vw, 5.15rem); line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.hero-copy p { margin-top: clamp(1.1rem, 3vw, 1.65rem); max-width: 33ch; font-size: clamp(1rem, 1.65vw, 1.23rem); line-height: 1.48; color: #e1ecf2; }
.hero-copy::before { content: ""; display: block; width: 3.25rem; height: .3rem; margin-bottom: 1.25rem; background: var(--gold); }
picture, picture img { display: block; width: 100%; }
picture img { height: auto; aspect-ratio: 1672 / 941; object-fit: cover; }
figcaption { padding-block: .56rem 0; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.hero-caption { padding: .6rem .9rem; color: #e1ecf2; background: var(--ink); border-top: 1px solid #496176; }
article { padding-bottom: clamp(2.6rem, 6vw, 5rem); }
.chapter { margin-top: clamp(3rem, 8vw, 6.1rem); }
.prose { max-width: 68ch; margin-inline: auto; }
.prose h2 { margin-bottom: .7em; }
.prose p + p { margin-top: 1.05em; }
.prose p { font-size: clamp(1.025rem, 1.25vw, 1.125rem); line-height: 1.72; }
.opening { border-top: 1px solid var(--line); padding-top: clamp(1.4rem, 3.5vw, 2.65rem); }
.opening p:first-of-type { font-size: clamp(1.19rem, 2vw, 1.45rem); line-height: 1.53; }
.harbour { margin: clamp(1.6rem, 4vw, 3rem) auto; max-width: 66rem; }
.harbour figcaption { padding-left: .85rem; border-left: .24rem solid var(--rust); }
.archive-note { margin-top: 1.5rem; background: var(--gold); border-top: .34rem solid var(--rust); padding: 1.25rem; align-self: start; }
.archive-note p { margin-top: .6rem; line-height: 1.55; }
.timeline { margin-top: clamp(2.25rem, 5vw, 4rem); padding: clamp(1.1rem, 4.2vw, 3.35rem); background: var(--gold); }
.timeline h2 { font-size: clamp(1.85rem, 3.75vw, 3rem); margin-bottom: 1.1rem; }
.timeline-entries { list-style: none; padding: 0; margin: 0; }
.timeline-entries > li { display: grid; gap: .6rem 1rem; padding: .9rem 0; border-top: 1px solid #86651f; }
.timeline-entries h3 span, .timeline-tabs span { display: block; font: 700 clamp(1.24rem, 2.5vw, 1.9rem)/1.1 var(--serif); }
.timeline-entries h3 small, .timeline-tabs small { display: block; margin-top: .24rem; font: 650 .83rem/1.3 var(--sans); }
.timeline-tabs { display: grid; gap: .44rem; }
.timeline-tabs button { border: 2px solid var(--ink); border-radius: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; padding: .55rem .7rem; min-width: 0; }
.timeline-tabs button:hover { background: white; }
.timeline-tabs button[aria-selected="true"] { color: white; background: var(--ink); }
.timeline-tabs button:focus-visible { outline-offset: 2px; }
.timeline-panels { display: grid; margin-top: .75rem; background: var(--ink); color: white; }
.timeline-panels > div { grid-area: 1 / 1; padding: clamp(.9rem, 2.7vw, 1.65rem); }
.timeline-panels > [aria-hidden="true"] { visibility: hidden; }
.timeline-panels h3 { margin-bottom: .3em; }
.timeline-panels :focus-visible { outline-offset: -5px; outline-color: var(--gold); }
.farm-spread, .workbench { margin-block: clamp(1.55rem, 4vw, 2.85rem); }
.farm-note { background: var(--ink); color: white; padding: clamp(1.1rem, 3vw, 2rem); }
.farm-note dl { margin-top: .7rem; }
.farm-note dt { color: var(--gold); font-weight: 700; margin-top: .64rem; }
.farm-note dd { color: #e1ecf2; line-height: 1.48; font-size: .94rem; }
.workbench { background: var(--ink); padding: clamp(.7rem, 2.2vw, 1.6rem); }
.workbench figcaption { color: #e1ecf2; }
.process { margin: .95rem 0 0; padding: 0; list-style: none; background: white; border-top: .25rem solid var(--rust); }
.process li { display: grid; gap: .2rem; align-content: start; padding: .75rem; }
.process li + li { border-top: 1px solid var(--line); }
.process strong { font: 700 1.32rem/1.2 var(--serif); }
.process span { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.today { margin-top: clamp(3rem, 8vw, 6.1rem); background: var(--green); color: white; padding: clamp(1.2rem, 5vw, 3.65rem); }
.today .prose { margin-inline: 0; }
.today h2 { color: white; }
.state-link { display: inline-flex; align-items: center; align-self: end; gap: .7rem; min-height: 44px; margin-top: 1.2rem; padding: .7rem .95rem; background: var(--gold); color: var(--ink); text-decoration: none; font-weight: 750; line-height: 1.35; }
.state-link:hover { background: white; }
.state-link:focus-visible { outline-color: white; }
.state-link span, .source-arrow { position: relative; flex: none; width: 1rem; height: 1rem; }
.state-link span::before, .source-arrow::before {
  content: ""; position: absolute; top: 50%; left: .1rem; right: .1rem;
  border-top: 2px solid currentColor;
}
.state-link span::after, .source-arrow::after {
  content: ""; position: absolute; width: .48rem; height: .48rem; top: 50%; right: .1rem;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: translateY(-42%) rotate(45deg);
}
.sources { background: white; border-top: .38rem solid var(--rust); padding: clamp(1.1rem, 4vw, 3rem); margin-top: clamp(3rem, 7vw, 5rem); }
.sources h2 { margin-bottom: 1rem; font-size: clamp(1.85rem, 4vw, 3rem); }
.sources ul { list-style: none; padding: 0; margin: 0; }
.sources li { border-top: 1px solid var(--line); }
.sources li:last-child { border-bottom: 1px solid var(--line); }
.sources a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .7rem; padding: .75rem .6rem; text-decoration: none; color: var(--ink); }
.sources a:hover { background: #ffedb6; }
.sources a:focus-visible { outline-offset: -3px; }
.source-name { font-weight: 750; line-height: 1.35; }
.source-note { grid-column: 1; font-size: .9rem; line-height: 1.4; margin-top: .23rem; color: var(--muted); }
.source-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--rust); transform: rotate(-45deg); }
@media (max-width: 719px) {
  picture img { aspect-ratio: 706 / 941; }
}
@media (min-width: 540px) {
  .timeline-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .timeline-entries > li { grid-template-columns: 8rem minmax(0, 1fr); }
  .process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process li + li { border-top: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 720px) {
  .hero { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); }
  .hero picture { display: flex; height: 100%; }
  .hero img { min-height: 100%; }
  .hero-caption { grid-column: 2; }
  .farm-spread { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; gap: clamp(1rem, 2.6vw, 2.2rem); }
}
@media (min-width: 960px) {
  .chapter-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 68ch) minmax(0, 1fr); gap: 1rem; }
  .chapter-grid .prose { grid-column: 2; }
  .archive-note { margin: 0; padding: .9rem; }
  .workbench { display: grid; grid-template-columns: minmax(0, 2.65fr) minmax(0, 1fr); gap: 1.35rem; align-items: center; }
  .process { display: block; margin: 0; }
  .process li + li { border-left: 0; border-top: 1px solid var(--line); }
  .today { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); column-gap: 2.6rem; align-items: end; }
}
