/* Hallmark · shape: Index-First · genre: atmospheric · theme: Cathedral (by request, Diablo-inspired) · job: visit · draw: d2r3d-00
 * hero: centered main-menu statement closed by a measured span · nav: iron beam with lit tabs · footer: colophon line · imagery: none (CSS-only texture) · signature: gold-leaf Cinzel on charred stone · palette: ember, gold, parchment
 * axes: mid/serif-display/warm-neutral · posture: drenched · contrast: pass · fold: pass · v2.1.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V5 · weakest: P, a record can only report; the argument lives in the register voice and the measured span, not in claims */

/* ==========================================================================
   Cathedral — a Diablo II-inspired codex. Charred stone and black iron,
   tarnished gold leaf, parchment ink. Cinzel for engraved display type,
   Barlow Condensed for the interface voice, Courier Prime for the ledger.
   Sharp corners, double rules, ember light. No borrowed game assets.
   ========================================================================== */

:root {
  --bg-0: #0a0806;
  --bg-1: #0f0c09;
  --bg-2: #14100b;
  --panel-hi: #221b13;
  --panel: #1a1410;
  --panel-lo: #120e0a;

  --gold: #c9a227;
  --gold-hi: #f0d98c;
  --gold-pale: #f7e7b0;
  --gold-dim: #8a6d2f;
  --gold-line: rgba(201, 162, 39, 0.22);
  --gold-line-2: rgba(201, 162, 39, 0.5);

  --ink: #d8c9a3;
  --ink-2: #b3a37e;
  --mut: #8f8168;
  --mut-2: #6b604c;

  --ember: #d4834a;
  --blood: #c05a4e;
  --arcane: #6b9fd4;

  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Barlow Condensed", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: "Courier Prime", "Courier New", monospace;

  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 36px;
  --space-2xl: 56px;
  --space-3xl: 80px;

  --container: 72rem;
  --gutter: 22px;
  --dur: 160ms;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  /* alpha + role tokens (gate 48: literals live here only) */
  --gold-a030: rgba(201, 162, 39, 0.03);
  --gold-a050: rgba(201, 162, 39, 0.05);
  --gold-a060: rgba(201, 162, 39, 0.06);
  --gold-a070: rgba(201, 162, 39, 0.07);
  --gold-a090: rgba(201, 162, 39, 0.09);
  --gold-a100: rgba(201, 162, 39, 0.1);
  --gold-a120: rgba(201, 162, 39, 0.12);
  --gold-a300: rgba(201, 162, 39, 0.3);
  --gold-a450: rgba(201, 162, 39, 0.45);
  --goldhi-a060: rgba(240, 217, 140, 0.06);
  --goldhi-a070: rgba(240, 217, 140, 0.07);
  --goldhi-a080: rgba(240, 217, 140, 0.08);
  --goldhi-a120: rgba(240, 217, 140, 0.12);
  --goldhi-a140: rgba(240, 217, 140, 0.14);
  --goldhi-a160: rgba(240, 217, 140, 0.16);
  --pale-a500: rgba(255, 246, 214, 0.5);
  --pale-a550: rgba(255, 246, 214, 0.55);
  --pale-a400: rgba(255, 242, 205, 0.4);
  --ember-a100: rgba(212, 143, 74, 0.1);
  --ember-a120: rgba(212, 143, 74, 0.12);
  --ember-a130: rgba(212, 143, 74, 0.13);
  --ember-a200: rgba(212, 143, 74, 0.2);
  --ember-a300: rgba(212, 143, 74, 0.3);
  --bright-a045: rgba(212, 175, 55, 0.045);
  --bright-a160: rgba(212, 175, 55, 0.16);
  --bright-a300: rgba(212, 175, 55, 0.3);
  --bright-a350: rgba(212, 175, 55, 0.35);
  --bright-a400: rgba(212, 175, 55, 0.4);
  --bright-a450: rgba(212, 175, 55, 0.45);
  --bright-a550: rgba(212, 175, 55, 0.55);
  --bright-a600: rgba(212, 175, 55, 0.6);
  --bright-a800: rgba(212, 175, 55, 0.8);
  --shade-a400: rgba(0, 0, 0, 0.4);
  --shade-a450: rgba(0, 0, 0, 0.45);
  --shade-a500: rgba(0, 0, 0, 0.5);
  --shade-a550: rgba(0, 0, 0, 0.55);
  --shade-a600: rgba(0, 0, 0, 0.6);
  --shade-a620: rgba(0, 0, 0, 0.62);
  --shade-a650: rgba(0, 0, 0, 0.65);
  --shade-a750: rgba(0, 0, 0, 0.75);
  --shade-a800: rgba(0, 0, 0, 0.8);
  --dim-a850: rgba(138, 109, 47, 0.85);
  --paneldeep-a900: rgba(17, 13, 9, 0.9);
  --panello-a900: rgba(18, 14, 10, 0.9);
  --panello-a920: rgba(18, 14, 10, 0.92);
  --panel-a850: rgba(29, 23, 17, 0.85);
  --panel-a900: rgba(29, 23, 17, 0.9);
  --panelhi-a850: rgba(34, 27, 19, 0.85);
  --panelhi-a900: rgba(34, 27, 19, 0.9);
  --bronze-a600: rgba(60, 44, 8, 0.6);
  --bg-3: #080604;
  --bar-hi: #1e1811;
  --bar: #171209;
  --bar-lo: #120e09;
  --iron-hi: #2b2117;
  --iron-lo: #14100c;
  --gold-edge: #6e5620;
  --gold-sub: #a8873f;
  --mono-ink: #cdbb90;
  --blood-hi: #d98a7c;
  --gold-btn: #eccd74;
  --ember-core: #ffe6ae;
  --on-gold: #3a2c0c;
  --on-gold-ink: #221804;
  --on-gold-deep: #171003;
  --panel: #1a1410;
  --gold-dim: #8a6d2f;
}

/* ---------- resets ---------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--gold-dim) var(--bg-1); scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--bg-0);
  background-image:
    radial-gradient(120% 80% at 50% -12%, var(--ember-a120), transparent 58%),
    radial-gradient(150% 130% at 50% 118%, var(--shade-a620), transparent 62%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 46%, var(--bg-3) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--gold);
}

/* grain + vignette overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
  background-size: 140px 140px;
}

.topbar, main, .footer { position: relative; z-index: 1; }

::selection { background: var(--gold-a300); color: var(--gold-pale); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--gold-a450); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }

.ic { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.14em; }
.mono, code { font-family: var(--font-mono); font-size: 0.88em; color: var(--mono-ink); }
.num { font-variant-numeric: tabular-nums; }

/* gold-leaf display text */
.gold-text {
  background: linear-gradient(180deg, var(--gold-pale) 0%, var(--gold-hi) 34%, var(--gold) 62%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not (background-clip: text) {
  .gold-text { color: var(--gold-hi); }
}

/* ==========================================================================
   Top bar — blackened iron beam with a lit tab for the current page
   ========================================================================== */

.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--bar-hi) 0%, var(--bar) 68%, var(--bar-lo) 100%);
  border-bottom: 3px double var(--dim-a850);
  box-shadow: 0 10px 26px var(--shade-a500), inset 0 1px 0 var(--goldhi-a080);
}

.topbar-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-block: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.sigil {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--gold-hi);
  border: 1px solid var(--gold-line-2);
  background: linear-gradient(180deg, var(--panel-hi), var(--panel-lo));
  box-shadow: inset 0 1px 0 var(--goldhi-a120), 0 2px 8px var(--shade-a550);
}
.sigil .ic { width: 19px; height: 19px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.16em;
}
.brand-name, .h1-main, .page-hero h1, .sec-title {
  background: linear-gradient(180deg, var(--gold-pale) 0%, var(--gold-hi) 34%, var(--gold) 62%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not (background-clip: text) {
  .brand-name, .h1-main, .page-hero h1, .sec-title { color: var(--gold-hi); }
}
.brand-name { filter: drop-shadow(0 1px 0 var(--shade-a750)); }
.brand-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--mut);
}

.nav { display: flex; align-items: stretch; flex-wrap: wrap; }

.nav a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0 15px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: normal;
  text-decoration: none;
  color: var(--ink-2);
  border-left: 1px solid var(--gold-a120);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav a:first-child { border-left: 0; }
.nav a .ic { width: 15px; height: 15px; color: var(--gold-dim); transition: color var(--dur) var(--ease); }
.nav a:hover { color: var(--gold-hi); background: var(--gold-a070); }
.nav a:hover .ic { color: var(--gold); }
.nav a:active { background: var(--gold-a120); }
.nav a[aria-current="page"] {
  color: var(--gold-hi);
  text-shadow: 0 0 14px var(--bright-a350);
  background: linear-gradient(180deg, var(--gold-a100), var(--gold-a030));
}
.nav a[aria-current="page"] .ic { color: var(--gold); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: var(--space-sm);
  right: var(--space-sm);
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-hi), transparent);
  box-shadow: 0 0 10px var(--bright-a550);
}
.nav a { position: relative; }

/* ==========================================================================
   Hero — the main menu. Centered statement, ember light, measured span.
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 76px;
  text-align: center;
  border-bottom: 1px solid var(--gold-line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(58% 85% at 50% 26%, var(--ember-a130), transparent 72%);
}
.hero .wrap { position: relative; z-index: 1; }

/* drifting embers */
.embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.embers i {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ember-core) 0%, var(--ember) 55%, transparent 75%);
  opacity: 0;
  animation: ember-rise var(--d, 9s) linear var(--dl, 0s) infinite;
}
.embers i:nth-child(1) { left: 12%; --d: 8s; --dl: 0s; --dx: 14px; }
.embers i:nth-child(2) { left: 24%; --d: 11s; --dl: 2.5s; --dx: -18px; width: 2px; height: 2px; }
.embers i:nth-child(3) { left: 38%; --d: 9.5s; --dl: 5s; --dx: 10px; }
.embers i:nth-child(4) { left: 52%; --d: 12s; --dl: 1.2s; --dx: -12px; width: 2px; height: 2px; }
.embers i:nth-child(5) { left: 63%; --d: 8.5s; --dl: 4s; --dx: 20px; }
.embers i:nth-child(6) { left: 76%; --d: 10.5s; --dl: 6.5s; --dx: -16px; }
.embers i:nth-child(7) { left: 88%; --d: 9s; --dl: 3s; --dx: 12px; width: 2px; height: 2px; }
@keyframes ember-rise {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  10%  { opacity: 0.85; }
  65%  { opacity: 0.45; }
  100% { transform: translate3d(var(--dx, 10px), -52vh, 0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .embers { display: none; } }

/* hero meta row — diamond-separated small caps */
.hero-sheetno {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs) 20px;
  margin-bottom: 30px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--mut);
}
.hero-sheetno span + span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: var(--space-sm);
  background: var(--gold-dim);
  transform: rotate(45deg) translateY(-1px);
}

/* sigil — sword in a diamond frame */
.hero-sigil {
  width: 66px;
  height: 66px;
  margin: 0 auto 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-line-2);
  background: linear-gradient(160deg, var(--panelhi-a900), var(--panello-a900));
  box-shadow: inset 0 1px 0 var(--goldhi-a140), 0 6px 18px var(--shade-a550);
  transform: rotate(45deg);
}
.hero-sigil .ic { width: 27px; height: 27px; color: var(--gold-hi); transform: rotate(-45deg); filter: drop-shadow(0 0 6px var(--bright-a350)); }

.hero h1 { font-size: clamp(2.6rem, 7.4vw, 6.2rem); letter-spacing: 0.1em; line-height: 1; }
.hero h1 .h1-main { display: block; }
.hero h1 .h1-sub {
  display: block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 2.1vw, 1.45rem);
  letter-spacing: 0.58em;
  text-indent: 0.58em;
  font-variant-caps: all-small-caps;
  color: var(--gold-sub);
  text-shadow: 0 1px 0 var(--shade-a800);
}
.hero h1 .gold-text { filter: drop-shadow(0 3px 0 var(--shade-a650)) drop-shadow(0 0 26px var(--bright-a160)); }

.hero-lede {
  margin: 26px auto 0;
  max-width: 58ch;
  font-size: 1.32rem;
  font-weight: 500;
  color: var(--ink-2);
}

/* ornamental flourish */
.orn {
  display: block;
  width: min(240px, 72vw);
  height: 16px;
  margin: 26px auto 0;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--gold-line-2);
  background: linear-gradient(180deg, var(--iron-hi) 0%, var(--panel) 58%, var(--iron-lo) 100%);
  box-shadow: inset 0 1px 0 var(--goldhi-a120), inset 0 -1px 0 var(--shade-a550), 0 4px 14px var(--shade-a500);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn .ic { width: 15px; height: 15px; color: var(--gold); }
.btn:hover {
  color: var(--gold-hi);
  border-color: var(--bright-a800);
  box-shadow: inset 0 1px 0 var(--goldhi-a160), 0 6px 22px var(--ember-a300), 0 4px 14px var(--shade-a500);
}
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 8px var(--shade-a600); }

.btn-primary {
  color: var(--on-gold-ink);
  border-color: var(--gold-edge);
  background: linear-gradient(180deg, var(--gold-btn) 0%, var(--gold) 46%, var(--gold-dim) 100%);
  text-shadow: 0 1px 0 var(--pale-a400);
  box-shadow: inset 0 1px 0 var(--pale-a500), inset 0 -1px 0 var(--bronze-a600), 0 4px 16px var(--shade-a550);
}
.btn-primary .ic { color: var(--on-gold); }
.btn-primary:hover {
  color: var(--on-gold-deep);
  border-color: var(--gold-dim);
  filter: brightness(1.07);
  box-shadow: inset 0 1px 0 var(--pale-a550), 0 6px 26px var(--bright-a450), 0 4px 16px var(--shade-a550);
}
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--gold-line);
  box-shadow: inset 0 1px 0 var(--goldhi-a120), 0 4px 14px var(--shade-a500);
}
.btn-ghost:hover {
  border-color: var(--bright-a800);
  box-shadow: inset 0 1px 0 var(--goldhi-a160), 0 6px 22px var(--ember-a200), 0 4px 14px var(--shade-a500);
}

/* dimension string — the hero's measured span */
.dim {
  margin: 44px auto 0;
  max-width: 660px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.dim-end, .dim-value { flex: none; }
.dim-line { flex: 1 1 0; min-width: 24px; }
.dim-line {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim) 30%, var(--gold-dim) 70%, transparent);
}
.dim-line::before,
.dim-line::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--bright-a400);
}
.dim-line::before { left: -4px; }
.dim-line::after { right: -4px; }
.dim-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.2em;
  color: var(--gold-hi);
  text-shadow: 0 0 12px var(--bright-a300);
  white-space: nowrap;
}
.dim-end {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--mut);
  white-space: nowrap;
}
.dim-end:last-child { text-align: right; }

/* ==========================================================================
   Sub-page hero
   ========================================================================== */

.page-hero {
  position: relative;
  padding: 68px 0 46px;
  text-align: center;
  border-bottom: 1px solid var(--gold-line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(55% 90% at 50% 0%, var(--ember-a100), transparent 72%);
}
.page-hero .wrap { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  letter-spacing: 0.14em;
  font-variant-caps: all-small-caps;
}

.page-hero .hero-lede {
  margin: 20px auto 0;
  max-width: 56ch;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink-2);
}
.page-hero .orn { margin-top: var(--space-lg); }

/* ==========================================================================
   Sections and heads
   ========================================================================== */

.section {
  padding-block: var(--space-2xl);
  border-bottom: 1px solid var(--gold-a100);
}
.section:last-of-type { border-bottom: 0; }

.sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  align-items: end;
  margin-bottom: var(--space-xl);
}

.sec-no {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--gold-dim);
  border: 1px solid var(--gold-line);
  background: var(--gold-a050);
  padding: 7px 13px;
  white-space: nowrap;
}

h2.sec-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  letter-spacing: 0.1em;
  font-variant-caps: all-small-caps;
}

.sec-note {
  grid-column: 1 / -1;
  color: var(--mut);
  font-size: 1.02rem;
  max-width: 72ch;
}
.sec-note a { color: var(--gold-hi); }

/* ==========================================================================
   The set — gothic menu entries
   ========================================================================== */

.index-list { display: grid; gap: 14px; }

.index-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--space-lg);
  align-items: center;
  padding: 20px var(--space-lg);
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, var(--panelhi-a850), var(--panello-a900));
  box-shadow: inset 0 1px 0 var(--goldhi-a070), 0 5px 16px var(--shade-a400);
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.index-row:hover {
  border-color: var(--bright-a600);
  box-shadow: inset 0 1px 0 var(--goldhi-a120), 0 6px 24px var(--ember-a200), 0 5px 16px var(--shade-a450);
  transform: translateY(-1px);
}
.index-row:active { transform: translateY(0); }

.index-no {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--gold-dim);
}

.index-name {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.07em;
  color: var(--gold-hi);
  text-shadow: 0 1px 0 var(--shade-a650);
}
.index-name .ic { width: 21px; height: 21px; color: var(--gold); filter: drop-shadow(0 0 5px var(--bright-a300)); }

.index-desc {
  display: block;
  font-size: 1rem;
  color: var(--ink-2);
  margin-top: 5px;
}

.index-open {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--mut);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.index-open .ic { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.index-row:hover .index-open { color: var(--gold-hi); }
.index-row:hover .index-open .ic { transform: translateX(3px); }

/* ==========================================================================
   Register tables — the ledger
   ========================================================================== */

.register {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, var(--panel-a850), var(--paneldeep-a900));
  box-shadow: inset 0 1px 0 var(--goldhi-a060), 0 6px 20px var(--shade-a400);
  font-size: 1.02rem;
}

.register th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--gold-line-2);
  background: var(--gold-a060);
  color: var(--gold-dim);
}

.register td {
  padding: 11px 18px;
  border-bottom: 1px solid var(--gold-a100);
  vertical-align: top;
  color: var(--ink-2);
}
.register tbody tr { transition: background-color var(--dur) var(--ease); }
.register tbody tr:hover { background: var(--bright-a045); }
.register tr:last-child td { border-bottom: 0; }
.register td b { color: var(--ink); font-weight: 600; }
.register td.mono { font-size: 0.95rem; }

/* group header rows inside the commands ledger */
.grp {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--gold-hi);
  text-shadow: 0 1px 0 var(--shade-a600);
  border-bottom: 1px solid var(--gold-line-2) !important;
  padding-top: var(--space-lg) !important;
  padding-bottom: 10px !important;
}
.grp b { color: var(--gold-hi); font-weight: 600; }

/* status marks — icon + word, colored by state */
.st {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.st .ic { width: 14px; height: 14px; }
.st-live    { color: var(--gold-hi); }
.st-progress { color: var(--ember); }
.st-invest  { color: var(--blood-hi); }
.st-shelved { color: var(--mut); }
.st-fixed   { color: var(--gold-hi); }

/* ==========================================================================
   Roadmap columns — three carved panels
   ========================================================================== */

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.col {
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, var(--panel-a850), var(--paneldeep-a900));
  box-shadow: inset 0 1px 0 var(--goldhi-a060), 0 5px 16px var(--shade-a400);
  padding: var(--space-lg) var(--space-lg) 10px;
}

.col h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  font-variant-caps: all-small-caps;
  color: var(--gold-hi);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--gold-line);
}

.col ul { margin: 0; padding: 0; list-style: none; }
.col li {
  position: relative;
  font-size: 1rem;
  color: var(--ink-2);
  padding: 11px 0 11px 20px;
  border-bottom: 1px solid var(--gold-a090);
}
.col li:last-child { border-bottom: 0; }
.col li::before {
  content: "";
  position: absolute;
  left: var(--space-3xs);
  top: 18px;
  width: 6px;
  height: 6px;
  background: var(--gold-dim);
  transform: rotate(45deg);
}
.col li b { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Note — margin annotation
   ========================================================================== */

.note {
  position: relative;
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, var(--panel-a900), var(--panello-a920));
  box-shadow: inset 0 1px 0 var(--goldhi-a060), 0 4px 14px var(--shade-a400);
  padding: 18px var(--space-lg);
  font-size: 1.02rem;
  color: var(--ink-2);
}
.note::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--gold-dim);
  transform: rotate(45deg);
  box-shadow: 0 0 6px var(--bright-a300);
}
.note b { color: var(--ink); font-weight: 600; }
.note a { color: var(--gold-hi); }

/* ==========================================================================
   Footer — colophon
   ========================================================================== */

.footer {
  padding-block: 44px 60px;
  border-top: 1px solid var(--gold-line);
  text-align: center;
  font-size: 0.88rem;
  color: var(--mut);
}
.footer-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs) var(--space-lg);
  flex-wrap: wrap;
}
.footer-line span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: var(--space-md);
  background: var(--gold-dim);
  transform: rotate(45deg) translateY(-1px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 60rem) {
  :root { --gutter: 20px; }
  .cols-3 { grid-template-columns: 1fr; }
  .index-row { grid-template-columns: 48px 1fr; }
  .index-open { grid-column: 2; }
  .sec-head { grid-template-columns: 1fr; gap: var(--space-sm); align-items: start; }
}

@media (max-width: 40rem) {
  :root { --gutter: 15px; }
  .topbar-inner { flex-direction: column; min-height: 0; padding-block: var(--space-xs); }
  .nav { width: 100%; }
  .nav a { flex: 1 1 auto; justify-content: center; padding: 9px var(--space-xs); border-left: 0; border-top: 1px solid var(--gold-a100); font-size: 0.9rem; }
  .nav a .ic { width: 14px; height: 14px; }
  .brand { padding-block: 6px; }
  .hero { padding: 64px 0 var(--space-2xl); }
  .hero-sheetno { font-size: 0.68rem; }
  .hero-lede { font-size: 1.15rem; }
  .register thead { display: none; }
  .register, .register tbody, .register tr, .register td { display: block; width: 100%; }
  .register tr { border-bottom: 1px solid var(--gold-line); padding-block: 10px; }
  .register td { border-bottom: 0; padding: 5px 0; }
  .register td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    color: var(--gold-dim);
    margin-bottom: 3px;
  }
  .grp { padding-top: 20px !important; }
  .dim { flex-direction: column; gap: var(--space-sm); }
  .dim-line { display: none; }
  .dim-end:last-child { text-align: left; }
  .sec-title { font-size: 1.5rem; }
  .index-name { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
