:root {
  --bg: #1d2426;
  --fg: #f1f0ed;
  --gold: #d7b779;
  --muted: #c8cbca;
  --soft: #d4d8d6;
  --line: #485052;
  --panel: #252d2f;
  --ink: #202729;
  --paper: #f5f2ec;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
h1, h2, h3, p, figure, ul { margin: 0; }
h1, h2 { font-weight: 400; line-height: 1.08; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.6rem, 5vw, 5.2rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3.4rem); }
h1 em, h2 em { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; color: var(--gold); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #161b1d; padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 12px; }
.wrap { max-width: 1440px; margin: auto; padding-left: 5%; padding-right: 5%; }
.site-header {
  max-width: 1440px; margin: auto; padding: 22px 5%;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; line-height: 1.1; }
img.mark { width: 30px; height: 30px; display: block; flex: none; }
.brand strong { display: block; font-size: 13px; letter-spacing: 0.16em; font-weight: 700; }
.brand small { display: block; margin-top: 4px; font-size: 11px; letter-spacing: 0.24em; color: var(--muted); }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; font-size: 15px; }
.site-header nav a { white-space: nowrap; }
.site-header nav a:hover, .site-footer a:hover, .text-link:hover { color: var(--gold); }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; align-items: center; padding: 64px 0 70px; }
.eyebrow, .section-index, .kicker {
  font-size: 13px; letter-spacing: 0.15em; font-weight: 700; color: var(--gold);
}
.hero h1 { margin: 22px 0 28px; }
.lede { font-size: clamp(1.12rem, 1.5vw, 1.32rem); line-height: 1.55; color: #d9dbd9; max-width: 36rem; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 8px; margin-top: 32px; }
.byline { font-size: 14px; color: #adb5b4; margin-top: 28px; }
.invite { display: block; width: max-content; margin-top: 18px; color: #adb5b4; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.invite:hover { color: var(--gold); border-bottom-color: var(--gold); }
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.proof img { display: block; width: 100%; height: 460px; object-fit: contain; background: #161b1d; }
.proof figcaption { font-size: 13px; color: #b7bfbd; margin-top: 8px; }
.book-faces { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.book-toc { margin: 28px auto 0; max-width: 760px; }
.book-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.book-open img { display: block; width: 100%; height: auto; background: #f5f2ec; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.book-open:hover img, .book-open:focus-visible img { outline: 2px solid var(--gold); outline-offset: 4px; }
.book-faces figcaption, .book-toc figcaption { font-size: 13px; color: #b7bfbd; margin-top: 8px; }
.prose p.book-hint { font-size: 13px; color: #b7bfbd; margin: 0 0 12px; max-width: none; }
.book-zoom { border: 0; padding: 12px; background: #111; color: var(--fg); width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow: auto; }
.book-zoom::backdrop { background: rgba(10, 12, 12, 0.9); }
.book-zoom form { display: flex; justify-content: flex-end; position: sticky; top: 0; z-index: 1; background: #111; padding-bottom: 8px; }
.book-zoom img { display: block; width: min(820px, 100%); height: auto; margin: 0 auto; background: #f5f2ec; }
.book-close { border: 1px solid var(--gold); background: #111; color: var(--gold); font: inherit; padding: 6px 12px; cursor: pointer; }
.book-close:hover { background: var(--gold); color: #161b1d; }
.buy-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 46rem; }
.hero-photo img { display: block; width: 100%; aspect-ratio: 1.17; object-fit: cover; object-position: 34% 50%; }
.hero-photo figcaption, .note { font-size: 13px; color: #b7bfbd; margin-top: 9px; }
.band { border-top: 1px solid var(--line); max-width: 1296px; margin: auto; padding: 72px 0; }
.split { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.split p, .prose p { font-size: 18px; color: var(--soft); line-height: 1.7; max-width: 46rem; }
.split p + p, .prose p + p { margin-top: 16px; }
.section-heading { display: flex; gap: 48px; align-items: baseline; margin-bottom: 32px; }
.section-heading .section-index { min-width: 180px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid #4a5556; padding: 26px;
  min-height: 280px; display: flex; flex-direction: column; align-items: flex-start;
}
.card:hover { background: #30393a; border-color: var(--gold); }
.card strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 400; line-height: 1.15; margin: 10px 0 14px; }
.card p { color: #d0d4d2; }
.card .go { color: var(--gold); margin-top: auto; padding-top: 22px; }
.soon { opacity: 0.72; }
.soon:hover { opacity: 1; }
.tag { font-size: 12px; letter-spacing: 0.12em; color: var(--gold); border: 1px solid var(--gold); padding: 2px 8px; }
.site-footer {
  max-width: 1440px; margin: auto; border-top: 1px solid var(--line);
  padding: 28px 5%; display: flex; justify-content: space-between; gap: 16px; color: #b6bebc; font-size: 14px;
}
.page-header { max-width: 1050px; margin: auto; padding: 64px 5% 28px; }
.page-header h1 { margin: 16px 0 20px; }
.page-header p { font-size: 18px; color: var(--soft); max-width: 44rem; }
.page { max-width: 1050px; margin: 0 auto 80px; padding: 0 5%; }
.back { color: var(--gold); display: inline-flex; margin-bottom: 24px; }
.test, .sheet section, .source { border-top: 1px solid var(--line); padding: 26px 0; }
.test h2, .source h2 { font-size: 1.7rem; letter-spacing: 0; margin-bottom: 8px; }
.test h3 { font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 16px 0 6px; }
.test p, .test li, .source p, .source li { color: var(--soft); }
.test a { color: var(--gold); border-bottom: 1px solid rgba(215, 183, 121, 0.45); }
.test ul, .sheet ul { padding-left: 1.2rem; }
.test li, .sheet li { margin: 6px 0; }
.sheet {
  background: var(--paper); color: var(--ink); padding: 40px 46px; margin-top: 12px;
}
.sheet h2 { font-family: Georgia, serif; font-size: 1.8rem; letter-spacing: 0; margin-bottom: 12px; }
.sheet section + section { border-top: 1px solid #bdc3c0; margin-top: 22px; padding-top: 20px; }
.sheet p, .sheet li { color: var(--ink); }
.sheet table, .data { width: 100%; border-collapse: collapse; font-size: 15px; }
.sheet th, .sheet td, .data th, .data td {
  border-bottom: 1px solid #c6ccc9; text-align: left; vertical-align: top; padding: 10px 8px;
}
.data { color: var(--soft); }
.data th, .data td { border-bottom-color: var(--line); }
.data th { color: var(--gold); font-weight: 700; }
.sheet th { width: 9.5rem; }
.print {
  border: 1px solid var(--gold); background: none; color: var(--gold);
  padding: 10px 16px; cursor: pointer; font: inherit; margin-bottom: 16px;
}
.print:hover { background: var(--gold); color: var(--ink); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 8px; }
.choices button, .choices label {
  border: 1px solid var(--line); background: var(--panel); color: var(--fg);
  padding: 10px 14px; cursor: pointer; font: inherit;
}
.choices label { position: relative; display: inline-flex; align-items: center; }
.choices label:has(input:checked), .choices button[aria-pressed="true"] {
  border-color: var(--gold); color: var(--gold);
}
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices label:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.result { border: 1px solid var(--gold); padding: 18px 20px; margin-top: 18px; }
.result strong { font-family: Georgia, serif; font-size: 1.4rem; font-weight: 400; display: block; margin-bottom: 8px; }
.site-header nav a[aria-current="page"] { color: var(--gold); }
.source a, .sheet a, .prose a { color: var(--gold); border-bottom: 1px solid rgba(215, 183, 121, 0.45); }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data { min-width: 36rem; }
.blank { width: 100%; border: none; border-bottom: 1px solid #8d9693; background: transparent; color: var(--ink); font: inherit; padding: 6px 0; }
.blank:focus { outline: none; border-bottom-color: #202729; }
.lines { display: grid; gap: 14px; margin-top: 8px; }
.lines label { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
@media (max-width: 900px) {
  .hero, .split, .section-heading, .grid { grid-template-columns: 1fr; display: grid; }
  .section-heading { display: block; }
  .section-heading h2 { margin-top: 12px; }
  .card { min-height: 0; }
  .site-header { flex-direction: column; align-items: stretch; }
  .site-header nav { width: 100%; justify-content: flex-start; gap: 10px 16px; }
  .site-footer { flex-direction: column; }
  .sheet { padding: 22px 16px; }
  .proof { grid-template-columns: 1fr; }
  .proof img { height: 320px; }
  h1 { font-size: clamp(2.05rem, 9vw, 3rem); }
}
@media (max-width: 520px) {
  .site-header nav { display: grid; grid-template-columns: repeat(3, max-content); column-gap: 16px; row-gap: 8px; }
}
.gallery-head { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 8px 0 28px; }
.gallery-chapter { font-size: 1.35rem; letter-spacing: 0; margin: 34px 0 12px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.thumbs button { display: block; padding: 0; border: 0; background: #111; cursor: pointer; width: 100%; }
.thumbs img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.thumbs button:hover img, .thumbs button:focus-visible img { outline: 2px solid var(--gold); outline-offset: -2px; }
.lb {
  display: none; position: fixed; inset: 0; z-index: 40;
  background: #000; color: var(--fg); place-items: center;
}
.lb.open { display: grid; }
.lb-frame {
  position: relative;
  width: min(100vw, 1920px, calc(100vh * 16 / 9));
  aspect-ratio: 16 / 9;
  max-height: 100vh;
  background: #000;
}
.lb-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lb-bar, .lb-caption { position: absolute; left: 0; right: 0; z-index: 2; }
.lb-bar {
  top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
  padding: 10px 14px; background: linear-gradient(to bottom, rgba(0,0,0,.62), transparent);
}
.lb-bar div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: calc(100% - 4.2rem); }
.lb-text { white-space: nowrap; }
.lb-caption {
  bottom: 0; display: block; max-height: 34%; overflow: auto;
  padding: 28px 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 64px; border: 0; background: rgba(0,0,0,.35); color: var(--fg);
  font-size: 28px; cursor: pointer;
}
.lb-nav.prev { left: 8px; }
.lb-nav.next { right: 8px; }
.lb-nav:hover, .lb-text:hover, .lb-text[aria-pressed="true"] { color: var(--gold); }
.lb-text {
  border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); color: var(--fg);
  font: inherit; padding: 8px 12px; cursor: pointer;
}
.lb-caption h2 { font-size: 1.35rem; letter-spacing: 0; margin-bottom: 4px; }
.lb-caption p { color: var(--soft); max-width: 52rem; }
.lb-exif { color: var(--gold); margin-top: 6px; }
.lb:fullscreen { background: #000; }
.lb:fullscreen .lb-frame { width: min(100vw, calc(100vh * 16 / 9)); }
@media (max-width: 700px) {
  .lb-nav { width: 36px; height: 48px; }
  .lb-bar, .lb-caption { position: fixed; left: 0; right: 0; background: #000; }
  .lb-bar { top: 0; padding: 8px 10px; }
  .lb-bar div { display: flex; gap: 6px; }
  .lb-caption { bottom: 0; max-height: 30%; padding: 8px 10px 10px; }
  .lb-caption h2 { font-size: 1.05rem; }
  .lb-text { font-size: 14px; padding: 6px 8px; }
  #lb-full { display: none; }
  .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .page-header, .back, .print, .skip-link, .no-print { display: none !important; }
  .page { max-width: none; margin: 0; padding: 0; }
  .sheet { background: #fff; color: #000; padding: 0; }
  .data, .data th, .data td { color: #000; border-color: #ccc; }
}
