:root {
  --ink: #24180f;
  --ink-soft: #5c4632;
  --kraft: #d7b98a;
  --kraft-deep: #c6a36e;
  --paper: #f7f1e4;
  --gold: #e2c98a;
  --hole: #1a130e;
  --plaque: #2a2118;
  --line: rgba(36, 24, 15, 0.14);
  --shadow: 0 16px 32px rgba(42, 24, 10, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #6a4b32;
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.lb-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--hole);
  outline-offset: 3px;
}

::selection {
  background: var(--hole);
  color: var(--paper);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--hole);
  color: var(--paper);
  text-decoration: none;
}

.skip:focus { top: 12px; }

.sheet {
  min-height: 100vh;
  background-color: var(--kraft);
  background-image:
    radial-gradient(900px 420px at 8% 0%, rgba(255, 244, 220, 0.5), transparent 62%),
    radial-gradient(700px 520px at 100% 8%, rgba(150, 96, 42, 0.14), transparent 56%),
    radial-gradient(820px 480px at 50% 100%, rgba(120, 74, 32, 0.1), transparent 52%);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.film-edge {
  height: 22px;
  background-color: var(--hole);
  background-image: radial-gradient(circle, var(--gold) 3px, transparent 3.3px);
  background-size: 18px 22px;
  background-position: center;
  background-repeat: repeat-x;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #d7b98a;
  background-image: linear-gradient(180deg, rgba(255, 244, 220, 0.38), rgba(215, 185, 138, 0) 78%);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  min-height: 64px;
  padding: 10px 0;
}

.brand {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 4px;
  min-width: 0;
}

.nav a {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid transparent;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover { border-color: rgba(36, 24, 15, 0.28); }

.nav a.is-active {
  background: var(--hole);
  color: var(--paper);
}

.tone {
  display: flex;
  flex: 0 0 auto;
  border: 1px solid var(--hole);
}

.tone button {
  appearance: none;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
}

.tone button[aria-pressed="true"] {
  background: var(--hole);
  color: var(--paper);
}

.hero { padding: 46px 0 36px; text-align: center; }

.kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow { margin-bottom: 10px; letter-spacing: 0.16em; }

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.05rem + 1.5vw, 2.55rem);
  line-height: 1;
}

.hero .tiles {
  justify-content: center;
  flex-wrap: nowrap;
  font-size: clamp(1.35rem, 4.5vw, 4.2rem);
}

.tiles span {
  position: relative;
  display: grid;
  place-items: center;
  width: 0.78em;
  height: 1.34em;
  padding-top: 0.08em;
  background: var(--hole);
  color: #f4ead8;
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  box-shadow: 2px 3px 0 rgba(28, 16, 8, 0.28);
}

.tiles span.dash { width: 0.42em; }

.tiles span::before,
.tiles span::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  height: 5px;
  background-image: radial-gradient(circle, #d4b06a 1.45px, transparent 1.65px);
  background-size: 6.5px 5px;
  background-repeat: repeat-x;
  background-position: center;
}

.tiles span::before { top: 3px; }
.tiles span::after { bottom: 3px; }

.plaque {
  background:
    linear-gradient(180deg, rgba(255, 236, 200, 0.06), transparent 32%),
    var(--plaque);
  color: #f7f0e2;
  border: 1px solid #c6a36a;
  box-shadow: 0 0 0 5px rgba(42, 33, 24, 0.22), var(--shadow);
  padding: 22px 22px 20px;
}

.hero .plaque {
  max-width: 640px;
  margin: 28px auto 0;
  text-align: left;
}

.plaque-title {
  margin: 0;
  color: #f0d7a4;
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-align: center;
}

.plaque-date {
  display: block;
  margin-top: 6px;
  color: #e6c98a;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.plaque p {
  margin: 14px 0 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.94rem;
  line-height: 1.65;
}

.plaque .lead {
  font-size: 1rem;
}

.noscript {
  max-width: 640px;
  margin: 18px auto 0;
  padding: 12px 14px;
  background: var(--paper);
  color: #3a2918;
  font-size: 0.92rem;
}

.boards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 34px;
  text-align: left;
}

.board {
  display: flex;
  flex-direction: column;
  color: inherit;
  background: var(--paper);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.board-meta { padding: 12px 14px 14px; }

.num {
  display: block;
  color: #8a6844;
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.board-name {
  display: block;
  margin-top: 2px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.05rem;
}

.board-sub {
  display: block;
  margin-top: 3px;
  color: #6d5340;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.panel {
  padding: 64px 0 12px;
  scroll-margin-top: 112px;
}

.panel + .panel {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.panel-head {
  display: grid;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 26px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.shot {
  appearance: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  box-shadow: var(--shadow);
}

.film {
  padding: 15px;
  background-color: #f2e4c6;
  background-image:
    linear-gradient(to right, var(--hole) 6px, transparent 6px),
    linear-gradient(to right, var(--hole) 6px, transparent 6px),
    linear-gradient(to bottom, var(--hole) 6px, transparent 6px),
    linear-gradient(to bottom, var(--hole) 6px, transparent 6px);
  background-size: 15px 6px, 15px 6px, 6px 15px, 6px 15px;
  background-position: top center, bottom center, left center, right center;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  border: 2px solid #dfc88a;
  box-shadow: inset 0 0 0 1px rgba(26, 19, 14, 0.45);
}

.film img { width: 100%; }

.board .film img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
  background: var(--paper);
  color: #3a2918;
}

.cap-no {
  color: #8a6844;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.cap-tl {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.86rem;
  line-height: 1.5;
}

.cap-credit {
  margin-top: 4px;
  color: #6d5340;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  line-height: 1.4;
}

.footer {
  padding: 36px 0 42px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 72px 78px 28px;
  background: rgba(18, 11, 7, 0.97);
}

.lightbox[hidden] { display: none; }

.lightbox :focus-visible { outline-color: var(--gold); }

.lb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(980px, 100%);
}

.lightbox .film {
  display: inline-block;
  width: auto;
  max-width: 100%;
}

.lightbox .film img {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 300px);
  max-height: calc(100vh - 300px);
  margin-inline: auto;
}

.lb-copy {
  width: min(720px, 100%);
  margin-top: 18px;
  color: #f6edd8;
}

.lb-count {
  margin: 0 0 6px;
  color: #e6c98a;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lb-fil {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1rem;
  line-height: 1.5;
}

.lb-credit {
  margin: 8px 0 0;
  color: #e6c98a;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: var(--hole);
  color: #f6edd8;
  cursor: pointer;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.35);
}

.lb-close { top: 16px; right: 16px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lb-close svg,
.lb-prev svg,
.lb-next svg { display: block; }

@media (min-width: 720px) {
  .boards { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(12, 1fr); gap: 26px 20px; }
  .span-12 { grid-column: span 12; }
  .span-6 { grid-column: span 6; }
  .span-4 { grid-column: span 6; }
}

@media (min-width: 880px) {
  .panel-head {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
    align-items: start;
  }
}

@media (min-width: 980px) {
  body { padding: 28px 22px 40px; }
  .sheet {
    max-width: 1240px;
    margin: 0 auto;
    min-height: calc(100vh - 68px);
    box-shadow: 0 28px 70px rgba(30, 16, 6, 0.45);
  }
}

@media (min-width: 1040px) {
  .boards { grid-template-columns: repeat(4, 1fr); }
  .span-4 { grid-column: span 4; }
}

@media (max-width: 860px) {
  .topbar-inner { flex-wrap: wrap; }
  .nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }
  .nav a { padding: 6px 8px; }
}

@media (max-width: 520px) {
  .nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
  }
}

@media (max-width: 700px) {
  .lightbox { padding: 68px 14px 92px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lightbox .film img { max-height: calc(100vh - 280px); }
}

@media (hover: hover) and (pointer: fine) {
  .shot, .board { transition: transform 0.3s ease, box-shadow 0.3s ease; }
  .shot:hover, .board:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(42, 24, 10, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot, .board { transition: none; }
}

@media print {
  body { background: white; padding: 0; }
  .topbar, .tone, .lightbox, .film-edge, .skip, .noscript { display: none !important; }
  .sheet { box-shadow: none; max-width: none; }
  .shot, .board { box-shadow: none; break-inside: avoid; }
}
