:root {
  --ink: #16231D;
  --forest: #1B4A38;
  --forest-deep: #143628;
  --leaf: #2C6249;
  --brass: #B8944D;
  --brass-soft: #E8D5A3;
  --paper: #FAF8F3;
  --sand: #F1EDE3;
  --card: #FFFFFF;
  --ocean: #1E5363;
  --muted: #4E5C55;
  --rule: #D9D2C2;
  --rule-strong: #BDB4A0;
  --max: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, label:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ocean);
  outline-offset: 2px;
}
.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin-inline: auto; }
.kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.45rem;
}
h1, h2, h3, .display { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 0 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }
h2.h3 { font-size: 1.2rem; }
.dek { font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); font-weight: 400; max-width: 40rem; line-height: 1.45; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.7rem 1rem; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 0.5rem; color: #fff; }

/* Masthead */
.mast { background: var(--card); position: relative; z-index: 40; }
.mast-util { background: var(--ink); color: #D9E1DC; font-size: 0.8rem; }
.util-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.1rem; }
.util-links { display: flex; gap: 0.2rem; }
.mast-util a { color: #E8EEEA; text-decoration: none; padding: 0.35rem 0.6rem; display: inline-block; }
.mast-util a:hover { color: #fff; text-decoration: underline; }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.2rem 0 1.1rem; }
.wordmark { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 0.8rem; }
.wordmark:hover { color: var(--ink); text-decoration: none; }
.wm-text { font-family: var(--serif); font-weight: 600; font-size: 1.85rem; letter-spacing: -0.01em; line-height: 1.05; display: flex; flex-direction: column; }
.wm-text .biz { color: var(--forest); font-family: var(--serif); font-weight: 600; }
.wm-text small { font-family: var(--sans); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }
.signet { width: 48px; height: 48px; flex: none; }
.mast-search { display: flex; flex: 0 1 26rem; min-width: 0; }
.mast-search input {
  flex: 1; min-width: 0; border: 1px solid var(--rule-strong); border-right: 0; background: #fff;
  font: inherit; font-size: 1rem; padding: 0.65rem 0.9rem; border-radius: 2px 0 0 2px; color: var(--ink); min-height: 46px;
}
.mast-search input::placeholder { color: #5F6C65; opacity: 1; }
.mast-search button, .btn {
  background: var(--forest); color: #fff; border: 1px solid var(--forest); font: inherit;
  font-weight: 600; padding: 0.65rem 1.1rem; border-radius: 2px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px;
}
.mast-search button { border-radius: 0 2px 2px 0; }
.mast-search button:hover, .btn:hover { background: var(--forest-deep); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--forest); border: 1px solid var(--forest); }
.btn-ghost:hover { background: var(--sand); color: var(--ink); }

.navbar { background: var(--forest); border-top: 1px solid var(--forest-deep); border-bottom: 4px double var(--brass); }
.navbar-inner { position: relative; }
nav.primary { display: flex; flex-wrap: wrap; align-items: center; }
nav.primary a {
  color: #fff; text-decoration: none; font-size: 0.95rem; font-weight: 600;
  padding: 0.85rem 0.95rem; display: inline-flex; align-items: center; min-height: 48px;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
nav.primary a:first-child { padding-left: 0; }
nav.primary a:hover { background: var(--forest-deep); color: #fff; }
nav.primary a[aria-current="page"] { border-bottom-color: var(--brass-soft); }
nav.primary a:focus-visible, .menu-toggle:focus-visible { outline-color: #fff; outline-offset: -3px; }
.nav-check { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-check:focus-visible + .menu-toggle { outline: 3px solid #fff; outline-offset: -3px; }
.menu-toggle { display: none; color: #fff; font-weight: 600; cursor: pointer; min-height: 48px; align-items: center; gap: 0.7rem; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 1.3rem; height: 2px; background: #fff; position: relative; content: ""; }
.menu-bars::before { position: absolute; top: -6px; }
.menu-bars::after { position: absolute; top: 6px; }

/* Intro / hero */
.intro { background: var(--sand); border-bottom: 1px solid var(--rule); }
.hero { padding: 3rem 0 3rem; display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
.hero p.lead { max-width: 38rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.results-wrap { padding: 0; }
.results-wrap:has(#results:not([hidden])) { padding: 2rem 0 0; }
#results:not([hidden]) { padding-bottom: 1rem; border-bottom: 1px solid var(--rule); margin-bottom: 0.5rem; }
.results-head { font-size: 1.4rem; margin-bottom: 0.2rem; }

/* Map */
.map-panel { background: var(--card); border: 1px solid var(--rule); border-radius: 2px; padding: 0.9rem 0.9rem 0.7rem; margin: 0; }
.map-wide { max-width: 44rem; margin-bottom: 1.8rem; }
.map-panel svg { width: 100%; height: auto; }
.map-panel figcaption { font-size: 0.82rem; color: var(--muted); margin: 0.5rem 0 0; }
.map-box { display: block; }
.map-box svg.cr-map { width: 100%; height: auto; border-radius: 2px; }
.map-link { cursor: pointer; outline: none; }
.map-region { transition: filter 0.15s; }
.map-link:hover .map-region, .map-link.is-active .map-region { filter: brightness(1.35) saturate(1.05); stroke: var(--brass-soft); stroke-width: 3; }
.map-link:focus-visible .map-region { filter: brightness(1.35); stroke: var(--brass); stroke-width: 5; }
.map-label { font-family: var(--sans); font-size: 27px; font-weight: 700; fill: #fff; text-anchor: middle; pointer-events: none; }
.map-label-out { fill: var(--ink); }
.map-link:hover .map-label-out, .map-link.is-active .map-label-out, .map-link:focus-visible .map-label-out { text-decoration: underline; }
.map-water { font-family: var(--serif); font-style: italic; font-size: 24px; fill: #3F5B62; pointer-events: none; }
.map-legend { list-style: none; margin: 0.7rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.map-legend a {
  display: inline-block; padding: 0.3rem 0.7rem; font-size: 0.86rem; font-weight: 600; text-decoration: none;
  background: var(--sand); border: 1px solid var(--rule-strong); border-radius: 2px; color: var(--forest);
}
.map-legend a:hover, .map-legend a.is-active { background: var(--forest); color: #fff; border-color: var(--forest); }

/* Photography */
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro.has-photo { position: relative; isolation: isolate; background: var(--forest-deep); border-bottom: 0; overflow: hidden; }
.intro.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(12,32,24,0.94) 0%, rgba(12,32,24,0.86) 45%, rgba(12,32,24,0.55) 100%);
}
.intro.has-photo .hero-photo { z-index: -2; }
.intro.has-photo .hero { position: relative; }
.intro.has-photo h1, .intro.has-photo .dek, .intro.has-photo .lead { color: #fff; }
.intro.has-photo .kicker { color: var(--brass-soft); }
.intro.has-photo .btn { background: var(--brass-soft); color: var(--ink); }
.intro.has-photo .btn:hover { background: #fff; color: var(--ink); }
.intro.has-photo .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.8); }
.intro.has-photo .btn-ghost:hover { background: rgba(255,255,255,0.16); color: #fff; }
.banner { margin: 0 0 1.3rem; aspect-ratio: 1120 / 260; overflow: hidden; border-radius: 2px; background: var(--forest-deep); position: relative; }
.banner picture, .banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); pointer-events: none; }
.tile-img { margin: -1.1rem -1.15rem 0.4rem; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile:has(.tile-img) svg.pict { display: none; }

/* Sections */
section { padding: 2.6rem 0; }
section.alt { background: var(--sand); border-block: 1px solid var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; padding-bottom: 0.7rem; border-bottom: 1px solid var(--rule-strong); }
.section-head h2 { margin: 0; }
.section-head a.more { font-weight: 600; font-size: 0.95rem; padding: 0.5rem 0; }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tile {
  background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--forest); border-radius: 2px;
  padding: 1.1rem 1.15rem 1.1rem; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 0.4rem; min-height: 10rem;
}
.tile:hover { border-color: var(--forest); box-shadow: 0 2px 0 var(--rule-strong); color: inherit; text-decoration: none; }
.tile:hover h2, .tile:hover h3 { text-decoration: underline; text-underline-offset: 0.18em; }
.tile svg.pict { width: 26px; height: 26px; margin-bottom: 0.2rem; }
.tile h2, .tile h3 { font-size: 1.15rem; margin: 0; }
.tile p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.tile-body { flex: 1; }
.tile .count { font-size: 0.82rem; font-weight: 700; color: var(--forest); border-top: 1px solid var(--rule); padding-top: 0.5rem; margin-top: 0.3rem; }

/* Region list */
.region-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1.5rem; border-top: 1px solid var(--rule-strong); }
.region-list a { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 48px; padding: 0.55rem 0.2rem; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 600; color: var(--ink); }
.region-list a:hover { background: var(--card); color: var(--forest); }
.region-list .count { font-size: 0.82rem; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: 2px;
  padding: 1.1rem 1.15rem 1.1rem; display: flex; flex-direction: column; gap: 0.7rem;
  color: inherit; position: relative; min-width: 0;
}
.card:hover, .card:focus-within { border-color: var(--forest); box-shadow: 0 2px 0 var(--rule-strong); }
.card-top { display: flex; gap: 0.8rem; align-items: flex-start; }
.card-id { min-width: 0; }
.mark {
  flex: none; width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center;
  background: var(--sand); color: var(--forest); border: 1px solid var(--rule-strong); border-radius: 2px;
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem;
}
.mark-lg { width: 3.5rem; height: 3.5rem; font-size: 1.8rem; }
.card h3 { margin: 0; font-size: 1.1rem; line-height: 1.25; }
.card-link { color: var(--ink); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link:hover { color: var(--forest); text-decoration: underline; }
.card-link:focus-visible { outline-offset: 0; }
.card .domain { font-size: 0.82rem; font-weight: 600; color: var(--ocean); word-break: break-all; margin-top: 0.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.5; flex: 1; }
.pills { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.1rem; position: relative; z-index: 1; }
.pill {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--rule-strong); color: var(--forest); padding: 0.28rem 0.55rem; border-radius: 2px;
  text-decoration: none; background: var(--paper);
}
.pill:hover { background: var(--forest); color: #fff; border-color: var(--forest); text-decoration: none; }
.lang-note { font-size: 0.8rem; color: var(--muted); }

/* Page header */
.page-hero { padding: 2.2rem 0 1.6rem; border-bottom: 1px solid var(--rule-strong); margin-bottom: 0.5rem; }
.page-hero > p { max-width: 42rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--forest); padding: 0.3rem 0; display: inline-block; }
.prose { max-width: 44rem; }
.prose p, .prose li { margin: 0 0 0.9rem; }
.prose h2 { margin-top: 1.9rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.page-hero.prose { border-bottom: 0; }
.list-section { padding-top: 1.6rem; }
.notice {
  background: var(--sand); border-left: 4px solid var(--brass); padding: 0.85rem 1rem;
  margin: 1rem 0 1.4rem; font-size: 0.95rem;
}

/* Site profile */
.profile-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.profile-head h1 { margin: 0; }
.profile-head .domain { margin: 0.15rem 0 0; font-weight: 600; color: var(--ocean); word-break: break-all; }
.profile { display: grid; grid-template-columns: 1.5fr 0.8fr; gap: 3rem; padding: 1.6rem 0 2.5rem; }
.profile .prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.visit {
  display: flex; flex-direction: column; gap: 0.9rem; align-self: start;
  background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--forest); padding: 1.2rem; border-radius: 2px;
}
.visit .btn { width: 100%; text-align: center; word-break: break-all; }
.meta-dl { margin: 0; }
.meta-dl div { display: flex; flex-direction: column; border-top: 1px solid var(--rule); padding: 0.6rem 0; }
.meta-dl dt { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.meta-dl dd { margin: 0.15rem 0 0; word-break: break-word; }
.source-quote { font-family: var(--serif); color: var(--ink); border-left: 3px solid var(--brass); background: var(--sand); padding: 0.9rem 1.1rem; margin: 0 0 1rem; }
.prose .cards { grid-template-columns: 1fr 1fr; max-width: none; }

/* Official placeholder */
.ready-slot {
  border: 1px solid var(--rule-strong); border-left: 4px solid var(--brass); background: var(--card); padding: 1.3rem 1.3rem; border-radius: 2px;
  color: var(--muted);
}
.ready-slot h2, .ready-slot p:last-child { margin-bottom: 0; }

/* Footer */
footer.site {
  background: var(--ink); color: #D5DDD8; padding: 3rem 0 1.6rem; margin-top: 2rem;
  font-size: 0.93rem; border-top: 4px double var(--brass);
}
footer.site a { color: #fff; text-underline-offset: 0.2em; }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
footer.site h2 { color: #fff; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; margin: 0 0 0.7rem; }
footer.site .foot-brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: #fff; margin: 0 0 0.5rem; }
footer.site p { margin: 0 0 0.7rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li a { display: inline-block; padding: 0.3rem 0; min-height: 36px; }
footer.site .legal { margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,0.18); font-size: 0.83rem; color: #B7C3BC; }
footer.site .legal p { margin: 0 0 0.4rem; max-width: 52rem; }
footer.site .legal a { color: #fff; }

/* A-Z */
.az { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.8rem 0 0.4rem; }
.az a {
  min-width: 2.75rem; min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule-strong); border-radius: 2px; text-decoration: none; font-weight: 700; font-size: 0.9rem;
  background: var(--card); color: var(--forest);
}
.az a:hover { background: var(--forest); color: #fff; border-color: var(--forest); }
.letter-head { margin: 2rem 0 0.9rem; padding-top: 0.6rem; border-top: 2px solid var(--forest); font-size: 1.5rem; scroll-margin-top: 1rem; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; }
.filters a, .filters button {
  border: 1px solid var(--rule-strong); background: var(--card); color: var(--ink);
  font: inherit; font-size: 0.9rem; font-weight: 600; padding: 0.5rem 0.85rem;
  border-radius: 2px; cursor: pointer; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}
.filters a:hover { background: var(--sand); }
.filters a[aria-current="page"], .filters a.is-on { background: var(--forest); color: #fff; border-color: var(--forest); }

.empty { color: var(--muted); padding: 1.2rem 0; }

@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero, .profile { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 2rem 0; }
  .banner { aspect-ratio: 16 / 7; }
  .intro.has-photo::before { background: linear-gradient(180deg, rgba(12,32,24,0.9), rgba(12,32,24,0.86)); }
  .region-list { grid-template-columns: 1fr 1fr; }
  .mast-inner { flex-wrap: wrap; gap: 0.9rem; padding: 0.9rem 0; }
  .mast-search { flex: 1 1 100%; }
  .wm-text { font-size: 1.55rem; }
  .signet { width: 40px; height: 40px; }
  .menu-toggle { display: inline-flex; }
  nav.primary { display: none; flex-direction: column; align-items: stretch; padding-bottom: 0.5rem; border-top: 1px solid rgba(255,255,255,0.2); }
  .nav-check:checked ~ nav.primary { display: flex; }
  nav.primary a { padding: 0.8rem 0; min-height: 48px; border-bottom: 1px solid rgba(255,255,255,0.14); margin: 0; }
  nav.primary a:first-child { padding-left: 0; }
  nav.primary a[aria-current="page"] { border-bottom-color: var(--brass-soft); }
}
@media (max-width: 620px) {
  .map-label { font-size: 33px; }
  .map-water { font-size: 28px; }
  body { font-size: 1.0625rem; }
  .tiles, .cards, .region-list, .prose .cards { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; gap: 1.6rem; }
  .wrap { width: min(var(--max), calc(100% - 1.6rem)); }
  .util-inner > span:first-child { display: none; }
  .util-inner { justify-content: flex-end; }
  .wm-text small { display: none; }
  .profile-head { align-items: flex-start; }
  .hero-links .btn { flex: 1 1 100%; }
  section { padding: 2rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
