:root {
  color-scheme: light;
  --paper: #fbf6eb;
  --white: #fffdf5;
  --ink: #263531;
  --muted: #51615a;
  --green: #27463d;
  --edge: #bbc7ba;
  --mint: #dce9db;
  --brick: #8d3026;
  --gutter: clamp(18px, 4.5vw, 60px);
  --serif: 'Iowan Old Style', Georgia, serif;
  --sans: 'Avenir Next', Avenir, system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 16px; }
body { background: var(--paper); margin: 0; font: 16px/1.55 var(--sans); color: var(--ink); }
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .17em; }
a:hover { text-decoration-thickness: 2px; }
input, button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
:focus-visible { outline: 3px solid #185bb4; outline-offset: 4px; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: fixed; z-index: 2; left: 10px; top: 10px; padding: 8px 14px; background: #fbdcb1; transform: translateY(-200%); }
.skip:focus { transform: none; }

.top { background: var(--white); border-bottom: 1px solid var(--edge); }
.mast { min-height: 64px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--serif); font-weight: 760; font-size: 24px; letter-spacing: -.055em; }
.stamp { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; border: 2px solid var(--green); background: #e1ebd9; display: inline-grid; place-items: center; transform: rotate(-45deg); }
.stamp::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brick); }
.mast nav { display: flex; gap: clamp(11px, 3vw, 28px); font-size: 14px; font-weight: 650; }
.mast nav a { padding-block: 8px; text-decoration: none; }
.mast nav a:hover, .mast nav a[aria-current] { text-decoration: underline; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .96fr);
  gap: 24px clamp(22px, 5vw, 68px);
  align-items: center;
  padding-block: clamp(26px, 4.3vw, 50px) 24px;
}
.finder { min-width: 0; }
.eyebrow, .project-place { color: var(--brick); font: 700 11px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 680; line-height: 1.08; }
h1 { font-size: clamp(40px, 5.15vw, 74px); letter-spacing: -.057em; margin: 8px 0 11px; }
.description { color: var(--muted); max-width: 51ch; font-size: clamp(16px, 1.7vw, 19px); }
#search-form { margin-top: 20px; min-width: 0; }
#search-form > label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 750; }
.search-line { display: flex; min-width: 0; gap: 7px; }
.search-line input { flex: 1 1 100px; width: 100%; min-width: 0; min-height: 46px; padding: 9px 12px; border: 1px solid #839a8a; border-radius: 4px; color: var(--ink); background: var(--white); }
.solid, .outline { min-height: 44px; border: 1px solid var(--green); border-radius: 4px; padding: 9px 12px; font-size: 14px; line-height: 1.25; font-weight: 700; }
.solid { background: var(--green); color: var(--white); flex: 0 0 auto; }
.solid:hover { background: #3a6255; }
.outline { background: var(--white); color: var(--green); }
.outline:hover { background: var(--mint); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 9px; font-size: 14px; }
.filters label { min-height: 38px; display: flex; align-items: center; gap: 6px; }
.filters select { min-height: 36px; border: 1px solid #90a094; border-radius: 4px; background: var(--white); padding: 5px 8px; color: var(--ink); }
.filters input { accent-color: var(--green); width: 16px; height: 16px; margin: 0; }
.dataset { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin-top: 12px; }
.dataset p, .update { color: var(--muted); font-size: 13px; }
.update { margin-top: 2px; }
.text-button { display: inline-block; background: none; border: 0; color: var(--green); padding: 4px 0; font-size: 14px; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }

.map-frame { background: #d9e7e4; border: 1px solid #9aaea8; border-radius: 7px; overflow: hidden; }
.map-frame canvas { width: 100%; height: auto; display: block; }
.map-frame figcaption { display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-top: 1px solid #aebdb7; background: #f4f3e8; color: #35443d; font: 600 12px/1.5 var(--mono); }
.pin { width: 8px; height: 8px; border-radius: 50%; background: var(--brick); }

.areas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid #91a79a; border-bottom: 1px solid #91a79a; }
.areas a {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: 0 9px; min-height: 43px; padding: 9px 10px;
  font-weight: 690; line-height: 1.4; font-size: 14px; text-decoration: none;
  border-right: 1px solid #bdc7bb;
}
.areas a:last-child { border-right: 0; }
.areas a[aria-current] { color: var(--white); background: var(--green); }
.areas a:not([aria-current]):hover { background: var(--mint); }
.area-count { font: 550 11px/1.4 var(--mono); }

.workspace { padding-top: 22px; padding-bottom: 28px; }
.results-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; border-bottom: 1px solid var(--edge); padding-bottom: 8px; }
.results-title h2, .guide h2 { font-size: clamp(24px, 3.5vw, 40px); letter-spacing: -.045em; }
.results-title p { font-size: 14px; color: var(--muted); }
.records { list-style: none; margin: 0; padding: 0; }
.project { padding: 14px 0 16px; border-bottom: 1px solid var(--edge); }
.project-title { display: inline-block; color: var(--green); font: 680 clamp(20px, 3.1vw, 29px)/1.14 var(--serif); margin-top: 4px; overflow-wrap: anywhere; }
.project-dates { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 15px; margin-top: 5px; color: var(--muted); font-size: 14px; }
.project-dates strong { font-weight: 680; color: var(--ink); margin-left: 1px; }
.delta { color: var(--brick); }
.empty, .source-note { color: var(--muted); margin-top: 13px; }
#more { margin-top: 13px; }

.detail-heading { padding-bottom: 12px; border-bottom: 1px solid #8fa598; }
.detail-heading > .project-place { margin-top: 11px; }
.detail-heading h2 { font-size: clamp(28px, 5.2vw, 55px); margin-top: 5px; letter-spacing: -.05em; overflow-wrap: anywhere; }
.record-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13px; margin-top: 11px; color: var(--muted); font-size: 14px; }
.button-link { display: inline-flex; align-items: center; width: fit-content; text-decoration: none; }
.record-section { border-bottom: 1px solid var(--edge); padding: 14px 0 18px; }
.record-section h3 { font-size: clamp(22px, 3.6vw, 33px); letter-spacing: -.042em; margin-bottom: 9px; }
.finishes, .timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.finishes > span, .checkpoint { background: #eeede0; border: 1px solid #b9c5b5; border-radius: 4px; padding: 8px 10px; }
.finishes span { color: var(--muted); font-size: 13px; }
.finishes strong { display: block; color: var(--ink); font: 700 clamp(18px, 2.5vw, 27px)/1.3 var(--serif); }
.shift { color: var(--brick); font-size: 15px; font-weight: 720; margin-top: 7px; }
.record-note { color: var(--muted); font-size: 14px; margin-top: 6px; }
.checkpoint { background: var(--white); }
.checkpoint h4 { font-size: 21px; margin-bottom: 6px; }
.checkpoint span { display: block; color: var(--muted); font-size: 14px; padding-block: 2px; }
.checkpoint strong { color: var(--ink); }
.record-section ul { margin: 0 0 5px; padding-left: 21px; }
.footer { border-top: 1px solid var(--edge); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 15px; padding: 14px 0 25px; font-size: 14px; color: var(--muted); }
.guide { max-width: 800px; min-height: 55vh; padding-block: 36px; }
.guide > section { margin-top: 23px; padding-top: 15px; border-top: 1px solid var(--edge); }
.guide section p { max-width: 66ch; color: var(--muted); margin-top: 6px; }

@media (max-width: 910px) {
  .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .areas a:nth-child(3) { border-right: 0; }
  .areas a:nth-child(-n+3) { border-bottom: 1px solid #bdc7bb; }
}
@media (max-width: 690px) {
  .mast { min-height: 54px; }
  .brand { font-size: 21px; gap: 6px; }
  .stamp { width: 16px; height: 16px; flex-basis: 16px; }
  .stamp::after { width: 5px; height: 5px; }
  .mast nav { font-size: 13px; }
  .intro { grid-template-columns: 1fr; padding-bottom: 14px; gap: 15px; }
  .map-frame { max-width: 500px; }
  .map-frame canvas { max-height: 264px; object-fit: contain; }
  .map-frame figcaption { padding-block: 6px; }
  .areas a { padding: 8px 6px; font-size: 13px; }
  .areas { grid-auto-rows: minmax(41px, auto); }
  #search-form { margin-top: 13px; }
  .search-line input { padding-inline: 8px; }
  .search-line button { padding-inline: 8px; }
  .timeline { grid-template-columns: 1fr; }
}
