:root {
  --ink: #111111;
  --paper: #f3eadb;
  --paper-2: #fff8e8;
  --red: #b52b25;
  --teal: #2b9cab;
  --yellow: #ffd645;
  --muted: #665c50;
  --line: rgba(17, 17, 17, 0.16);
  --shadow: 0 28px 90px rgba(17, 17, 17, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 6%, rgba(43,156,171,.30), transparent 26rem),
    radial-gradient(circle at 93% 12%, rgba(181,43,37,.22), transparent 28rem),
    linear-gradient(180deg, var(--paper-2), var(--paper));
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background-image: linear-gradient(90deg, var(--ink) 1px, transparent 1px), linear-gradient(var(--ink) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .85rem clamp(1rem, 4vw, 3rem);
  background: rgba(243,234,219,.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand img { width: 112px; height: auto; display: block; mix-blend-mode: multiply; }
nav { display: flex; gap: clamp(.75rem, 2vw, 1.6rem); flex-wrap: wrap; justify-content: flex-end; }
nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
}
nav a:hover { color: var(--red); }

main { overflow: hidden; }
section { padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 5vw, 5rem); }
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.hero { min-height: 82vh; padding-top: clamp(3rem, 7vw, 7rem); }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--red);
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
}
.eyebrow.yellow { color: #8c6500; }

h1, h2, h3 { line-height: .95; margin: 0; letter-spacing: -.055em; }
h1 { font-size: clamp(4rem, 13vw, 10.5rem); max-width: 10ch; }
h2 { font-size: clamp(3rem, 8vw, 7.25rem); max-width: 11ch; }
h3 { font-size: clamp(1.45rem, 3vw, 2.25rem); margin-bottom: .7rem; }
.lede { font-size: clamp(1.15rem, 2vw, 1.55rem); max-width: 46rem; color: #2c2722; }
p { margin: 1rem 0 0; }

.origin-quote {
  margin: 1.25rem 0 1.5rem;
  padding: 0 0 0 1.1rem;
  border-left: 3px solid var(--red);
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-style: italic;
  font-weight: 700;
  color: var(--red);
  line-height: 1.3;
}

.hero-actions { margin-top: 2rem; display: flex; gap: .85rem; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .16s ease, box-shadow .16s ease;
}
.button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button.primary { background: var(--yellow); }
.button.ghost { background: rgba(255,255,255,.35); }

figure { margin: 0; }
.hero-card, .bncd-card, .spec-card {
  background: rgba(255,248,232,.80);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.hero-card img, .bncd-card img { width: 100%; display: block; aspect-ratio: 4 / 5; object-fit: cover; }
figcaption {
  padding: .85rem 1rem;
  font-weight: 850;
  border-top: 2px solid var(--ink);
  background: var(--yellow);
}

.panel {
  margin: 0 clamp(1rem, 4vw, 4rem) clamp(2rem, 4vw, 4rem);
  border: 2px solid var(--ink);
  border-radius: 34px;
  background: linear-gradient(135deg, var(--yellow), #fff1a4 58%, #feeec9);
  box-shadow: 10px 10px 0 var(--ink);
}
.peacetime { padding: clamp(2rem, 6vw, 5rem); }
.peacetime p, .archive p, .find p { max-width: 62ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }

.spec-card { padding: 1.25rem; transform: rotate(-1deg); box-shadow: 10px 10px 0 var(--ink); }
.spec-card img { width: min(260px, 78%); display: block; margin: 0 auto 1rem; mix-blend-mode: multiply; }
dl { margin: 0; display: grid; gap: .75rem; }
dl div { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: .75rem; }
dt { font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
dd { margin: 0; text-align: right; font-weight: 750; }

.story { background: #111; color: var(--paper-2); }
.story .eyebrow { color: var(--teal); }
.story-intro { max-width: 70rem; margin-bottom: 2.5rem; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.timeline article {
  padding: 1.25rem;
  min-height: 18rem;
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}
.timeline span { display: inline-block; margin-bottom: 2.5rem; color: var(--yellow); font-weight: 1000; font-size: 1.35rem; }
.timeline p { color: rgba(255,248,232,.78); }

.archive { align-items: start; }
.archive-intro { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 60ch; margin-bottom: 2rem; }

.vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.vote-card {
  all: unset;
  cursor: pointer;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.1rem 1.25rem;
  border: 2px solid var(--ink);
  background: rgba(255,248,232,.8);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.vote-card:hover:not(.voted) {
  background: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.vote-card:active:not(.voted) {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
  background: var(--yellow);
}
.vote-card.voted {
  background: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  cursor: default;
}
.vote-name {
  font-weight: 900;
  font-size: clamp(.95rem, 1.4vw, 1.15rem);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.vote-count {
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.vote-card.voted .vote-count { color: var(--ink); }
.vote-label {
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--red);
  margin-top: .2rem;
}
.vote-card.voted .vote-label { color: var(--ink); }

.bncd-card { transform: rotate(-1.5deg); }
.bncd-card img { object-fit: contain; padding: 1.5rem; background: #f8f1e2; }

.find { text-align: center; max-width: 72rem; margin-left: auto; margin-right: auto; }
.find h2 { margin-left: auto; margin-right: auto; }
.find > p { margin-left: auto; margin-right: auto; }
.closing { font-size: clamp(1.3rem, 2.5vw, 2rem) !important; line-height: 1.25; font-weight: 800; }

.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  text-align: left;
}
.place-card {
  background: rgba(255,255,255,.6);
  border: 2px solid var(--ink);
  padding: 1.1rem 1.25rem;
  box-shadow: 4px 4px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.place-card h3 {
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.2;
  font-style: italic;
  color: var(--muted);
}
.place-type {
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink);
  margin: 0;
}
.place-links {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  margin-top: .3rem;
}
.place-link {
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  padding: .28rem .55rem;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  transition: background .12s, color .12s;
}
.place-link:hover { background: var(--ink); color: var(--paper); }
.place-link.maps { border-color: var(--teal); color: var(--teal); }
.place-link.maps:hover { background: var(--teal); color: #fff; }
.place-link.ig { border-color: var(--red); color: var(--red); }
.place-link.ig:hover { background: var(--red); color: #fff; }
.place-link.web { border-color: var(--muted); color: var(--muted); }
.place-link.web:hover { background: var(--muted); color: #fff; }

footer {
  padding: 2rem clamp(1rem, 5vw, 5rem) 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
footer p { margin: 0; }
.draft-note { font-size: .9rem; }

@media (max-width: 900px) {
  .section-grid, .timeline { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .site-header { align-items: flex-start; }
  .brand img { width: 90px; }
  nav { max-width: 16rem; }
  h1 { font-size: clamp(3.8rem, 18vw, 6.5rem); }
  .timeline article { min-height: auto; }
  .timeline span { margin-bottom: 1rem; }
}

@media (max-width: 560px) {
  .site-header { position: relative; }
  nav a { font-size: .78rem; }
  section { padding-left: 1rem; padding-right: 1rem; }
  .panel { border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); }
}
