:root {
  --orange: #ff8800;
  --deep: #ff5400;
  --ink: #2a2118;
  --paper: #ffffff;
  --wash: #fff6ec;
  --line: #f0d7bf;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--deep); }
header .bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 6vw;
  background: var(--orange);
  color: #fff;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}
.tag { margin: 0; font-weight: 600; }
.sub {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 6vw;
  background: var(--deep);
  color: #fff;
  font-family: Nunito, "Segoe UI", sans-serif;
}
.sub a { color: #fff; }
.intro { padding: 2.2rem 6vw 0.6rem; max-width: 760px; }
h1, h2 { font-family: Nunito, "Segoe UI", sans-serif; font-weight: 800; letter-spacing: -0.03em; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0 0 0.3em; color: var(--deep); }
.intro p { margin: 0; color: #5c4a3a; font-size: 1.08rem; }
.map-wrap { padding: 1.2rem 4vw 0.2rem; }
.map-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.map-head h2 { margin: 0; color: var(--deep); font-size: 1.4rem; }
.map-head p { margin: 0; color: #5c4a3a; }
#map { width: 100%; height: 560px; background: var(--wash); border: 3px solid var(--orange); border-radius: 12px; margin-top: 0.7rem; cursor: grab; }
#map text { font-family: Nunito, "Segoe UI", sans-serif; }
#map .link { fill: none; stroke: #f0b27a; stroke-width: 1.4px; }
#map .link.is-on { stroke: var(--deep); stroke-width: 2.4px; }
#map .node circle { stroke: #fff; stroke-width: 2px; }
#map .node.is-dim { opacity: 0.28; }
#map .node.is-on circle { stroke: var(--deep); stroke-width: 3px; }
.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 1.2rem 6vw 0.4rem; }
.filters button {
  border: 2px solid var(--orange);
  background: #fff;
  color: var(--deep);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font: 700 0.95rem Nunito, "Segoe UI", sans-serif;
  cursor: pointer;
}
.filters button[aria-selected="true"] { background: var(--orange); color: #fff; border-color: var(--orange); }
.stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem 4vw 0;
}
figure {
  margin: 0;
  background: var(--wash);
  border: 3px solid var(--orange);
  border-radius: 12px;
  overflow: hidden;
}
#hero {
  width: 100%;
  height: min(66vh, 720px);
  object-fit: contain;
  background: #fff;
  transition: opacity 0.3s ease;
}
#hero.is-fading { opacity: 0.2; }
figcaption { padding: 0.75rem 1rem 1rem; border-top: 4px solid var(--orange); }
#count { margin: 0; color: var(--orange); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
figcaption h2 { margin: 0.15em 0 0; font-size: 1.45rem; color: var(--ink); }
.nav {
  width: 3.1rem;
  height: 3.1rem;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}
.nav:hover { background: var(--deep); }
.thumbs { display: flex; gap: 0.45rem; overflow-x: auto; padding: 0.9rem 6vw 2rem; }
.thumbs button {
  flex: 0 0 auto;
  width: 86px;
  height: 64px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: var(--wash);
  cursor: pointer;
}
.thumbs button[aria-selected="true"] { border-color: var(--deep); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
footer { background: #2a2118; color: #fff6ec; padding: 1.1rem 6vw; }
footer a { color: var(--orange); }
@media (max-width: 800px) {
  .stage { grid-template-columns: 1fr; padding: 0 1rem; }
  .nav { display: none; }
  .intro, .filters, .thumbs, header .bar, .sub, footer, .map-wrap { padding-left: 1rem; padding-right: 1rem; }
  #hero { height: 56vh; }
  #map { height: 420px; }
}
@media (prefers-reduced-motion: reduce) { #hero { transition: none; } }
