:root {
  --ink: #22251f;
  --ink-soft: #51564d;
  --paper: #f4f1e9;
  --paper-deep: #e7e1d4;
  --line: rgba(34, 37, 31, 0.16);
  --moss: #697963;
  --moss-light: #d9e0d0;
  --rust: #bd704f;
  --max: 1420px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
body.is-locked { overflow: hidden; }
button, a { font: inherit; color: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }

.site-shell { min-height: 100vh; overflow: clip; }
.section-frame { width: min(calc(100% - 80px), var(--max)); margin: 0 auto; }
.topbar {
  align-items: center;
  background: rgba(244, 241, 233, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 74px;
  justify-content: space-between;
  left: 0;
  padding: 0 40px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}
.wordmark { align-items: center; display: inline-flex; gap: 12px; }
.wordmark-mark {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  font-family: "DM Mono", monospace;
  font-size: 13px;
  height: 30px;
  justify-content: center;
  letter-spacing: .04em;
  width: 30px;
}
.wordmark-copy { font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .06em; line-height: 1.25; }
.wordmark-copy small { color: var(--ink-soft); font-size: 8px; letter-spacing: .12em; }
.topnav { display: flex; gap: 30px; margin-left: auto; margin-right: 32px; }
.topnav a { color: var(--ink-soft); font-size: 12px; letter-spacing: .03em; transition: color .2s ease; }
.topnav a:hover, .topnav a:focus-visible { color: var(--rust); }
.outline-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--ink);
  display: inline-flex;
  gap: 8px;
  padding: 9px 13px;
  font-size: 11px;
  letter-spacing: .02em;
  transition: background .2s ease, color .2s ease;
}
.outline-button:hover, .outline-button:focus-visible { background: var(--ink); color: var(--paper); }

.hero { min-height: min(860px, 94vh); position: relative; isolation: isolate; }
.hero-image { height: 100%; inset: 0; object-fit: cover; object-position: center; position: absolute; width: 100%; z-index: -3; }
.hero-wash { background: rgba(26, 29, 24, .36); inset: 0; position: absolute; z-index: -2; }
.hero-content { color: #f9f6ed; left: max(40px, calc((100% - var(--max)) / 2)); max-width: 680px; padding-top: 180px; position: absolute; top: 0; }
.eyebrow, .section-kicker, .board-type, .board-count, .filter-button, .credit-line, .footer, .lightbox-footer { font-family: "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.eyebrow { font-size: 11px; letter-spacing: .12em; margin: 0 0 27px; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; letter-spacing: 0; line-height: .98; margin: 0; }
h1 { font-size: clamp(3.6rem, 8vw, 8.6rem); }
h1 em, h2 em { color: var(--moss-light); font-style: italic; }
.hero-deck { font-size: 17px; margin: 30px 0 38px; max-width: 470px; }
.hero-link { align-items: center; border-bottom: 1px solid rgba(255,255,255,.65); display: inline-flex; font-size: 13px; gap: 18px; padding-bottom: 8px; }
.hero-link:hover span:last-child { transform: translateY(4px); }
.hero-link span:last-child { transition: transform .2s ease; }
.hero-index { align-items: center; bottom: 32px; color: #fff; display: flex; font-family: "DM Mono", monospace; font-size: 10px; gap: 10px; position: absolute; right: 40px; }
.hero-index i { background: #fff; display: block; height: 1px; opacity: .7; width: 52px; }

.intro { padding: 130px 0 150px; }
.section-kicker { align-items: center; color: var(--ink-soft); display: flex; font-size: 10px; gap: 12px; margin-bottom: 37px; }
.section-kicker span:first-child { color: var(--rust); }
.section-kicker span:last-child::before { background: var(--line); content: ""; display: inline-block; height: 1px; margin: 0 12px 3px 0; width: 36px; }
.intro-grid, .closing-grid { display: grid; gap: 14%; grid-template-columns: 1.05fr .95fr; }
.intro h2, .closing h2 { font-size: clamp(3rem, 5vw, 6.1rem); }
.intro h2 em, .closing h2 em { color: var(--moss); }
.intro-copy { color: var(--ink-soft); max-width: 580px; }
.intro-copy p { margin: 0 0 17px; }
.stat-row { border-top: 1px solid var(--line); display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin-top: 44px; padding-top: 19px; }
.stat-row div { display: flex; flex-direction: column; gap: 1px; }
.stat-row strong { color: var(--rust); font-family: "Playfair Display", Georgia, serif; font-size: 36px; font-weight: 500; line-height: 1; }
.stat-row span { color: var(--ink-soft); font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; }

.board-section { border-top: 1px solid var(--line); padding: 96px 0 140px; }
.section-heading { align-items: end; display: flex; justify-content: space-between; }
.section-heading .section-kicker { margin-bottom: 22px; }
.section-heading h2 { font-size: clamp(3rem, 5vw, 5.3rem); }
.board-count { color: var(--ink-soft); font-size: 10px; margin: 0 0 8px; }
.board-count span { color: var(--rust); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 50px 0 34px; }
.filter-button { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); font-size: 10px; padding: 9px 12px; transition: all .2s ease; }
.filter-button:hover, .filter-button:focus-visible { border-color: var(--moss); color: var(--moss); }
.filter-button.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.board-grid { display: grid; gap: 42px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.board-card { min-width: 0; }
.board-card-featured { grid-column: 1 / -1; }
.board-trigger { background: transparent; border: 0; display: block; padding: 0; text-align: left; width: 100%; }
.board-image-wrap { background: var(--paper-deep); display: block; overflow: hidden; position: relative; }
.board-image-wrap::after { background: rgba(34, 37, 31, 0); content: "View board ↗"; color: #fff; display: grid; font-family: "DM Mono", monospace; font-size: 11px; inset: 0; letter-spacing: .03em; place-items: center; position: absolute; transition: background .25s ease; }
.board-trigger:hover .board-image-wrap::after, .board-trigger:focus-visible .board-image-wrap::after { background: rgba(34, 37, 31, .42); }
.board-image-wrap img { aspect-ratio: 2 / 1; height: auto; object-fit: cover; transition: transform .45s cubic-bezier(.2,.6,.3,1); width: 100%; }
.board-trigger:hover img, .board-trigger:focus-visible img { transform: scale(1.025); }
.board-meta { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 14px; grid-template-columns: 30px minmax(0, 1fr) auto; padding: 12px 0 13px; }
.board-number { color: var(--rust); font-family: "DM Mono", monospace; font-size: 10px; }
.board-title { font-size: 14px; font-weight: 600; }
.board-type { color: var(--ink-soft); font-size: 9px; }
.empty-state { color: var(--ink-soft); font-family: "DM Mono", monospace; font-size: 12px; margin-top: 40px; text-transform: uppercase; }
.board-card.is-hidden { display: none; }

.closing { border-top: 1px solid var(--line); padding: 102px 0 146px; }
.closing .section-kicker { margin-bottom: 44px; }
.closing-grid { align-items: end; }
.closing-grid p { color: var(--ink-soft); margin: 0 0 18px; max-width: 500px; }
.credit-line { color: var(--rust) !important; font-size: 10px; margin-top: 37px !important; }
.footer { align-items: center; border-top: 1px solid var(--line); color: var(--ink-soft); display: flex; font-size: 10px; justify-content: space-between; padding: 21px 0 30px; }
.footer a { color: var(--ink); }

.toast { background: var(--ink); bottom: 22px; color: var(--paper); font-family: "DM Mono", monospace; font-size: 11px; left: 50%; opacity: 0; padding: 12px 15px; pointer-events: none; position: fixed; transform: translate(-50%, 12px); transition: opacity .2s ease, transform .2s ease; z-index: 50; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.lightbox[hidden] { display: none; }
.lightbox { align-items: center; display: flex; inset: 0; justify-content: center; padding: 28px; position: fixed; z-index: 40; }
.lightbox-backdrop { background: rgba(17, 19, 16, .86); inset: 0; position: absolute; }
.lightbox-panel { color: var(--paper); display: flex; flex-direction: column; max-height: calc(100vh - 56px); max-width: 1500px; position: relative; width: 100%; z-index: 1; }
.lightbox-bar, .lightbox-footer { align-items: center; display: flex; justify-content: space-between; }
.lightbox-bar { border-bottom: 1px solid rgba(244,241,233,.24); font-size: 14px; padding: 0 0 14px; }
.lightbox-number { color: #d78b67; font-family: "DM Mono", monospace; font-size: 10px; margin-right: 14px; }
.lightbox-title { font-weight: 600; }
.icon-button { align-items: center; background: transparent; border: 1px solid rgba(244,241,233,.5); color: var(--paper); display: inline-flex; font-family: Arial, sans-serif; font-size: 25px; height: 40px; justify-content: center; line-height: 1; width: 40px; }
.icon-button:hover, .icon-button:focus-visible { background: var(--paper); color: var(--ink); }
.lightbox-stage { align-items: center; display: flex; gap: 18px; justify-content: center; min-height: 0; padding: 22px 0; }
.lightbox-stage img { max-height: calc(100vh - 190px); object-fit: contain; width: min(100%, 1320px); }
.nav-button { flex: 0 0 auto; }
.lightbox-footer { color: rgba(244,241,233,.7); font-size: 9px; padding-top: 14px; }
.lightbox-footer span:first-child { color: #d78b67; }

@media (max-width: 900px) {
  .section-frame { width: min(calc(100% - 40px), var(--max)); }
  .topbar { height: 64px; padding: 0 20px; }
  .topnav { gap: 15px; margin-right: 14px; }
  .topnav a { font-size: 11px; }
  .outline-button { padding: 8px 10px; }
  .outline-button span:last-child { display: none; }
  .hero { min-height: 80vh; }
  .hero-content { left: 20px; max-width: calc(100% - 40px); padding-top: 135px; }
  .hero-deck { font-size: 15px; max-width: 340px; }
  .hero-index { bottom: 22px; right: 20px; }
  .intro { padding: 90px 0 108px; }
  .intro-grid, .closing-grid { gap: 42px; grid-template-columns: 1fr; }
  .board-section { padding: 76px 0 105px; }
  .board-grid { gap: 34px 14px; }
  .closing { padding: 82px 0 104px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .wordmark-copy { font-size: 10px; }
  .topnav { display: none; }
  .topbar { height: 58px; }
  .hero { min-height: 82vh; }
  .hero-image { object-position: 56% center; }
  .hero-content { padding-top: 116px; }
  .eyebrow { font-size: 9px; margin-bottom: 19px; }
  h1 { font-size: clamp(3.3rem, 17vw, 5.2rem); }
  .hero-deck { font-size: 14px; line-height: 1.4; margin: 24px 0 28px; }
  .section-kicker { font-size: 9px; margin-bottom: 27px; }
  .intro h2, .closing h2, .section-heading h2 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .stat-row { gap: 8px; }
  .stat-row strong { font-size: 30px; }
  .stat-row span { font-size: 8px; }
  .section-heading { align-items: start; flex-direction: column; gap: 11px; }
  .board-count { margin: 0; }
  .filter-bar { margin: 36px 0 27px; }
  .filter-button { font-size: 9px; padding: 8px 9px; }
  .board-grid { grid-template-columns: 1fr; }
  .board-card-featured { grid-column: auto; }
  .board-meta { gap: 9px; grid-template-columns: 27px minmax(0, 1fr); }
  .board-type { grid-column: 2; grid-row: 2; margin-top: -8px; }
  .lightbox { padding: 16px; }
  .lightbox-bar { font-size: 12px; }
  .lightbox-stage { gap: 8px; padding: 16px 0; }
  .lightbox-stage img { max-height: calc(100vh - 170px); width: calc(100% - 60px); }
  .nav-button { height: 34px; width: 34px; }
  .lightbox-footer span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
