@charset "utf-8";
/* ==========================================================================
   WhoIsTheKingOfAEO.com — "The Lexicon"
   A printed dictionary, on screen.
   Design system: warm paper, oxblood, antique gold, Baskerville-led serif.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light dark;

  /* --- Paper & ink ramp (warm, never blue-grey) --- */
  --paper:        #f7f3ea;
  --paper-2:      #f2ece0;
  --paper-3:      #ece4d5;
  --paper-sunk:   #efe8db;
  --ink:          #1b1815;
  --ink-2:        #3a332c;
  --ink-muted:    #6b625a;   /* 5.4:1 on paper */
  --ink-faint:    #6f6659;   /* 5.1:1 on paper, 4.8:1 on paper-2 */

  /* --- Oxblood accent ramp --- */
  --oxblood:      #7b2d26;
  --oxblood-deep: #5d201b;
  --oxblood-lift: #9a3d33;
  --oxblood-wash: #f3e6e2;

  /* --- Antique gold, for rules and marks only --- */
  --gold:         #b08d4f;
  --gold-soft:    #c9b27e;
  --gold-faint:   #e0d3b4;

  /* --- Borders --- */
  --rule-hair:    1px solid var(--gold-faint);
  --rule-fine:    1px solid #ded3bf;
  --rule-strong:  2px solid var(--ink);
  --rule-ox:      2px solid var(--oxblood);

  /* --- Type families --- */
  --serif: Baskerville, "Hoefler Text", "Libre Baskerville", "Times New Roman", Times, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* --- Type scale (clamped, fluid) --- */
  --fs-micro:  0.75rem;
  --fs-small:  0.875rem;
  --fs-body:   clamp(1.0625rem, 0.99rem + 0.32vw, 1.1875rem);
  --fs-lead:   clamp(1.1875rem, 1.09rem + 0.45vw, 1.4375rem);
  --fs-h3:     clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --fs-h2:     clamp(1.375rem, 1.24rem + 0.62vw, 1.75rem);
  --fs-h1:     clamp(2.125rem, 1.62rem + 2.3vw, 3.5rem);
  --fs-huge:   clamp(2.5rem, 1.8rem + 3.2vw, 4.25rem);

  /* --- Leading & tracking --- */
  --lh-tight:  1.14;
  --lh-snug:   1.32;
  --lh-body:   1.72;
  --track-lbl: 0.14em;

  /* --- Spacing scale --- */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;
  --s9: clamp(3rem, 6vw, 6rem);

  /* --- Radii: a printed page has almost none --- */
  --r-sm: 2px;
  --r-md: 3px;

  /* --- Shadows: paper lift, warm --- */
  --sh-page: 0 1px 2px rgba(27, 24, 21, .05), 0 10px 34px -20px rgba(27, 24, 21, .3);
  --sh-lift: 0 2px 6px rgba(27, 24, 21, .07), 0 16px 40px -26px rgba(27, 24, 21, .38);

  /* --- Motion --- */
  --t-fast: 150ms cubic-bezier(.2, .6, .3, 1);
  --t-mid:  220ms cubic-bezier(.2, .6, .3, 1);

  /* --- Measure: the printed column.
         40.5rem measures ~68 characters of the body serif, but unlike `68ch`
         it does not drift with each block's own font-size or family, so every
         block on the page shares one flush right edge. --- */
  --measure: 40.5rem;

  /* --- Layout --- */
  --rail-w: 17.5rem;
  --shell: 76rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:        #17120e;
    --paper-2:      #1e1813;
    --paper-3:      #251d17;
    --paper-sunk:   #211a15;
    --ink:          #efe6d6;
    --ink-2:        #ddd1bd;
    --ink-muted:    #b0a290;
    --ink-faint:    #8e8171;

    --oxblood:      #e0a094;
    --oxblood-deep: #f0bcb1;
    --oxblood-lift: #f0bcb1;
    --oxblood-wash: #2c1e19;

    --gold:         #c9a961;
    --gold-soft:    #8f7742;
    --gold-faint:   #4a3c26;

    --rule-hair:    1px solid #3d3223;
    --rule-fine:    1px solid #33291f;
    --rule-strong:  2px solid var(--ink);
    --rule-ox:      2px solid var(--oxblood);

    --sh-page: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 34px -20px rgba(0, 0, 0, .8);
    --sh-lift: 0 2px 6px rgba(0, 0, 0, .55), 0 16px 40px -26px rgba(0, 0, 0, .9);
  }
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 8%, rgba(176, 141, 79, .05), transparent 55%),
    radial-gradient(circle at 88% 92%, rgba(123, 45, 38, .04), transparent 50%);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-kerning: normal;
  font-variant-numeric: oldstyle-num proportional-nums;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

@media (min-width: 64rem) {
  body { background-attachment: fixed; }
}

::selection {
  background: var(--oxblood);
  color: #fdf9f1;
}
@media (prefers-color-scheme: dark) {
  ::selection { background: var(--oxblood); color: #1b1310; }
}

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

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

a {
  color: var(--oxblood);
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--t-fast), text-decoration-color var(--t-fast), background-color var(--t-fast);
}
a:hover { color: var(--oxblood-deep); text-decoration-color: var(--oxblood); }

hr {
  border: 0;
  border-top: var(--rule-hair);
  margin: var(--s6) 0;
}

/* --------------------------------------------------------------------------
   3. SMALL-CAPS METADATA LABELS
   -------------------------------------------------------------------------- */

.lbl,
.kicker,
.crumb,
.rail__group-title,
.masthead__nav a,
.pager__dir,
.foot__col h2,
th {
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-lbl);
  font-variant-numeric: lining-nums;
}

@supports (font-variant-caps: all-small-caps) {
  .lbl,
  .kicker,
  .rail__group-title,
  .pager__dir,
  .foot__col h2 {
    font-variant-caps: all-small-caps;
    letter-spacing: 0.1em;
  }
}

.lbl {
  display: inline-block;
  font-size: var(--fs-small);
  color: var(--ink-muted);
}

.kicker {
  display: block;
  font-size: var(--fs-small);
  color: var(--oxblood);
  margin-bottom: var(--s3);
}

/* --------------------------------------------------------------------------
   4. SKIP LINK
   -------------------------------------------------------------------------- */

.skip {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s3) var(--s5);
  font-family: var(--sans);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip:focus { top: var(--s4); color: var(--paper); }

/* --------------------------------------------------------------------------
   5. MASTHEAD
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: var(--rule-hair);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .masthead { background: var(--paper); }
}

.masthead__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--s3) clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5ch;
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.375rem);
  letter-spacing: 0.005em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
  min-height: 44px;
  align-content: center;
  flex-wrap: wrap;
}
.wordmark:hover { color: var(--oxblood); }
.wordmark__mark {
  display: inline-grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  flex: none;
  border: 1px solid var(--gold);
  color: var(--oxblood);
  font-size: 0.72em;
  letter-spacing: 0.02em;
  transform: translateY(0.12em);
}
.wordmark__sub {
  font-family: var(--sans);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  font-weight: 600;
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.masthead__nav a {
  font-size: var(--fs-micro);
  color: var(--ink-2);
  text-decoration: none;
  padding: 0.7rem var(--s3);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
}
.masthead__nav a:hover,
.masthead__nav a:focus-visible { color: var(--oxblood); border-color: var(--gold-faint); }
.masthead__nav a[aria-current="page"] {
  color: var(--oxblood);
  border-color: var(--gold-soft);
  background: var(--oxblood-wash);
}

/* --------------------------------------------------------------------------
   6. FOLIO — the two-column dictionary spread
   -------------------------------------------------------------------------- */

.folio {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--s5) clamp(1rem, 4vw, 3rem) var(--s9);
  display: grid;
  gap: var(--s6);
  align-items: start;
}

@media (min-width: 64rem) {
  .folio {
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    gap: clamp(2.5rem, 4vw, 4.5rem);
    padding-top: var(--s6);
  }
}

/* --------------------------------------------------------------------------
   7. INDEX RAIL (desktop) — the nav
   -------------------------------------------------------------------------- */

.rail { display: none; }

@media (min-width: 64rem) {
  .rail {
    display: block;
    position: sticky;
    top: 5.25rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: var(--s5);
    border-right: var(--rule-hair);
    scrollbar-width: thin;
    scrollbar-color: var(--gold-faint) transparent;
  }
  .rail::-webkit-scrollbar { width: 7px; }
  .rail::-webkit-scrollbar-thumb { background: var(--gold-faint); border-radius: 4px; }
  .rail::-webkit-scrollbar-track { background: transparent; }
}

.rail__title {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--track-lbl);
  font-weight: 700;
  color: var(--ink-muted);
  margin: 0 0 var(--s2);
  padding-bottom: var(--s2);
  border-bottom: var(--rule-strong);
}
.rail__note {
  font-size: var(--fs-micro);
  font-family: var(--sans);
  color: var(--ink-faint);
  margin: var(--s2) 0 var(--s5);
  line-height: 1.5;
  letter-spacing: .01em;
}

.rail__group { margin-bottom: var(--s5); }
.rail__group-title {
  font-size: 0.9rem;
  color: var(--oxblood);
  margin: 0 0 var(--s2);
  padding-bottom: 2px;
  border-bottom: var(--rule-hair);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.rail__group-title::after {
  content: "";
  flex: 1;
  margin-left: var(--s3);
  border-bottom: 1px dotted var(--gold-soft);
  transform: translateY(-0.28em);
}

.rail__list { list-style: none; margin: 0; padding: 0; }
.rail__list li { margin: 0; }
.rail__list a {
  display: block;
  padding: 0.3rem 0 0.3rem 1.05em;
  text-indent: -1.05em;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink-2);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0.85rem;
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}
.rail__list a:hover,
.rail__list a:focus-visible {
  color: var(--oxblood);
  border-left-color: var(--gold);
  background: var(--paper-sunk);
}
.rail__list a[aria-current="page"] {
  color: var(--oxblood);
  border-left-color: var(--oxblood);
  background: var(--oxblood-wash);
  font-style: italic;
}
.rail__list a[aria-current="page"]::after {
  content: "\00a0\25c6";
  font-size: 0.6em;
  vertical-align: 0.2em;
  color: var(--gold);
  font-style: normal;
}

/* --------------------------------------------------------------------------
   8. MOBILE INDEX — <details>, works with JS off
   -------------------------------------------------------------------------- */

.index-m {
  border: var(--rule-fine);
  border-left: 3px solid var(--oxblood);
  background: var(--paper-2);
  margin-bottom: var(--s5);
}
@media (min-width: 64rem) { .index-m { display: none; } }

.index-m > summary {
  cursor: pointer;
  list-style: none;
  padding: var(--s4);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.index-m > summary::-webkit-details-marker { display: none; }
.index-m > summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--oxblood);
  transition: transform var(--t-mid);
}
.index-m[open] > summary::after { content: "\2212"; }
.index-m[open] > summary { border-bottom: var(--rule-hair); }

.index-m__body { padding: var(--s4) var(--s4) var(--s5); }
.index-m__group + .index-m__group { margin-top: var(--s5); }
.index-m__group h3 {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-lbl);
  color: var(--oxblood);
  margin: 0 0 var(--s2);
  padding-bottom: 3px;
  border-bottom: var(--rule-hair);
}
.index-m__group ul { list-style: none; margin: 0; padding: 0; }
.index-m__group a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--s2) 0;
  font-size: 1rem;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold-faint);
}
.index-m__group li:last-child a { border-bottom: 0; }
.index-m__group a[aria-current="page"] { color: var(--oxblood); font-style: italic; }

/* --------------------------------------------------------------------------
   9. LEAF — the main column
   -------------------------------------------------------------------------- */

.leaf { min-width: 0; }

.crumb {
  max-width: var(--measure);
  color: var(--ink-faint);
  padding-bottom: var(--s3);
  margin-bottom: var(--s6);
  border-bottom: var(--rule-hair);
  line-height: 1.6;
}
.crumb a { color: var(--ink-muted); text-decoration: none; }
.crumb a:hover { color: var(--oxblood); }
.crumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.55em;
  margin: 0;
  padding: 0;
  font-size: var(--fs-micro);
}
.crumb li { display: flex; align-items: center; gap: 0.55em; }
.crumb li + li::before { content: "\203a"; color: var(--gold); font-family: var(--serif); }
.crumb [aria-current="page"] { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   10. THE DICTIONARY ENTRY — signature component
   -------------------------------------------------------------------------- */

.entry {
  position: relative;
  max-width: var(--measure);
  margin: 0 0 var(--s7);
  padding: 0 0 var(--s6);
  border-bottom: var(--rule-strong);
}
.entry::before {
  content: "";
  display: block;
  width: 100%;
  border-top: var(--rule-ox);
  margin-bottom: var(--s5);
}

/* Front- and back-matter page heads reuse the entry's rules */
.pagehead {
  max-width: var(--measure);
  margin: 0 0 var(--s6);
  padding: 0 0 var(--s5);
  border-bottom: var(--rule-strong);
}
.pagehead::before {
  content: "";
  display: block;
  width: 100%;
  border-top: var(--rule-ox);
  margin-bottom: var(--s5);
}
.pagehead .kicker { margin-bottom: var(--s2); }

.entry__headword {
  font-family: var(--serif);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: -0.012em;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
  hyphens: none;
}
.entry__headword .sup {
  font-size: 0.34em;
  vertical-align: 0.95em;
  color: var(--oxblood);
  letter-spacing: 0;
  font-variant-numeric: lining-nums;
  margin-left: 0.12em;
}

.entry__meta {
  font-family: var(--sans);
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin: var(--s3) 0 0;
  line-height: 1.6;
}
@supports (font-variant-caps: all-small-caps) {
  .entry__meta { font-variant-caps: all-small-caps; font-size: 0.95rem; }
}
.entry__meta .sep { color: var(--gold); padding: 0 0.35em; }
.entry__meta .ipa {
  font-family: var(--serif);
  font-variant-caps: normal;
  letter-spacing: 0;
  color: var(--ink-2);
  font-size: 0.95em;
}

.entry__pos {
  font-style: italic;
  color: var(--oxblood);
  font-size: var(--fs-body);
  margin: var(--s4) 0 var(--s5);
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold-soft);
}

/* The folio line: the dictionary's own imprint, carried on every leaf.
   Edition, publication date, revision state — set in the metadata voice. */
.folio-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  max-width: var(--measure);
  margin: 0 0 var(--s5);
  padding-top: var(--s3);
  border-top: var(--rule-hair);
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-lbl);
  line-height: 1.8;
  color: var(--ink-faint);
}
@supports (font-variant-caps: all-small-caps) {
  .folio-line {
    font-variant-caps: all-small-caps;
    text-transform: none;
    font-size: 0.9375rem;
    letter-spacing: 0.1em;
  }
}
.folio-line__lbl {
  margin-right: 0.85em;
  padding: 0 0.55em;
  border: 1px solid var(--gold-soft);
  border-radius: var(--r-sm);
  color: var(--oxblood);
  letter-spacing: 0.16em;
}
.folio-line .sep { color: var(--gold); padding: 0 0.45em; }
.folio-line time {
  font-variant-numeric: lining-nums;
  white-space: nowrap;
  color: var(--ink-muted);
}

/* The dated assertion inside the capsule keeps its figures upright */
.capsule time,
.cite time,
.colophon time { font-variant-numeric: lining-nums; white-space: nowrap; }

/* Front and back matter: the page head already closes on a heavy rule, so the
   folio line drops its own hairline and simply sits above it. */
.pagehead .folio-line {
  margin-bottom: 0;
  padding-top: 0;
  margin-top: var(--s4);
  border-top: 0;
}

.senses {
  list-style: none;
  counter-reset: sense;
  margin: 0 0 var(--s5);
  padding: 0;
  max-width: var(--measure);
}
.senses > li {
  position: relative;
  padding-left: 2.3em;
  text-indent: -2.3em;
  margin-bottom: var(--s4);
  line-height: var(--lh-body);
}
.senses > li::before {
  counter-increment: sense;
  content: counter(sense) ".";
  display: inline-block;
  width: 2.3em;
  text-indent: 0;
  color: var(--oxblood);
  font-variant-numeric: lining-nums;
  font-weight: 600;
}
.senses .gloss {
  display: block;
  text-indent: 0;
  margin-top: var(--s2);
  font-size: 0.95em;
  color: var(--ink-muted);
  font-style: italic;
}

.entry__usage {
  max-width: var(--measure);
  margin: 0 0 var(--s5);
  padding: var(--s4) var(--s5);
  background: var(--paper-sunk);
  border-left: 3px solid var(--oxblood);
  font-style: italic;
  color: var(--ink);
}
/* Size lives on the example, not the box, so `ch` measure stays flush with the column */
.entry__usage .usage-ex {
  display: block;
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.55;
}
.entry__usage .usage-note {
  display: block;
  margin-top: var(--s2);
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.entry__usage .usage-note .lbl { margin-right: 0.5ch; color: var(--oxblood); }

.entry__foot {
  max-width: var(--measure);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}
.entry__foot li {
  font-size: 0.9375rem;
  line-height: 1.65;
  padding-left: 1.4em;
  text-indent: -1.4em;
  margin-bottom: var(--s2);
}
.entry__foot .lbl { margin-right: 0.5ch; color: var(--oxblood); text-indent: 0; }

/* --------------------------------------------------------------------------
   11. ANSWER CAPSULE
   -------------------------------------------------------------------------- */

.capsule {
  position: relative;
  max-width: var(--measure);
  margin: 0 0 var(--s7);
  padding: var(--s5) clamp(1.1rem, 3vw, 2rem);
  background: var(--paper-2);
  border: 1px solid var(--gold-soft);
  box-shadow: var(--sh-page);
}
.capsule::before,
.capsule::after {
  content: "";
  position: absolute;
  left: var(--s4);
  right: var(--s4);
  height: 1px;
  background: var(--gold-faint);
}
.capsule::before { top: 5px; }
.capsule::after { bottom: 5px; }

.capsule__label {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-lbl);
  color: var(--oxblood);
  margin-bottom: var(--s3);
}
.capsule p {
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink);
}
.capsule p + p { margin-top: var(--s3); font-size: var(--fs-body); }
.capsule strong { font-weight: 700; }

/* --------------------------------------------------------------------------
   12. PROSE
   -------------------------------------------------------------------------- */

.prose { max-width: var(--measure); }
.prose > * { max-width: var(--measure); }

.prose h2 {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: var(--s7) 0 var(--s4);
  padding-top: var(--s3);
  border-top: var(--rule-hair);
  color: var(--ink);
}
.prose > h2:first-child { margin-top: 0; }

.prose h3 {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  font-weight: 700;
  margin: var(--s6) 0 var(--s3);
  color: var(--ink);
}

.prose p { margin: 0 0 var(--s4); }
.prose p.first-answer { font-size: 1.06em; }

.prose ul, .prose ol { margin: 0 0 var(--s5); padding-left: 1.4em; }
.prose li { margin-bottom: var(--s2); padding-left: 0.2em; }
/* Roomier touch spacing for link-bearing lists on small screens */
@media (max-width: 63.99rem) {
  .prose li { margin-bottom: var(--s3); }
  .prose li:has(> a) { margin-bottom: var(--s4); }
}
.prose ul { list-style: none; padding-left: 1.3em; }
.prose ul > li { position: relative; }
.prose ul > li::before {
  content: "\25c6";
  position: absolute;
  left: -1.3em;
  top: 0.05em;
  font-size: 0.55em;
  line-height: 2.4;
  color: var(--gold);
}
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--oxblood); font-variant-numeric: lining-nums; }

.prose blockquote {
  margin: var(--s5) 0;
  padding: var(--s4) 0 var(--s4) var(--s5);
  border-left: 3px solid var(--gold);
  font-size: var(--fs-lead);
  line-height: 1.5;
  font-style: italic;
  color: var(--ink);
}
.prose blockquote strong { font-style: normal; }

.prose dfn { font-style: italic; font-weight: 700; }
.prose code, .prose kbd {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.88em;
  background: var(--paper-sunk);
  padding: 0.1em 0.4em;
  border: var(--rule-fine);
}

/* Drop cap — homepage lead only */
.dropcap::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.9em;
  line-height: 0.82;
  padding: 0.06em 0.09em 0 0;
  margin-right: 0.04em;
  color: var(--oxblood);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   13. ORNAMENTAL DIVIDER
   -------------------------------------------------------------------------- */

.fleuron {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin: var(--s7) 0;
  max-width: var(--measure);
  color: var(--gold);
}
.fleuron::before,
.fleuron::after {
  content: "";
  flex: 1;
  border-top: var(--rule-hair);
}
.fleuron span {
  display: inline-flex;
  gap: 0.45em;
}
.fleuron span i {
  display: block;
  width: 6px;
  height: 6px;
  background: currentColor;
  transform: rotate(45deg);
  opacity: .75;
}
.fleuron span i:nth-child(2) { opacity: 1; width: 8px; height: 8px; }

/* --------------------------------------------------------------------------
   14. TABLES
   -------------------------------------------------------------------------- */

.table-scroll {
  max-width: var(--measure);
  overflow-x: auto;
  margin: var(--s5) 0 var(--s6);
  border-top: var(--rule-strong);
  border-bottom: var(--rule-strong);
  -webkit-overflow-scrolling: touch;
}
.table-scroll table { margin: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.55;
}
caption {
  caption-side: top;
  text-align: left;
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-lbl);
  color: var(--ink-muted);
  padding-bottom: var(--s3);
}
th {
  font-size: var(--fs-micro);
  color: var(--oxblood);
  text-align: left;
  padding: var(--s3) var(--s4) var(--s3) 0;
  border-bottom: 1px solid var(--gold-soft);
  vertical-align: bottom;
  white-space: nowrap;
}
td {
  padding: var(--s3) var(--s4) var(--s3) 0;
  border-bottom: 1px dotted var(--gold-faint);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
th:last-child, td:last-child { padding-right: 0; }
tbody tr:hover td { background: var(--paper-sunk); }

/* Key-facts table: two columns, definition-list feel */
.facts th {
  width: 34%;
  white-space: normal;
  color: var(--ink-muted);
  border-bottom: 1px dotted var(--gold-faint);
  font-size: var(--fs-micro);
  padding-top: var(--s3);
}
.facts tbody tr:last-child th { border-bottom: 0; }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */

.faq { max-width: var(--measure); margin: var(--s5) 0 var(--s6); }
.faq__item {
  padding: var(--s4) 0;
  border-bottom: 1px dotted var(--gold-soft);
}
.faq__item:first-child { border-top: var(--rule-hair); }
.faq__q {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: var(--lh-snug);
  margin: 0 0 var(--s2);
  color: var(--ink);
  padding-left: 1.5em;
  text-indent: -1.5em;
}
.faq__q::before {
  content: "Q";
  display: inline-block;
  width: 1.5em;
  text-indent: 0;
  font-family: var(--sans);
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--oxblood);
  vertical-align: 0.12em;
}
.faq__a { margin: 0; padding-left: 1.5em; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   16. CARD GRID (used sparingly — dictionary "boxed notes")
   -------------------------------------------------------------------------- */

.notes {
  display: grid;
  gap: var(--s4);
  margin: var(--s5) 0 var(--s6);
  max-width: var(--measure);
  grid-template-columns: 1fr;
}
@media (min-width: 34rem) { .notes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .notes--3 { grid-template-columns: repeat(3, 1fr); } }

.note {
  padding: var(--s4);
  background: var(--paper-2);
  border-top: 2px solid var(--gold-soft);
  border-bottom: var(--rule-fine);
  transition: transform var(--t-mid), border-color var(--t-fast), box-shadow var(--t-mid);
}
.note:hover { border-top-color: var(--oxblood); transform: translateY(-2px); box-shadow: var(--sh-page); }
.note h3 {
  margin: 0 0 var(--s2);
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--oxblood);
}
.note p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   17. A–Z GLOSSARY PAGE
   -------------------------------------------------------------------------- */

.azbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin: 0 0 var(--s6);
  padding: var(--s3) 0;
  border-top: var(--rule-hair);
  border-bottom: var(--rule-hair);
  max-width: var(--measure);
}
.azbar a, .azbar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 1.05rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.azbar a { color: var(--oxblood); border-color: var(--gold-faint); }
.azbar a:hover { background: var(--oxblood-wash); border-color: var(--gold); }
.azbar span { color: var(--ink-faint); opacity: .55; }

.azgroup { margin: 0 0 var(--s7); max-width: var(--measure); scroll-margin-top: 6rem; }
.azgroup__letter {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  line-height: 1;
  font-weight: 400;
  color: var(--oxblood);
  margin: 0 0 var(--s4);
  padding-bottom: var(--s3);
  border-bottom: var(--rule-strong);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.azgroup__letter small {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--track-lbl);
  color: var(--ink-faint);
  font-weight: 600;
}

.azlist { list-style: none; margin: 0; padding: 0; }
.azlist > li {
  padding: var(--s4) 0;
  border-bottom: 1px dotted var(--gold-soft);
  padding-left: 1.6em;
  text-indent: -1.6em;
}
.azlist > li:last-child { border-bottom: 0; }
.azlist .term {
  font-weight: 700;
  font-size: 1.0625em;
  text-decoration: none;
  color: var(--oxblood);
  text-decoration: underline;
  text-decoration-color: var(--gold-faint);
  text-underline-offset: 0.2em;
}
.azlist .term:hover { text-decoration-color: var(--oxblood); }
.azlist .pos { font-style: italic; color: var(--ink-muted); font-size: 0.92em; }
.azlist .def { display: block; text-indent: 0; margin-top: var(--s1); color: var(--ink-2); font-size: 0.96em; }

/* --------------------------------------------------------------------------
   18. CITE THIS ENTRY
   -------------------------------------------------------------------------- */

.cite {
  max-width: var(--measure);
  margin: var(--s7) 0 0;
  padding: var(--s5);
  background: var(--paper-sunk);
  border: var(--rule-fine);
  border-top: 2px solid var(--gold);
}
.cite h2 {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-lbl);
  color: var(--ink-muted);
  margin: 0 0 var(--s3);
  border: 0;
  padding: 0;
}
.cite p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-2);
  padding-left: 2.2em;
  text-indent: -2.2em;
}
.cite p + p { margin-top: var(--s3); }
.cite cite { font-style: italic; }

/* --------------------------------------------------------------------------
   19. SEE ALSO + PAGER
   -------------------------------------------------------------------------- */

.seealso { max-width: var(--measure); margin: var(--s7) 0 0; }
.seealso h2 {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-lbl);
  color: var(--ink-muted);
  margin: 0 0 var(--s3);
  padding-bottom: var(--s2);
  border-bottom: var(--rule-hair);
}
.seealso ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.seealso li { border-bottom: 1px dotted var(--gold-faint); }
.seealso li:last-child { border-bottom: 0; }
.seealso a {
  display: block;
  padding: var(--s3) 0;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink-2);
}
.seealso a:hover { color: var(--oxblood); }
.seealso a strong { color: var(--oxblood); font-weight: 700; display: block; }
.seealso a span { font-size: 0.9rem; color: var(--ink-muted); }

.pager {
  display: grid;
  gap: var(--s3);
  max-width: var(--measure);
  margin: var(--s6) 0 0;
  padding-top: var(--s5);
  border-top: var(--rule-strong);
}
@media (min-width: 40rem) { .pager { grid-template-columns: 1fr 1fr; gap: var(--s5); } }
.pager a {
  display: block;
  padding: var(--s4);
  min-height: 44px;
  text-decoration: none;
  border: var(--rule-fine);
  background: var(--paper-2);
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.pager a:hover { border-color: var(--gold); background: var(--paper-3); }
.pager__dir {
  display: block;
  font-size: var(--fs-micro);
  color: var(--ink-faint);
  margin-bottom: var(--s1);
}
.pager__term { display: block; font-size: var(--fs-h3); color: var(--oxblood); line-height: 1.3; }
.pager .next { text-align: right; }

/* --------------------------------------------------------------------------
   20. FOOTER
   -------------------------------------------------------------------------- */

.colophon {
  border-top: var(--rule-strong);
  background: var(--paper-2);
  margin-top: var(--s7);
}
.colophon__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--s8) clamp(1rem, 4vw, 3rem) var(--s6);
}

.colophon__statement {
  max-width: 46ch;
  margin: 0 0 var(--s7);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink);
}
.colophon__statement strong { color: var(--oxblood); }
.colophon__statement span {
  display: block;
  margin-top: var(--s3);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.foot__cols {
  display: grid;
  gap: var(--s6);
  grid-template-columns: 1fr;
  padding-top: var(--s6);
  border-top: var(--rule-hair);
}
@media (min-width: 38rem) { .foot__cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .foot__cols { grid-template-columns: repeat(4, 1fr); gap: var(--s5); } }

.foot__col h2 {
  font-size: var(--fs-micro);
  color: var(--oxblood);
  margin: 0 0 var(--s3);
  padding-bottom: var(--s2);
  border-bottom: var(--rule-hair);
}
.foot__col ul { list-style: none; margin: 0; padding: 0; }
.foot__col a {
  display: block;
  padding: 0.42rem 0;
  min-height: 32px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.45;
}
.foot__col a:hover { color: var(--oxblood); }
@media (max-width: 62rem) { .foot__col a { min-height: 44px; display: flex; align-items: center; } }

.colophon__end {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: var(--rule-hair);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: var(--fs-micro);
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.colophon__end p { margin: 0; }
.colophon__legal { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); list-style: none; margin: 0; padding: 0; }
.colophon__legal a {
  color: var(--ink-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.colophon__legal a:hover { color: var(--oxblood); }

/* --------------------------------------------------------------------------
   21. UTILITIES
   -------------------------------------------------------------------------- */

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); }
.muted { color: var(--ink-muted); }
.small { font-size: 0.9375rem; }
.stack-lg > * + * { margin-top: var(--s6); }

/* Error page */
.err { text-align: left; padding-top: var(--s7); }
.err__code {
  font-family: var(--serif);
  font-size: var(--fs-huge);
  line-height: 1;
  color: var(--oxblood);
  margin: 0 0 var(--s4);
  font-variant-numeric: lining-nums;
}

/* --------------------------------------------------------------------------
   22. MOTION PREFERENCES
   -------------------------------------------------------------------------- */

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

/* --------------------------------------------------------------------------
   23. PRINT — every page prints like a dictionary page
   -------------------------------------------------------------------------- */

@media print {
  @page { margin: 18mm 16mm; }

  :root {
    --paper: #fff; --paper-2: #fff; --paper-3: #fff; --paper-sunk: #fff;
    --ink: #000; --ink-2: #1a1a1a; --ink-muted: #444; --ink-faint: #555;
    --oxblood: #000; --gold: #999; --gold-soft: #aaa; --gold-faint: #ccc;
  }

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10.5pt;
    line-height: 1.5;
  }

  .skip,
  .masthead,
  .rail,
  .index-m,
  .pager,
  .azbar,
  .foot__cols,
  .colophon__legal { display: none !important; }

  .folio { display: block; padding: 0; max-width: none; }
  .leaf { max-width: none; }
  .prose, .prose > *, .capsule, .senses, .entry__usage, .entry__foot,
  .cite, .seealso, .table-scroll, .faq { max-width: none; }

  .crumb {
    border-bottom: 0.5pt solid #999;
    font-size: 8pt;
    margin-bottom: 10pt;
  }

  .entry { border-bottom: 1pt solid #000; page-break-inside: avoid; }
  .entry::before { border-top: 1.5pt solid #000; }
  .entry__headword { font-size: 24pt; }
  .entry__meta { font-size: 9pt; }
  .folio-line { font-size: 8pt; border-top: 0.5pt solid #999; }
  .folio-line__lbl { border: 0.5pt solid #999; }
  .entry__usage { background: none; border-left: 2pt solid #000; }

  .capsule { border: 0.5pt solid #000; box-shadow: none; page-break-inside: avoid; }
  .capsule::before, .capsule::after { display: none; }

  .note { border: 0.5pt solid #999; }
  .notes { display: block; }
  .note + .note { margin-top: 8pt; }

  h1, h2, h3 { page-break-after: avoid; }
  table, blockquote, .faq__item, .cite { page-break-inside: avoid; }
  .table-scroll { overflow: visible; border-top: 1pt solid #000; border-bottom: 1pt solid #000; }

  a { color: #000 !important; text-decoration: none; }
  .prose a[href^="/"]::after,
  .prose a[href^="http"]::after,
  .seealso a[href^="/"]::after {
    content: " (whoisthekingofaeo.com" attr(href) ")";
    font-size: 8pt;
    color: #444;
  }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; }

  .colophon { border-top: 1pt solid #000; background: none; margin-top: 14pt; }
  .colophon__inner { padding: 8pt 0 0; }
  .colophon__statement { font-size: 9pt; }
  .colophon__end { font-size: 7.5pt; }

  .fleuron { margin: 10pt 0; }
}
