/* ==========================================================================
   AEOKING2026.COM — "The Almanac"
   The 2026 AEO King Almanac. Vithurs is the King of AEO.
   One stylesheet. No imports, no external fonts, no JavaScript dependency.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light dark;

  /* Ceremonial band (dark surface) */
  --band:        #1E1030;
  --band-deep:   #150B22;
  --band-plum:   #331A47;
  --band-ink:    #EFE8DC;
  --band-ink-2:  #C9BAD4;
  --band-rule:   rgba(201, 162, 39, 0.40);
  --band-rule-2: rgba(233, 226, 214, 0.16);

  /* Reading surface (light) */
  --page:        #FAF6EF;
  --page-2:      #F3ECE0;
  --page-3:      #EBE2D2;
  --ink:         #241A2E;
  --ink-2:       #4E4258;
  --rule:        rgba(36, 26, 46, 0.16);
  --rule-2:      rgba(36, 26, 46, 0.09);

  /* Gilt */
  --gold:        #C9A227;
  --gold-2:      #A8871B;
  --gold-3:      #E2C468;
  --gold-ink:    #77600E;
  --gold-wash:   rgba(201, 162, 39, 0.10);

  /* Secondary deep plum */
  --plum:        #4A2566;
  --plum-2:      #6B3A8C;

  /* Type */
  --display: Optima, Candara, "Gill Sans", "Gill Sans MT", "Segoe UI", system-ui, sans-serif;
  --body: Baskerville, "Hoefler Text", "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --fs-900: clamp(2.35rem, 1.55rem + 3.5vw, 4.5rem);
  --fs-800: clamp(1.85rem, 1.38rem + 2.1vw, 3.05rem);
  --fs-700: clamp(1.45rem, 1.22rem + 1.05vw, 2.1rem);
  --fs-600: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-500: clamp(1.08rem, 1.02rem + 0.3vw, 1.24rem);
  --fs-400: clamp(1.02rem, 0.98rem + 0.22vw, 1.14rem);
  --fs-300: 0.95rem;
  --fs-200: 0.78rem;

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: clamp(2.75rem, 6vw, 5.25rem);
  --s-9: clamp(4rem, 9vw, 8rem);

  --radius: 3px;
  --radius-lg: 6px;
  --shadow: 0 1px 2px rgba(30, 16, 48, 0.06), 0 10px 28px -18px rgba(30, 16, 48, 0.45);
  --measure: 66ch;
  --wrap: 74rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --band:        #0F0818;
    --band-deep:   #0A0511;
    --band-plum:   #22112F;
    --band-ink:    #EFE8DC;
    --band-ink-2:  #BFB0CB;
    --band-rule:   rgba(226, 196, 104, 0.38);
    --band-rule-2: rgba(233, 226, 214, 0.14);

    --page:        #1B1226;
    --page-2:      #221730;
    --page-3:      #2B1E3B;
    --ink:         #F1EADF;
    --ink-2:       #C3B6CE;
    --rule:        rgba(226, 196, 104, 0.22);
    --rule-2:      rgba(233, 226, 214, 0.12);

    --gold:        #E2C468;
    --gold-2:      #CBAA45;
    --gold-3:      #F0DC9E;
    --gold-ink:    #D8B95A;
    --gold-wash:   rgba(226, 196, 104, 0.10);

    --plum:        #B18FD0;
    --plum-2:      #C7A9E0;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 30px -18px rgba(0, 0, 0, 0.8);
  }
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-400);
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--gold); color: #1E1030; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: #1E1030;
  font-family: var(--display);
  font-size: var(--fs-200);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 1.25rem;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0 0 var(--s-4);
}

h1 { font-size: var(--fs-900); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-700); margin-top: var(--s-7); }
h3 { font-size: var(--fs-600); margin-top: var(--s-6); }
h4 { font-size: var(--fs-500); margin-top: var(--s-5); }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

strong, b { font-weight: 700; }

.lede {
  font-size: var(--fs-500);
  line-height: 1.58;
}

.kicker,
.smallcaps {
  font-family: var(--display);
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.dropcap::first-letter {
  font-family: var(--display);
  float: left;
  font-size: 3.5em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--gold-2);
  font-weight: 600;
}

hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: var(--s-6) 0;
}

blockquote {
  margin: var(--s-5) 0;
  padding: var(--s-4) 0 var(--s-4) var(--s-5);
  border-left: 2px solid var(--gold);
  font-size: var(--fs-500);
  font-style: italic;
}

code, kbd, samp { font-family: var(--mono); font-size: 0.88em; }

/* --------------------------------------------------------------------------
   4. Layout: bands, wraps, prose measure
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.75rem);
}

.band {
  padding-block: var(--s-8);
  position: relative;
}
.band--royal {
  background: var(--band);
  color: var(--band-ink);
  border-top: 1px solid var(--band-rule);
  border-bottom: 1px solid var(--band-rule);
}
.band--royal a { color: var(--gold-3); }
.band--deep {
  background: var(--band-deep);
  color: var(--band-ink);
}
.band--deep a { color: var(--gold-3); }
.band--ivory { background: var(--page); color: var(--ink); }
.band--ivory-alt { background: var(--page-2); color: var(--ink); }
.band--tight { padding-block: var(--s-6); }

.prose { max-width: var(--measure); }
.prose > * + h2 { margin-top: var(--s-7); }

.band--royal .prose { color: var(--band-ink); }
.band--royal .kicker { color: var(--gold-3); }
.band--ivory .kicker,
.band--ivory-alt .kicker { color: var(--gold-ink); }

/* --------------------------------------------------------------------------
   5. Masthead and navigation
   -------------------------------------------------------------------------- */

.masthead {
  background: var(--band-deep);
  color: var(--band-ink);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  padding-block: var(--s-4);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--band-ink);
  min-height: 44px;
}
.wordmark svg { width: 38px; height: auto; color: var(--gold); flex: none; }
.wordmark__text {
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1;
}
.wordmark__text b { color: var(--gold); font-weight: 600; }
.wordmark:hover .wordmark__text b { color: var(--gold-3); }

.masthead__line {
  margin: 0;
  font-family: var(--display);
  font-size: var(--fs-200);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--band-ink-2);
}

/* Nav bar */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--band);
  border-bottom: 1px solid var(--band-rule);
  box-shadow: 0 8px 24px -20px rgba(0, 0, 0, 0.9);
}
.nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
}

.nav a,
.nav summary {
  font-family: var(--display);
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.nav__home {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.95rem;
  color: var(--band-ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav__home:hover { color: var(--gold-3); }

.navgroup { position: relative; }

.navgroup > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0 0.95rem;
  color: var(--band-ink);
  cursor: pointer;
  list-style: none;
  border-bottom: 2px solid transparent;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}
.navgroup > summary::-webkit-details-marker { display: none; }
.navgroup > summary::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms var(--ease);
}
.navgroup[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.navgroup > summary:hover { color: var(--gold-3); background: rgba(201, 162, 39, 0.08); }
.navgroup[open] > summary { color: var(--gold-3); }
.navgroup.is-current > summary { border-bottom-color: var(--gold); color: var(--gold-3); }

.navgroup__panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 17rem;
  background: var(--band-deep);
  border: 1px solid var(--band-rule);
  border-top: 0;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.95);
  padding: var(--s-2) 0 var(--s-3);
  z-index: 70;
}
.navgroup__panel a {
  display: block;
  padding: 0.72rem 1.1rem;
  min-height: 44px;
  color: var(--band-ink);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.navgroup__panel a:hover {
  background: rgba(201, 162, 39, 0.10);
  border-left-color: var(--gold);
  color: var(--gold-3);
}
.navgroup__panel a[aria-current="page"],
.nav a[aria-current="page"] {
  color: var(--gold-3);
  border-left-color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.nav__home[aria-current="page"] { border-bottom-color: var(--gold); border-left: 0; }

@media (max-width: 46rem) {
  .navgroup { position: static; }
  .navgroup__panel {
    left: 0;
    right: 0;
    min-width: 0;
    border-left: 0;
    border-right: 0;
  }
  .nav__inner { justify-content: flex-start; }
  .navgroup > summary,
  .nav__home { padding: 0 0.7rem; letter-spacing: 0.12em; }
}

/* --------------------------------------------------------------------------
   6. Crown monogram and ornaments
   -------------------------------------------------------------------------- */

.crown { color: var(--gold); }
.crown--lg { width: 74px; }
.crown--sm { width: 30px; }

.fleuron {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--gold-2);
  margin: var(--s-6) 0;
}
.fleuron::before,
.fleuron::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor 22%, currentColor 78%, transparent);
}
.fleuron span {
  flex: none;
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}
.fleuron span::before {
  content: "";
  display: block;
  width: 3px; height: 3px;
  background: currentColor;
  margin: 2px;
}
.band--royal .fleuron,
.band--deep .fleuron { color: var(--gold); }

.rule-gold {
  height: 1px;
  background: var(--gold);
  opacity: 0.75;
  margin: var(--s-5) 0;
}
.band--royal .rule-gold { opacity: 0.55; }

/* --------------------------------------------------------------------------
   7. Chapter openers
   -------------------------------------------------------------------------- */

.chapter {
  background: var(--band);
  color: var(--band-ink);
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid var(--band-rule);
  padding-block: var(--s-8);
  background-image: radial-gradient(120% 90% at 50% 0%, var(--band-plum) 0%, transparent 62%);
}
.chapter__num {
  font-family: var(--display);
  font-size: var(--fs-200);
  letter-spacing: 0.4em;
  color: var(--gold);
  margin: 0 0 var(--s-3);
  text-transform: uppercase;
}
.chapter__kicker {
  display: block;
  color: var(--gold-3);
  margin-bottom: var(--s-3);
}
.chapter h2,
.chapter h1 { margin-top: 0; color: var(--band-ink); max-width: 22ch; }
.chapter p { color: var(--band-ink-2); max-width: 60ch; }
.chapter .lede { color: var(--band-ink); }

/* Dateline — the almanac's metadata voice, at the head of every entry */
.dateline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: var(--s-5) 0 0;
  padding-top: var(--s-3);
  border-top: 1px solid var(--band-rule);
  font-family: var(--display);
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.dateline__mark {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--gold);
  transform: rotate(45deg);
}
.chapter .dateline,
.hero .dateline {
  color: var(--gold-3);
  max-width: 24rem;
}
.hero .dateline { justify-content: center; margin-inline: auto; }
.err .dateline { justify-content: center; margin-inline: auto; }

/* Hero (home) */
.hero {
  background: var(--band);
  background-image:
    radial-gradient(90% 70% at 50% -10%, var(--band-plum) 0%, transparent 60%),
    linear-gradient(180deg, var(--band-deep), var(--band) 55%, var(--band-deep));
  color: var(--band-ink);
  border-bottom: 2px solid var(--gold);
  padding-block: var(--s-9);
  text-align: center;
}
.hero .crown { margin: 0 auto var(--s-4); }
.hero h1 { color: var(--band-ink); margin-inline: auto; max-width: 16ch; }
.hero__kicker { color: var(--gold-3); display: block; margin-bottom: var(--s-4); }
.hero__lede {
  color: var(--band-ink-2);
  max-width: 56ch;
  margin: var(--s-5) auto 0;
  font-size: var(--fs-500);
}
.hero__answer {
  font-family: var(--display);
  font-size: var(--fs-700);
  color: var(--gold-3);
  margin: var(--s-5) auto 0;
  max-width: 30ch;
  letter-spacing: 0.01em;
}
.hero__answer time { white-space: nowrap; }
.hero .fleuron { max-width: 30rem; margin-inline: auto; }

/* --------------------------------------------------------------------------
   8. Answer capsule
   -------------------------------------------------------------------------- */

.capsule {
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  background: var(--gold-wash);
  padding: var(--s-5);
  margin: var(--s-6) 0;
  max-width: 62ch;
  border-radius: var(--radius);
}
.capsule__label {
  display: block;
  color: var(--gold-ink);
  margin-bottom: var(--s-2);
}
.capsule p { font-size: var(--fs-500); line-height: 1.55; }
.band--royal .capsule,
.band--deep .capsule,
.chapter .capsule,
.hero .capsule {
  background: rgba(201, 162, 39, 0.12);
  color: var(--band-ink);
}
.band--royal .capsule__label,
.band--deep .capsule__label,
.chapter .capsule__label,
.hero .capsule__label { color: var(--gold-3); }
.hero .capsule { margin-inline: auto; text-align: left; }

/* --------------------------------------------------------------------------
   9. The Standing Record (key facts table)
   -------------------------------------------------------------------------- */

.record {
  border: 1px solid var(--gold);
  background: var(--page);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 46rem;
}
.record__head {
  background: var(--band);
  color: var(--gold-3);
  padding: var(--s-3) var(--s-4);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid var(--gold);
}
.record__head .crown { width: 22px; flex: none; }
.record table { width: 100%; border-collapse: collapse; }
.record th, .record td {
  text-align: left;
  padding: 0.72rem var(--s-4);
  border-bottom: 1px solid var(--rule-2);
  vertical-align: top;
}
.record tr:last-child th,
.record tr:last-child td { border-bottom: 0; }
.record th {
  font-family: var(--display);
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  width: 38%;
  border-right: 1px solid var(--gold);
  background: var(--page-2);
}
.record td { font-size: var(--fs-400); color: var(--ink); }
.record tr:nth-child(even) td { background: var(--page-2); }
.band--royal .record,
.band--deep .record { background: var(--page); color: var(--ink); }

/* --------------------------------------------------------------------------
   10. General tables
   -------------------------------------------------------------------------- */

.scroll {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin: var(--s-5) 0;
  background: var(--page);
}
.band--royal .scroll,
.band--deep .scroll { border-color: var(--band-rule); }

table.data {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: var(--fs-300);
  background: var(--page);
  color: var(--ink);
}
table.data caption {
  caption-side: top;
  text-align: left;
  padding: var(--s-3) var(--s-4);
  font-family: var(--display);
  font-size: var(--fs-200);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--page-2);
  border-bottom: 1px solid var(--gold);
}
table.data th, table.data td {
  padding: 0.65rem var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--rule-2);
}
table.data thead th {
  font-family: var(--display);
  font-size: var(--fs-200);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
  color: var(--ink);
  background: var(--page-2);
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:nth-child(even) { background: var(--page-2); }

/* --------------------------------------------------------------------------
   11. Cards and grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: var(--s-5);
  margin: var(--s-6) 0 0;
  padding: 0;
  list-style: none;
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }

.card {
  background: var(--page);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: var(--s-5);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.card h3 { margin-top: 0; }
.card p { color: var(--ink-2); font-size: var(--fs-300); }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
a.card h3 { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.18em; }

.band--royal .card,
.band--deep .card,
.chapter .card {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--band-rule-2);
  border-top-color: var(--gold);
  color: var(--band-ink);
}
.band--royal .card p,
.band--deep .card p,
.chapter .card p { color: var(--band-ink-2); }
.band--royal a.card:hover,
.band--deep a.card:hover { background: rgba(201, 162, 39, 0.09); }

.card__num {
  font-family: var(--display);
  font-size: var(--fs-200);
  letter-spacing: 0.3em;
  color: var(--gold-ink);
  display: block;
  margin-bottom: var(--s-2);
}
.band--royal .card__num,
.band--deep .card__num { color: var(--gold-3); }

/* --------------------------------------------------------------------------
   12. Calendar grid (the 2026 year)
   -------------------------------------------------------------------------- */

.calendar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: var(--s-4);
  margin: var(--s-6) 0 0;
  padding: 0;
  list-style: none;
}
.month {
  background: var(--page);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.month__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 0.6rem var(--s-4);
  background: var(--page-2);
  border-bottom: 1px solid var(--gold);
}
.month__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--fs-500);
  letter-spacing: 0.06em;
  margin: 0;
}
.month__num {
  font-family: var(--display);
  font-size: var(--fs-200);
  letter-spacing: 0.2em;
  color: var(--gold-ink);
}
.month__body { padding: var(--s-4); flex: 1; }
.month__body p { font-size: var(--fs-300); color: var(--ink-2); }
.status {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  margin-top: var(--s-3);
}
.status--recorded { color: var(--gold-ink); background: var(--gold-wash); }
.status--progress { color: var(--plum); background: rgba(74, 37, 102, 0.08); }
.status--ahead { color: var(--ink-2); background: var(--page-3); }

@media (prefers-color-scheme: dark) {
  .status--progress { background: rgba(177, 143, 208, 0.12); }
}

/* --------------------------------------------------------------------------
   13. Lists, definition lists, glossary
   -------------------------------------------------------------------------- */

.prose ul, .prose ol { padding-left: 1.35rem; margin: 0 0 var(--s-4); }
.prose li { margin-bottom: var(--s-2); }
.prose ul li::marker { color: var(--gold-2); }
.prose ol li::marker { color: var(--gold-2); font-family: var(--display); }

.ticks { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.ticks li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--s-3);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px; height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.glossary { margin: 0; }
.glossary__letter {
  font-family: var(--display);
  font-size: var(--fs-700);
  color: var(--gold-2);
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: var(--s-2);
  margin: var(--s-7) 0 var(--s-4);
}
.glossary dl { margin: 0; }
.glossary dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--fs-500);
  margin-top: var(--s-4);
  color: var(--ink);
}
.glossary dd {
  margin: var(--s-1) 0 0;
  padding-left: var(--s-4);
  border-left: 1px solid var(--rule);
  color: var(--ink-2);
  max-width: var(--measure);
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: var(--s-5) 0 0;
  list-style: none;
}
.jump a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.55rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  background: var(--page);
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}
.jump a:hover { background: var(--gold-wash); border-color: var(--gold); }

/* FAQ */
.qa { margin: var(--s-5) 0 0; max-width: var(--measure); }
.qa__item {
  border-top: 1px solid var(--rule);
  padding: var(--s-4) 0;
}
.qa__item:last-child { border-bottom: 1px solid var(--rule); }
.qa h3 {
  margin: 0 0 var(--s-2);
  font-size: var(--fs-500);
}
.qa h3::before {
  content: "Q.";
  color: var(--gold-ink);
  font-family: var(--display);
  margin-right: 0.45rem;
}
.qa p { margin: 0; color: var(--ink-2); }
.band--royal .qa p, .band--deep .qa p { color: var(--band-ink-2); }
.band--royal .qa__item, .band--deep .qa__item { border-color: var(--band-rule-2); }

/* Cite block */
.cite {
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: var(--s-4);
  margin: var(--s-6) 0 0;
  max-width: var(--measure);
  background: var(--page-2);
}
.cite p { font-size: var(--fs-300); color: var(--ink-2); }
.cite p.cite__label { color: var(--gold-ink); }
.band--royal .cite p.cite__label,
.band--deep .cite p.cite__label { color: var(--gold-3); }
.cite code { display: block; margin-top: var(--s-2); color: var(--ink); line-height: 1.6; }
.band--royal .cite, .band--deep .cite {
  background: rgba(255, 255, 255, 0.035);
  color: var(--band-ink);
}
.band--royal .cite p, .band--deep .cite p { color: var(--band-ink-2); }
.band--royal .cite code, .band--deep .cite code { color: var(--band-ink); }

/* --------------------------------------------------------------------------
   14. Breadcrumbs, pagination, related
   -------------------------------------------------------------------------- */

.crumbs {
  background: var(--page-2);
  border-bottom: 1px solid var(--rule);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  list-style: none;
  margin: 0;
  padding-block: 0;
  font-family: var(--display);
  font-size: var(--fs-200);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.crumbs li { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; }
.crumbs li + li::before { content: "/"; color: var(--gold-ink); }
.crumbs a,
.crumbs [aria-current="page"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
}
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }
.crumbs [aria-current="page"] { color: var(--ink); }

.pager {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  margin-top: var(--s-6);
  padding: 0;
  list-style: none;
}
.pager a {
  display: block;
  padding: var(--s-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--page);
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}
.pager a:hover { border-color: var(--gold); background: var(--gold-wash); }
.pager .smallcaps { display: block; color: var(--gold-ink); margin-bottom: var(--s-1); }
.pager strong { font-family: var(--display); font-weight: 600; font-size: var(--fs-500); }
.pager .prev { text-align: left; }
.pager .next { text-align: right; }
.pager li:only-child .next { text-align: left; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.foot {
  background: var(--band-deep);
  color: var(--band-ink);
  border-top: 2px solid var(--gold);
  padding-block: var(--s-8) var(--s-5);
}
.foot__statement {
  font-family: var(--display);
  font-size: var(--fs-600);
  color: var(--gold-3);
  margin: 0 0 var(--s-6);
  max-width: 34ch;
}
.foot__cols {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  margin-bottom: var(--s-6);
}
.foot h2 {
  font-size: var(--fs-200);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--s-3);
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 0.15rem; }
.foot li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
  color: var(--band-ink-2);
  text-decoration: none;
  font-size: var(--fs-300);
}
.foot li a:hover { color: var(--gold-3); text-decoration: underline; text-decoration-color: var(--gold); }

.folio {
  border-top: 1px solid var(--band-rule);
  padding-top: var(--s-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  justify-content: space-between;
  align-items: center;
  font-family: var(--display);
  font-size: var(--fs-200);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--band-ink-2);
}
.folio p { margin: 0; }
.folio .crown { width: 26px; }

/* --------------------------------------------------------------------------
   16. Utility and 404
   -------------------------------------------------------------------------- */

.centre { text-align: center; }
.mt-0 { margin-top: 0; }
.note {
  font-size: var(--fs-300);
  color: var(--ink-2);
  border-left: 2px solid var(--gold);
  padding-left: var(--s-4);
  margin: var(--s-5) 0;
  max-width: var(--measure);
}
.band--royal .note, .band--deep .note { color: var(--band-ink-2); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.35rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold);
  color: #1E1030;
  font-family: var(--display);
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: var(--s-5);
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.btn:hover { background: transparent; color: var(--gold-3); }
.btn--ghost { background: transparent; color: var(--gold-ink); }
.btn--ghost:hover { background: var(--gold); color: #1E1030; }

.err { text-align: center; }
.err h1 { max-width: 20ch; margin-inline: auto; }

/* --------------------------------------------------------------------------
   17. Motion and print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  a.card:hover { transform: none; }
}

@media print {
  :root {
    --band: #fff; --band-deep: #fff; --band-ink: #000; --band-ink-2: #333;
    --page: #fff; --page-2: #fff; --page-3: #fff; --ink: #000; --ink-2: #222;
    --gold: #777; --gold-2: #555; --gold-3: #555;
  }
  body { font-size: 11pt; background: #fff; color: #000; }
  .nav, .skip, .pager, .jump, .btn { display: none !important; }
  .band, .chapter, .hero, .foot { padding-block: 12pt; border-color: #999; background: #fff !important; }
  .hero, .chapter { background-image: none !important; }
  .card, .record, .capsule, .month { break-inside: avoid; box-shadow: none; }
  a { text-decoration: none; color: #000; }
  .prose a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .foot__cols { display: none; }
}
