@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  color-scheme: light;
  --paper: #f6f1e4;
  --surface: #fffcf2;
  --ink: #26342d;
  --green: #314f41;
  --green-wash: #e5ece0;
  --rust: #87432f;
  --rust-wash: #f5e8d9;
  --gold: #816020;
  --gold-wash: #f0e7ce;
  --mute: #625e51;
  --line: #cfc6af;
  --line-dark: #9c957e;
  --plate: #e8e1cc;
  --map-pen: #716b52;
  --map-grid: #d4cbb3;
  --water-edge: #7e9489;
  --water: #b4c6bc;
  --water-ink: #59776f;
  --shadow: #342e2522;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { scroll-behavior: smooth; background: var(--paper); }
body { color: var(--ink); font: 16px/1.55 var(--sans); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--green); text-underline-offset: .24em; text-decoration-thickness: 1px; }
a:hover { color: var(--rust); }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
h1, h2, p, figure { margin: 0; overflow-wrap: anywhere; }
h1, h2 { font-family: var(--serif); line-height: 1.05; letter-spacing: -.04em; }
.wrap { width: min(calc(100% - 104px), 1232px); margin-inline: auto; }
.skip { position: fixed; z-index: 20; inset: 10px auto auto 10px; transform: translateY(-160%); background: var(--surface); padding: 8px 14px; }
.skip:focus { transform: none; }

.masthead { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line-dark); }
.identity, .masthead nav { display: flex; align-items: center; }
.identity { color: var(--ink); gap: 12px; font: 700 22px/1 var(--serif); text-decoration: none; white-space: nowrap; }
.seal { width: 34px; display: grid; place-items: center; color: var(--rust); }
.seal svg { width: 30px; height: 30px; }
.masthead nav { gap: clamp(14px, 3vw, 38px); }
.masthead nav a { font-size: .87rem; font-weight: 600; line-height: 1.1; display: flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; }
.masthead nav a:hover { text-decoration: underline; }
.explorer { display: grid; align-items: center; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); gap: clamp(25px, 4vw, 60px); padding-block: clamp(34px, 5vw, 70px) 50px; }
.intro { padding-bottom: 32px; }
.fan-notice { color: var(--mute); font-size: .8rem; max-width: 42ch; margin-bottom: 12px; }
.locator { color: var(--rust); font-size: .76rem; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
.slash { color: var(--mute); }
h1 { font-size: clamp(3rem, 5.6vw, 5.6rem); font-weight: 600; margin-block: 12px 20px; line-height: 1.01; }
.dek { max-width: 35ch; color: var(--mute); font-size: clamp(1rem, 1.42vw, 1.17rem); }
.jump { display: inline-flex; align-items: center; gap: 12px; margin-top: 25px; min-height: 44px; text-decoration: none; border-bottom: 1px solid var(--green); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.jump:hover { border-color: var(--rust); }
.plate { min-width: 0; }
.map { position: relative; width: calc(100% - 10px); min-height: 337px; aspect-ratio: 1.83; background: var(--plate); border: 1px solid var(--line-dark); outline: 1px solid var(--line); outline-offset: 5px; margin: 5px; }
.cartography { position: absolute; width: 100%; height: 100%; inset: 0; pointer-events: none; }
.district { --district-tone: var(--green); --district-wash: var(--green-wash); position: absolute; display: flex; align-items: center; z-index: 1; gap: 10px; min-height: 56px; padding: 7px 13px; background: var(--surface); border: 1px solid var(--line-dark); box-shadow: 2px 3px 0 var(--shadow); text-align: left; line-height: 1.2; transition: background-color .16s, border-color .16s, transform .16s; }
.district:hover, .district[aria-pressed="true"] { border-color: var(--district-tone); background: var(--district-wash); }
.district[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--district-tone), 3px 4px 0 var(--shadow); }
.district:active { transform: translateY(1px); }
.district strong { display: block; font-size: .9rem; white-space: nowrap; }
.district small { color: var(--mute); font-size: .71rem; white-space: nowrap; }
.pin { display: inline-block; width: 10px; height: 10px; border: 1px solid var(--district-tone); background: var(--district-wash); border-radius: 50%; flex: 0 0 auto; }
.district[aria-pressed="true"] .pin { background: var(--district-tone); }
.district.butterfield { left: 29%; top: 24%; }
.district.copperbottom { left: 9%; top: 62%; --district-tone: var(--rust); --district-wash: var(--rust-wash); }
.district.bowerminster { right: 5%; top: 43%; --district-tone: var(--gold); --district-wash: var(--gold-wash); }
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding: 10px 1px 0; color: var(--mute); font-size: .77rem; }
figcaption a { font-weight: 700; white-space: nowrap; }

.directory { border-top: 1px solid var(--line-dark); padding-top: 30px; scroll-margin-top: 14px; }
.directory-head { display: flex; justify-content: space-between; align-items: end; gap: 22px; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 600; }
.directory-head p, .reference p { color: var(--mute); margin-top: 8px; }
.search { flex: 0 1 348px; }
.search label { display: block; font-size: .76rem; font-weight: 700; padding-bottom: 5px; }
.search-box { display: flex; min-height: 48px; align-items: center; gap: 9px; min-width: 0; background: var(--surface); border: 1px solid var(--line-dark); padding-inline: 11px; color: var(--green); }
.search-box:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.search-box svg { flex: 0 0 auto; }
.search input { width: 100%; min-width: 0; padding: 9px 0; border: 0; outline: none; background: transparent; font-size: 1rem; color: var(--ink); }
.search input::placeholder { color: var(--mute); }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding-block: 4px; color: var(--mute); font-size: .85rem; }
.reset { margin: 0; min-height: 42px; border: 0; background: transparent; color: var(--green); padding: 0 2px; font-weight: 700; text-decoration: underline; text-underline-offset: .24em; white-space: nowrap; }
.reset:hover { color: var(--rust); }
.location-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.location { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1.65fr) minmax(0,.86fr); align-items: start; gap: 18px 28px; min-width: 0; border-bottom: 1px solid var(--line); padding: 17px 0; }
.place { display: grid; gap: 3px; }
.place strong { font-size: 1rem; }
.place-kind { font-size: .78rem; color: var(--mute); }
.district-dot { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--line-dark); vertical-align: .04em; }
.district-dot.butterfield { background: var(--green); }
.district-dot.copperbottom { background: var(--rust); }
.district-dot.bowerminster { background: var(--gold); }
.place-detail { font-size: .9rem; line-height: 1.58; }
.citations { display: grid; align-content: start; gap: 3px; min-width: 0; }
.citations a { width: fit-content; overflow-wrap: anywhere; font-size: .83rem; }
.source-label { color: var(--mute); font-size: .69rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.empty { padding: 24px 0; border-block: 1px solid var(--line); }

.reference { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 24px 55px; padding: 34px 34px; margin-block: 55px 42px; border: 1px solid var(--line); background: var(--surface); }
.reference h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); }
.reference p { font-size: .91rem; max-width: 52ch; }
.reference ul { list-style: none; margin: 0; padding: 0; }
.reference li { display: grid; gap: 2px; padding-block: 6px; }
.reference li a { font-size: .89rem; font-weight: 700; }
.reference li span, .footer { font-size: .77rem; color: var(--mute); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--line-dark); padding-block: 18px 28px; }

@media (max-width: 950px) {
  .wrap { width: calc(100% - 66px); }
  .map { min-height: 295px; }
  .district.bowerminster { right: 4%; top: 47%; }
  .district.butterfield { left: 19%; top: 20%; }
  .district.copperbottom { left: 5%; top: 69%; }
  .location { gap: 14px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .masthead { min-height: 61px; gap: 8px; flex-wrap: wrap; padding-block: 8px; }
  .identity { font-size: 17px; gap: 7px; }
  .seal { width: 25px; }
  .seal svg { width: 23px; height: 23px; }
  .masthead nav { gap: 12px; }
  .masthead nav a { font-size: .74rem; min-height: 34px; }
  .explorer { grid-template-columns: minmax(0,1fr); gap: 23px; padding-block: 26px 27px; }
  .intro { padding-bottom: 0; }
  h1 { font-size: clamp(2.7rem, 11vw, 4rem); margin-block: 9px 12px; }
  .jump { margin-top: 9px; }
  .map { min-height: 236px; }
  .district { min-height: 46px; padding-inline: 9px; gap: 6px; }
  .district strong { font-size: .78rem; }
  .district small { font-size: .67rem; }
  .district.butterfield { left: 12%; top: 12%; }
  .district.bowerminster { right: 4%; top: 44%; }
  .district.copperbottom { left: 6%; top: 70%; }
  .directory { padding-top: 25px; }
  .directory-head { display: grid; gap: 14px; }
  .location { grid-template-columns: minmax(0,1fr); gap: 5px; padding-block: 13px; }
  .citations { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 9px; }
  .reference { grid-template-columns: minmax(0,1fr); gap: 15px; padding: 17px; margin-block: 31px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .district { transition: none; }
}

.brand-home { padding-block: clamp(40px, 7vw, 92px) 70px; }
.brand-home .dek { max-width: 55ch; }
.guide-index { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.guide-index article { margin-top: 20px; max-width: 650px; border: 1px solid var(--line-dark); padding: 18px 22px; background: var(--surface); }
.guide-index h3 { margin: 0 0 5px; font-size: 1.14rem; }
.guide-index article p { color: var(--mute); }
