:root {
  --night: #0d1820;
  --deep: #13232f;
  --line: #2a4253;
  --bone: #e9e3d3;
  --ash: #9fb0bb;
  --frost: #a8d4ea;
  --frost-dim: #6f9bb3;
  --blood: #a3201f;
  --display: "Pirata One", "UnifrakturMaguntia", Georgia, serif;
  --body: "Alegreya", Georgia, "Times New Roman", serif;
  --measure: 68ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--frost); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bone); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--frost); outline-offset: 3px; border-radius: 2px; }

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

/* ---------- site bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 24, 32, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.bar-inner {
  max-width: 1180px; margin: 0 auto; padding: 0.55rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.mark { font-family: var(--display); font-size: 1.9rem; line-height: 1; color: var(--bone); text-decoration: none; letter-spacing: 0.01em; }
.mark:hover { color: var(--frost); }
.bar nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.bar nav a { color: var(--ash); text-decoration: none; font-size: 1rem; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--bone); }
.bar nav a[aria-current="page"] { border-bottom: 1px solid var(--frost); }

/* ---------- home hero ---------- */
.hero {
  position: relative; min-height: 86vh; display: grid; align-items: end;
  background:
    linear-gradient(180deg, rgba(13,24,32,0.55) 0%, rgba(13,24,32,0.82) 55%, var(--night) 100%),
    url("../img/sb-total-destruction.jpg") center 40% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 1180px; margin: 0 auto; padding: 6rem 1.25rem 4rem; width: 100%; }
.oath {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, 9vw, 7.5rem); line-height: 0.95; margin: 0;
  color: var(--bone); max-width: 14ch;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}
.oath span { display: block; }
.oath span:last-child { color: var(--blood); }
.oath-source { margin: 1.2rem 0 0; color: var(--ash); font-style: italic; }
.hero-lede { max-width: 52ch; margin: 2rem 0 0; font-size: 1.25rem; line-height: 1.55; }

/* ---------- generic page frame ---------- */
main { display: block; }
.page-head { max-width: 1180px; margin: 0 auto; padding: 4rem 1.25rem 1rem; }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; margin: 0 0 1rem; }
.page-head p { max-width: 60ch; color: var(--ash); margin: 0; font-size: 1.2rem; }

.band { max-width: 1180px; margin: 0 auto; padding: 3.5rem 1.25rem; }
.band + .band { border-top: 1px solid var(--line); }
.band > h2 { font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1.05; margin: 0 0 1.25rem; }
.band > .intro { max-width: 60ch; color: var(--ash); margin: 0 0 2rem; }

/* ---------- the brothers ---------- */
.brothers { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.brother { padding: 2rem 2rem 2.2rem; }
.brother + .brother { border-left: 1px solid var(--line); }
.brother h3 { font-family: var(--display); font-weight: 400; font-size: 2.4rem; line-height: 1; margin: 0 0 0.4rem; }
.brother .aka { color: var(--frost); margin: 0 0 1rem; }
.brother p { margin: 0 0 0.6rem; max-width: 46ch; }
.brother .player { color: var(--ash); font-size: 0.95rem; margin-top: 1.2rem; }

/* ---------- the ledger (timeline of ages) ---------- */
.ledger { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--frost-dim); }
.ledger li { position: relative; display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; padding: 1.4rem 0 1.4rem 1.75rem; }
.ledger li + li { border-top: 1px dashed var(--line); }
.ledger li::before {
  content: ""; position: absolute; left: -7px; top: 2.05rem;
  width: 12px; height: 12px; background: var(--night); border: 2px solid var(--frost); transform: rotate(45deg);
}
.ledger .when { font-family: var(--display); font-size: 1.9rem; line-height: 1.1; color: var(--frost); }
.ledger .realm { font-size: 0.95rem; color: var(--ash); display: block; font-family: var(--body); }
.ledger h3 { margin: 0 0 0.3rem; font-size: 1.3rem; font-weight: 700; }
.ledger p { margin: 0; max-width: 62ch; }
.ledger a { white-space: nowrap; }

/* ---------- UDL call ---------- */
.kin { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.kin a { display: block; padding: 1.4rem 1.4rem 1.6rem; text-decoration: none; color: var(--bone); }
.kin a + a { border-left: 1px solid var(--line); }
.kin a:hover { background: var(--deep); }
.kin strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; margin-bottom: 0.35rem; color: var(--frost); }
.kin span { color: var(--ash); font-size: 1rem; }

/* ---------- strip of images ---------- */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.strip figure { margin: 0; }
.strip figcaption { font-size: 0.95rem; color: var(--ash); margin-top: 0.4rem; }
.strip button { all: unset; display: block; cursor: zoom-in; width: 100%; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }

/* ---------- reading layout ---------- */
.reading { max-width: 1180px; margin: 0 auto; padding: 1rem 1.25rem 5rem; display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3.5rem; }
.toc { position: sticky; top: 4.5rem; align-self: start; max-height: calc(100vh - 6rem); overflow: auto; padding-top: 2.2rem; font-size: 0.98rem; }
.toc p { margin: 0 0 0.6rem; color: var(--ash); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0 0 0.45rem; line-height: 1.35; }
.toc a { color: var(--ash); text-decoration: none; }
.toc a:hover { color: var(--bone); }

.prose { max-width: var(--measure); }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.02; margin: 4rem 0 1.25rem; scroll-margin-top: 5rem; }
.prose h2:first-child { margin-top: 2rem; }
.prose h3 { font-size: 1.45rem; line-height: 1.25; margin: 2.6rem 0 0.8rem; color: var(--frost); scroll-margin-top: 5rem; }
.prose p { margin: 0 0 1.15rem; }
.prose strong { color: #f4efe3; }
.prose blockquote { margin: 2rem 0; padding: 0 0 0 1.4rem; border-left: 3px solid var(--blood); font-size: 1.3rem; line-height: 1.45; }
.prose blockquote p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.4rem; }
.prose li { margin-bottom: 0.5rem; }
.prose hr { border: 0; text-align: center; margin: 2.5rem 0; }
.prose hr::after { content: "\2726  \2726  \2726"; color: var(--frost-dim); letter-spacing: 0.4em; }
.prose .coda { font-style: italic; color: var(--ash); }

table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: 1rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
th { color: var(--ash); font-weight: 500; border-bottom: 1px solid var(--frost-dim); }
tbody tr:hover { background: rgba(168, 212, 234, 0.04); }
.table-wrap { overflow-x: auto; }

figure.shot { margin: 2rem 0; }
figure.shot img { border: 1px solid var(--line); cursor: zoom-in; }
figure.shot.small img { max-width: 320px; image-rendering: auto; }
figure.shot figcaption { font-size: 0.98rem; color: var(--ash); margin-top: 0.55rem; font-style: italic; }

/* ---------- vault gallery ---------- */
.era { margin: 0 0 3.5rem; }
.era h3 { font-family: var(--display); font-weight: 400; font-size: 2rem; margin: 0 0 0.3rem; }
.era > p { color: var(--ash); max-width: 62ch; margin: 0 0 1.4rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem 0.9rem; }
.grid figure { margin: 0; }
.grid button { all: unset; display: block; cursor: zoom-in; width: 100%; }
.grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); background: var(--deep); }
.grid .contain img { object-fit: contain; padding: 0.5rem; }
.grid figcaption { font-size: 0.95rem; color: var(--ash); margin-top: 0.45rem; line-height: 1.4; }

dialog.lightbox { border: 1px solid var(--line); background: var(--night); color: var(--bone); padding: 0; max-width: min(1300px, 96vw); max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(5, 10, 14, 0.88); }
dialog.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; }
dialog.lightbox .lb-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 1rem; }
dialog.lightbox p { margin: 0; color: var(--ash); font-size: 1rem; }
dialog.lightbox button { background: none; border: 1px solid var(--line); color: var(--bone); font: inherit; padding: 0.3rem 0.9rem; cursor: pointer; }
dialog.lightbox button:hover { border-color: var(--frost); }

/* ---------- story ---------- */
.story .chapter-mark { font-family: var(--display); font-size: 2.8rem; color: var(--frost); margin: 4rem 0 1.5rem; line-height: 1; }
.story .byline { color: var(--ash); font-style: italic; }
.story .letter { margin: 1.6rem 0; padding: 1.2rem 1.4rem; border: 1px solid var(--blood); font-style: italic; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--deep); }
.foot-inner { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.foot .mark { font-size: 1.6rem; }
.foot p { margin: 0.4rem 0 0; color: var(--ash); font-size: 0.98rem; max-width: 40ch; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; grid-template-columns: repeat(2, auto); gap: 0.35rem 2rem; }
.foot li a { color: var(--frost); text-decoration: none; }
.foot li a:hover { text-decoration: underline; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .reading { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; max-height: none; padding-top: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
  .kin { grid-template-columns: 1fr 1fr; }
  .kin a:nth-child(3) { border-left: 0; }
  .kin a:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 1.06rem; }
  .bar { position: static; }
  .bar nav { gap: 0.9rem; }
  .brothers { grid-template-columns: 1fr; }
  .brother + .brother { border-left: 0; border-top: 1px solid var(--line); }
  .ledger li { grid-template-columns: 1fr; gap: 0.3rem; }
  .strip { grid-template-columns: 1fr; }
  .kin { grid-template-columns: 1fr; }
  .kin a + a { border-left: 0; border-top: 1px solid var(--line); }
  .hero { min-height: 72vh; }
  .foot ul { grid-template-columns: 1fr; }
}

/* ---------- a word from Skunk ---------- */
.word .prose { border-left: 3px solid var(--frost); padding-left: 1.6rem; }
.word .sign { font-family: var(--display); font-size: 1.8rem; color: var(--frost); margin-top: 1.5rem; }
.page-head .note { margin-top: 0.9rem; font-size: 1rem; font-style: italic; }
.foot .disclaimer { font-size: 0.9rem; margin-top: 0.8rem; max-width: 52ch; }

/* ---------- video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 960px; border: 1px solid var(--line); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { margin: 0.7rem 0 0; font-size: 1rem; }

.video-fig { margin: 0 0 2rem; }
.video-fig figcaption { font-size: 0.98rem; color: var(--ash); margin-top: 0.55rem; font-style: italic; }

.word .verse { border-left: 0; padding: 0; margin: 1.6rem 0 0; font-style: italic; font-size: 1.15rem; }
.word .verse .ref { font-style: normal; font-size: 0.95rem; color: var(--ash); margin-top: 0.4rem; }

.video-fig + .video-fig { margin-top: 2.5rem; }
.video-fig figcaption a { font-style: normal; }
