:root {
  --blue: #0F5BC2;
  --deep: #08347A;
  --ink: #161616;
  --paper: #FFFFFF;
  --fog: #EEF1F5;
  --mute: #5B6470;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
  --pad: clamp(1rem, 4vw, 2rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.55;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.6rem var(--pad);
  background: var(--blue); color: #fff;
  position: sticky; top: 0; z-index: 20;
}
.mark { display: flex; align-items: center; gap: 0.55rem; color: #fff; text-decoration: none; flex: 0 0 auto; }
.mark span { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.01em; }
.roundel { width: 34px; height: 34px; }
.nav {
  display: flex; gap: 0.15rem; margin-left: auto;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, #000 90%, transparent);
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: #fff; text-decoration: none; white-space: nowrap;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  padding: 0.35rem 0.6rem; border-radius: 3px;
}
.nav a[aria-current="page"] { background: rgba(255,255,255,0.18); }
.nav a:hover { background: rgba(255,255,255,0.12); }

/* ---------- layout ---------- */
main { min-height: 60vh; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 1.5rem var(--pad) 3rem; }
.prose > p, .prose > dl, .prose > ul, .prose > h1, .prose > h2, .wrap > h1, .wrap > .lede, .show > p {
  max-width: var(--measure);
}
h1, h2 {
  font-family: var(--display); font-weight: 700; line-height: 1;
  letter-spacing: -0.005em; margin: 0 0 0.6rem;
}
h1 { font-size: clamp(2.6rem, 2rem + 3vw, 4.5rem); margin-top: 0.5rem; }
h2 { font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem); margin-top: 3rem; }
.lede { font-size: 1.12em; line-height: 1.45; color: var(--ink); }
p { margin: 0 0 1.1em; }
.small { font-size: 0.85rem; color: var(--mute); }
.credit { font-size: 0.8rem; color: var(--mute); }
.count { font-family: var(--body); font-weight: 400; font-size: 0.5em; color: var(--mute); vertical-align: middle; margin-left: 0.4rem; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--deep); }
.hero > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-band { background: var(--blue); color: #fff; padding: 1.4rem var(--pad) 1.6rem; }
.hero-band h1 {
  color: #fff; margin: -0.35em 0 0.4rem;
  font-size: clamp(3.2rem, 2.2rem + 6vw, 7.5rem);
  transform: translateY(-38%);
  text-shadow: 0 2px 0 rgba(0,0,0,0.25);
}
.hero-band .lede { color: #fff; max-width: var(--measure); }
.hero-band h1 + .lede { margin-top: -1.5rem; }
.hero-band .credit { color: rgba(255,255,255,0.7); margin: 0; }
@media (min-width: 900px) {
  .hero > img { aspect-ratio: 21 / 9; max-height: 78vh; }
  .hero-band { padding-bottom: 2.4rem; }
  .hero-band h1 + .lede { margin-top: -2.4rem; }
}

/* ---------- figures ---------- */
figure { margin: 1.6rem 0; }
figure.wide { margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }
figure.wide img { width: 100%; }
figcaption { font-size: 0.9rem; color: var(--mute); padding: 0.45rem var(--pad) 0; }
figure:not(.wide) figcaption { padding-left: 0; padding-right: 0; }
@media (min-width: 900px) {
  figure.wide { margin-left: 0; margin-right: 0; }
  figure.wide figcaption { padding-left: 0; padding-right: 0; }
}
figure a.lb { display: block; }
figure img { background: var(--fog); }

.grid {
  display: grid; gap: 0.5rem;
  grid-template-columns: repeat(2, 1fr);
  margin: 1.6rem 0;
}
.grid figure { margin: 0; }
.grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.grid figcaption { padding: 0.3rem 0 0; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; } }

.strip {
  display: flex; gap: 0.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 1.2rem calc(-1 * var(--pad)); padding: 0 var(--pad) 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.strip figure { margin: 0; flex: 0 0 78vw; scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.strip figcaption { padding: 0.3rem 0 0; }
@media (min-width: 900px) {
  .strip { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .strip figure { flex: 0 0 420px; }
}

figure.video video { width: 100%; background: #000; aspect-ratio: 16 / 9; }
figure.video.portrait { max-width: 22rem; }
figure.video.portrait video { aspect-ratio: 9 / 16; }
figure.video figcaption { padding-left: 0; }

/* ---------- home doors ---------- */
.doors { display: grid; gap: 0.75rem; grid-template-columns: 1fr; margin: 2rem 0 1rem; }
.door {
  display: block; text-decoration: none; color: var(--ink);
  border-left: 6px solid var(--blue); background: var(--fog);
  padding: 1rem 1.1rem;
}
.door strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; margin-bottom: 0.3rem; }
.door span { color: var(--mute); }
.door:hover { background: #E3E9F2; }
@media (min-width: 700px) { .doors { grid-template-columns: 1fr 1fr; } }

/* ---------- spec list ---------- */
.spec { margin: 1.5rem 0; padding: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.2rem; }
.spec dt { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--deep); }
.spec dd { margin: 0; }
@media (max-width: 480px) { .spec { grid-template-columns: 1fr; gap: 0 } .spec dd { margin-bottom: 0.7rem; } }

/* ---------- shows ---------- */
.show { border-top: 3px solid var(--ink); padding-top: 1.2rem; margin-top: 2.2rem; }
.show-head time { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--blue); }
.show-head h2 { margin-top: 0.1rem; }
.show-head .place { color: var(--mute); margin: 0 0 0.9rem; }
.award {
  display: inline-block; vertical-align: middle; margin-left: 0.6rem;
  font-family: var(--body); font-weight: 500; font-size: 0.55em;
  background: var(--ink); color: #fff; padding: 0.25em 0.6em; border-radius: 2px;
}

/* ---------- press / files ---------- */
.press { list-style: none; padding: 0; margin: 1rem 0 2rem; }
.press li { padding: 0.75rem 0; border-bottom: 1px solid #DCE1E8; }
.press a { font-weight: 500; }
.press .meta { display: block; color: var(--mute); font-size: 0.9rem; }
.files .meta { display: inline; margin-left: 0.6rem; }

/* ---------- archive thumbs ---------- */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 4px; margin: 1rem 0 2rem; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--fog); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #fff; padding: 2rem var(--pad) 3rem; }
.foot a { color: #fff; }
.foot p { margin: 0 0 0.5rem; max-width: var(--measure); }
.foot .small { color: rgba(255,255,255,0.6); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; }
.lb-cap { color: #fff; margin: 0.6rem 0 0; font-size: 0.95rem; text-align: center; }
.lb-close {
  position: absolute; top: 0.6rem; right: 0.8rem; background: none; border: 0;
  color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  .door, .nav a { transition: background 120ms ease; }
}

/* ---------- guestbook ---------- */
.gb-form { max-width: var(--measure); margin: 1.2rem 0 2rem; display: grid; gap: 0.8rem; }
.gb-form label { display: grid; gap: 0.3rem; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.gb-form .hint { font-family: var(--body); font-weight: 400; font-size: 0.85rem; color: var(--mute); }
.gb-form input, .gb-form textarea {
  font: inherit; font-family: var(--body); padding: 0.6rem 0.7rem; border: 2px solid #C9D1DC; border-radius: 4px; background: #fff; color: var(--ink);
}
.gb-form input:focus, .gb-form textarea:focus { outline: none; border-color: var(--blue); }
.gb-form button {
  justify-self: start; font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  background: var(--blue); color: #fff; border: 0; border-radius: 4px; padding: 0.6rem 1.1rem; cursor: pointer;
}
.gb-form button[disabled] { opacity: 0.6; cursor: default; }
.gb-form .hp { position: absolute; left: -9999px; }
.gb-status { color: var(--mute); margin: 0; min-height: 1.4em; }
.gb-list { max-width: var(--measure); }
.gb-item { border-left: 6px solid var(--blue); background: var(--fog); padding: 0.9rem 1rem; margin: 0 0 0.75rem; }
.gb-msg { margin: 0 0 0.4rem; white-space: pre-line; }
.gb-meta { margin: 0; color: var(--mute); font-size: 0.9rem; }
.gb-actions { margin: 0.6rem 0 0; }
.gb-actions button { font: inherit; font-family: var(--display); font-weight: 600; background: var(--ink); color: #fff; border: 0; border-radius: 3px; padding: 0.3rem 0.7rem; cursor: pointer; margin-right: 0.3rem; }
.gb-actions button.danger { background: #8A1C1C; }
