/* ───────────────────────────────────────────────────────────────────
   Arcane Ages — shared site style.
   An illuminated grimoire rendered for screen: gilded inscriptional
   titles and parchment prose on deep indigo ink.
   ─────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Marcellus&family=Spectral:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --ink:        #0c0b14;  /* deep indigo-black night */
  --ink-raised: #15131f;  /* lifted panels */
  --ink-high:   #1a1826;  /* highest surface: hover fills */
  --parchment:  #dad0be;  /* body text */
  --muted:      #8f8678;  /* secondary text */
  --gilt:       #c7a24b;  /* aged gold — titles, links */
  --arg:       color-mix(in srgb, var(--gilt) 45%, var(--parchment)); /* placeholders, ~#d1bb8a (owner 2026-11-12) */
  --gilt-bright:#e3c072;  /* hover gold */
  --gilt-deep:  #a77f35;  /* gold in shadow — pressed states */
  --verdigris:  #7fa06a;  /* muted arcane green — secondary accent */
  --rule:       #272437;  /* hairlines */
  --maxw:       760px;    /* prose column */
  --maxw-wide:  980px;    /* header + image pages */
}

* { box-sizing: border-box; }

::selection { background: rgba(199,162,75,0.25); }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: 'Spectral', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

/* faint arcane texture: a barely-there radial glow, no images */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(199,162,75,0.06), transparent 60%),
    radial-gradient(900px 600px at 90% 110%, rgba(127,160,106,0.05), transparent 60%);
}

/* ── Header / global nav ─────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(10, 9, 18, 0.6);
}
.site-header__inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 22px 24px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.site-header__mark { display: inline-flex; align-items: center; text-decoration: none; }
.site-header__mark img { display: block; height: 52px; width: auto; }
/* The menu: four groups, News and Play (tools/site-nav/sitenav.py writes it
   into every page; website/nav.js keeps one menu open at a time). */
.site-header { position: relative; z-index: 20; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px 22px;
  margin-left: auto;
  font-family: 'Marcellus', serif;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.nav-groups { display: flex; align-items: center; gap: 4px 22px; }
.site-nav summary { list-style: none; cursor: pointer; }
.site-nav summary::-webkit-details-marker { display: none; }
.nav-grp { position: relative; }
.nav-grp > summary, .site-nav a.nav-news {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-grp > summary::after {
  content: ""; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .15s ease;
}
.nav-grp[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.nav-grp > summary:hover, .nav-grp[open] > summary, .nav-news:hover { color: var(--gilt-bright); }
.nav-grp.is-current > summary, .nav-news.is-current { color: var(--gilt); border-bottom-color: var(--gilt); }
.nav-panel {
  position: absolute; top: calc(100% + 12px); left: -18px; z-index: 30;
  width: 340px; padding: 8px;
  background: var(--ink-raised);
  border: 1px solid #332f45; border-top: 2px solid var(--gilt);
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
}
.nav-grp:nth-child(n+3) .nav-panel { left: auto; right: -18px; }
.site-header__mark, .site-nav a, .site-footer__map a { border-bottom: 0; }
.nav-panel a { display: block; padding: 9px 12px 10px; text-decoration: none; border-radius: 2px; }
.nav-panel a:hover, .nav-panel a:focus-visible { background: var(--ink-high); }
.nav-panel .t { display: block; color: var(--gilt); font-size: 1.05rem; }
.nav-panel .d { display: block; font-family: 'Spectral', Georgia, serif; color: var(--muted); font-size: .86rem; line-height: 1.4; letter-spacing: 0; margin-top: 1px; }
.nav-panel a[aria-current] .t { color: var(--gilt-bright); }
.nav-panel a[aria-current] .t::after { content: " ·  you are here"; font-family: 'Spectral', Georgia, serif; font-style: italic; font-size: .8rem; color: var(--verdigris); }
.nav-panel a[aria-current="true"] .t::after { content: " ·  you are in here"; }
.nav-play {
  color: var(--ink); text-decoration: none;
  background: linear-gradient(180deg, var(--gilt-bright), var(--gilt));
  border: 1px solid #e9cc85; border-radius: 2px;
  padding: 6px 20px 7px; letter-spacing: .06em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.18), 0 3px 14px rgba(199,162,75,.22);
}
.nav-play:hover { filter: brightness(1.07); color: var(--ink); }
.nav-sheet { display: none; }
.nav-sheet > summary {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid #332f45; border-radius: 2px; padding: 5px 11px;
  color: var(--parchment);
}
.nav-sheet > summary .bars {
  position: relative; width: 16px; height: 10px;
  border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
}
.nav-sheet > summary .bars::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1.5px solid currentColor; transform: translateY(-50%);
}
.nav-sheet[open] > summary { border-color: var(--gilt); color: var(--gilt-bright); }
.nav-sheet__list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
  max-height: calc(100vh - 70px); overflow-y: auto;
  background: var(--ink-raised);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  padding: 4px 18px 20px;
}
.nav-sheet__list .nav-h {
  margin: 16px 0 2px; color: var(--muted);
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
}
.site-nav .nav-sheet__list a {
  display: block; padding: 8px 0; border-bottom: 1px solid var(--rule);
  color: var(--gilt); text-decoration: none; font-size: 1.08rem;
}
.nav-sheet__list .d { display: block; font-family: 'Spectral', Georgia, serif; font-size: .84rem; color: var(--muted); line-height: 1.35; letter-spacing: 0; }
.nav-sheet__list a[aria-current] { color: var(--gilt-bright); }
.nav-sheet__list a[aria-current]::before { content: "◆ "; color: var(--verdigris); font-size: .75rem; }

/* ── Main column ─────────────────────────────────────────────────── */
main { max-width: var(--maxw-wide); margin: 0 auto; padding: 56px 24px 72px; }
main.wide { max-width: var(--maxw-wide); }
/* Prose inside a wide page keeps the reading measure. */
main.wide .measure { max-width: calc(var(--maxw) - 48px); margin-left: auto; margin-right: auto; }

h1, h2, h3 { font-family: 'Marcellus', serif; font-weight: 400; line-height: 1.2; }

h1 {
  color: var(--gilt);
  font-size: 2.6rem;
  margin: 0 0 .1em;
  letter-spacing: 0.01em;
}
/* gilt hairline under the page title */
.page-title { margin-bottom: 1.6rem; }
.page-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: .9rem;
  background: linear-gradient(90deg, var(--gilt), rgba(199,162,75,0.15) 60%, transparent);
}
.page-title .kicker {
  display: block;
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: .5rem;
  letter-spacing: 0;
}

h2 { color: var(--verdigris); font-size: 1.5rem; margin: 2.2rem 0 .5rem; }
h3 { color: var(--parchment); font-size: 1.2rem; margin: 1.8rem 0 .4rem; }

p { margin: 0 0 1.1rem; }
strong { color: #efe7d6; }

a { color: var(--gilt); text-decoration: none; border-bottom: 1px solid rgba(199,162,75,0.35); }
a:hover { color: var(--gilt-bright); border-bottom-color: var(--gilt-bright); }

ul, ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
li { margin: 0 0 .45rem; }
li > :is(ul, ol) { margin: .45rem 0 0; }

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

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

/* Preformatted blocks: syntax lines, aligned tables from the old help */
pre {
  background: var(--ink-raised);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .9rem 1rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .85rem;
  line-height: 1.5;
  color: var(--parchment);
}

/* Data tables: races, classes, clans, rosters */
table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: .96rem; }
caption { color: var(--muted); font-style: italic; margin-bottom: .5rem; text-align: left; }
th, td { border: 1px solid var(--rule); padding: .5rem .7rem; text-align: left; vertical-align: top; }
th { font-family: 'Marcellus', serif; font-weight: 400; color: var(--gilt); background: rgba(199,162,75,0.05); }
tr:nth-child(even) td { background: rgba(255,255,255,0.015); }

/* Definition lists */
dl { margin: 1.4rem 0; }
dt { font-family: 'Marcellus', serif; color: var(--verdigris); margin-top: 1rem; }
dd { margin: .2rem 0 0; padding-left: 1.1rem; }

blockquote {
  margin: 1.4rem 0; padding: .2rem 0 .2rem 1.2rem;
  border-left: 2px solid var(--gilt);
  color: var(--muted); font-style: italic;
}

/* An index of sub-pages: a quiet list, not a card grid */
.entries { list-style: none; padding: 0; margin: 1.5rem 0; }
.entries li { margin: 0 0 1.4rem; padding: 0; }
.entries a { font-family: 'Marcellus', serif; font-size: 1.25rem; border: 0; }
.entries .desc { display: block; color: var(--muted); font-size: 0.98rem; margin-top: .15rem; }

/* "back to index" link at the foot of a content page */
.back { margin-top: 2.4rem; font-family: 'Marcellus', serif; }
.back a { border: 0; }

/* The connect line — the one call to action that matters */
.connect {
  display: inline-block;
  margin: .4rem 0 0;
  padding: .5rem .95rem;
  border: 1px solid var(--gilt);
  color: var(--gilt);
  font-family: 'Marcellus', serif;
  letter-spacing: .03em;
  border-radius: 2px;
  background: rgba(199,162,75,0.04);
}
.connect:hover { color: var(--gilt-bright); border-color: var(--gilt-bright); }
.connect:active { color: var(--gilt-deep); border-color: var(--gilt-deep); }

/* The grand play button on the landing hero: a solid gilt plate, two lines,
   verdigris gems flanking the title (Play Button Studies, G3). The page's one
   solid-gold object; everywhere else gilt stays an outline or text color. */
.connect-grand {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: .4rem 0 0;
  padding: .85rem 2.2rem 1rem;
  border: 1px solid #e9cc85;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gilt-bright), var(--gilt));
  color: var(--ink);
  font-family: 'Marcellus', serif;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 rgba(0,0,0,.18), 0 4px 18px rgba(199,162,75,.22);
  transition: box-shadow .25s ease, filter .25s ease;
}
.connect-grand .line1 {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: 21px;
  letter-spacing: .05em;
}
.connect-grand .line1 i {
  width: 8px;
  height: 8px;
  background: #4f6b41;
  transform: rotate(45deg);
  flex: none;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.connect-grand .line2 {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(12,11,20,.74);
}
/* The gleam: a sheen that sweeps the plate while hovered. Sits off-plate at
   rest so nothing shows until the animation runs. */
.connect-grand::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -45%;
  width: 30%;
  height: 140%;
  transform: skewX(-18deg);
  background: linear-gradient(105deg, rgba(255,255,255,0), rgba(255,252,240,.5), rgba(255,255,255,0));
  pointer-events: none;
}
@keyframes connect-gleam {
  0% { left: -45%; }
  55% { left: 115%; }
  100% { left: 115%; }
}
/* Hover: the plate warms and its halo swells, the gleam sweeps, the gems
   flare. Nothing translates, so the text never shifts. The global a:hover
   turns link text gilt-bright, which vanishes on gold — restate ink. */
.connect-grand:hover {
  color: var(--ink);
  border-color: #f2d898;
  filter: brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(0,0,0,.16), 0 0 26px rgba(227,192,114,.4), 0 0 64px rgba(199,162,75,.2);
}
.connect-grand:hover::after { animation: connect-gleam 1.5s ease-in-out infinite; }
.connect-grand:hover .line1 i {
  background: #3f5a33;
  transform: rotate(45deg) scale(1.3);
  box-shadow: 0 0 8px rgba(63,90,51,.6);
}
.connect-grand:active {
  color: var(--ink);
  border-color: #e9cc85;
  filter: brightness(.94);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.25), 0 0 14px rgba(199,162,75,.25);
}
@media (prefers-reduced-motion: reduce) {
  .connect-grand::after { display: none; }
}

/* "From the archives" banner on preserved historical pages */
.archive-note {
  margin: 0 0 2rem;
  padding: .55rem .9rem;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--verdigris);
  border-radius: 2px;
  background: var(--ink-raised);
  color: var(--muted);
  font-style: italic;
  font-size: .95rem;
}
code, .mono { font-family: 'Spectral', serif; color: var(--gilt); }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(10, 9, 18, 0.6);
}
.site-footer__map {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 30px 24px 6px;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 22px 18px;
}
.site-footer__map h2 {
  font-family: 'Marcellus', serif; font-weight: 400; color: var(--parchment);
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 8px;
}
.site-footer__map ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; line-height: 1.5; }
.site-footer__map a { text-decoration: none; }
.site-footer__map a[aria-current] { color: var(--gilt); }
.site-footer__inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 20px 24px 40px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gilt); }
.site-footer .realm { font-family: 'Marcellus', serif; color: var(--parchment); }

/* ── Landing hero ────────────────────────────────────────────────── */
.hero { text-align: center; padding: 40px 0 8px; }
.hero img { width: min(460px, 86vw); height: auto; }
.hero .tagline {
  font-family: 'Marcellus', serif;
  color: var(--parchment);
  font-size: 1.3rem;
  margin: 1.1rem 0 1.4rem;
}
.hero .hero-alt { color: var(--muted); font-size: .92rem; margin: .8rem 0 0; }
.hero .hero-alt a { color: var(--muted); }
.hero .hero-alt a:hover { color: var(--gilt); }

/* ── Landing: Arrival ────────────────────────────────────────────────
   The homepage opens on the painting of Mozartia (art/mozartia/, a tall
   crop on portrait screens). The header lies over the sky on an ink scrim,
   the call to play stands on the hillside, and the feature cards rise over
   the painting's lower edge (owner's choice of the /mockups/mozartia/
   studies, 2026-11-24).
   The name stands in the sky as two carved words, ARCANE and AGES, either
   side of the Bell Tower, in the header lockup's own language: its rune
   glyphs above each word, its fading rule and green gem beneath (owner's
   choice of /mockups/arcane-ages-engraved-6/, 2026-11-25). */
.home .site-header {
  position: absolute; left: 0; right: 0; top: 0; border-bottom: 0; padding-bottom: 40px;
  background: linear-gradient(rgba(12,11,20,.92), rgba(12,11,20,.74) 52%, rgba(12,11,20,.38) 80%, rgba(12,11,20,0));
}
.home .nav-grp > summary { color: #d9cfbc; text-shadow: 0 1px 8px rgba(12,11,20,.95); }
.home .nav-grp > summary:hover, .home .nav-grp[open] > summary { color: var(--gilt-bright); }
.home .nav-sheet > summary { background: rgba(12,11,20,.55); border-color: rgba(218,208,190,.35); }
.arrival {
  position: relative; overflow: hidden; container-type: inline-size;
  --h: max(640px, min(100svh, 64vw)); height: var(--h);
  background: linear-gradient(var(--ink) 0, #46507a calc(var(--sky) * .8), #7f93c4 calc(var(--sky) * 1.6));
  /* The two word images' width over height, and the room they are given. */
  --r1: 3.897; --r2: 2.4751;
  --sky: clamp(54px, 5cqw, 84px); --edge: 24px; --cap: 10.6cqw; --mintop: 90px;
  --half: min(466px, calc(50cqw - var(--edge)));
  /* The painting: height over width, how far right of its middle the Bell
     Tower stands (--k), and half the tower's width plus a gap (--thw).
     mozartia-v5 to v7 (2026-11-25): the tower's centre line is 54.14% across
     (v3: 54.04%); its roof, square-on, is 201 of the painting's 3840
     wide at the eaves (v3's shaft: about 120), so --thw grew. */
  --pr: .5625; --k: .0414; --thw: .042; --ty: .155;
  --pw0: max(100cqw, calc((var(--h) - var(--sky)) / var(--pr)));
  --gapx: calc(var(--thw) * var(--pw0));
  /* One height for both words: the largest at which ARCANE, the tower and
     AGES together fill the content column. The group is centred on the
     page, so the tower must stand --d right of centre: half the difference
     between the two words' widths. */
  --wh: min(calc((2 * var(--half) - 2 * var(--gapx)) / (var(--r1) + var(--r2))), var(--cap));
  --d: calc(var(--wh) * (var(--r1) - var(--r2)) / 2);
  /* The painting slides by --s to put the tower there and grows by twice
     that, so neither edge of the picture ever shows. */
  --s0: calc(var(--d) - var(--k) * var(--pw0));
  --s: min(calc(var(--s0) / (1 + 2 * var(--k))), calc(var(--s0) / (1 - 2 * var(--k))));
  --pw: calc(var(--pw0) + 2 * max(var(--s), -1 * var(--s)));
  /* AGES sits a fifth of the word height below ARCANE; the runes need room above. */
  --drop: calc(var(--wh) * .2); --up: calc(var(--wh) * .33);
  --y0: max(calc(var(--mintop) + var(--up)), calc(var(--sky) + var(--pw) * var(--pr) * var(--ty) - var(--wh) / 2 - var(--drop) / 2));
}
.arrival__plate {
  position: absolute; top: var(--sky); left: 50%; width: var(--pw); aspect-ratio: 16 / 9;
  transform: translateX(calc(-50% + var(--s)));
  -webkit-mask-image: linear-gradient(transparent 0, #000 9%); mask-image: linear-gradient(transparent 0, #000 9%);
}
.arrival__plate picture, .arrival__plate img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* A gentle deepening of the sky behind the lettering; no box. */
.arrival__tint {
  position: absolute; pointer-events: none;
  left: calc(50cqw - var(--half) - 12cqw); right: calc(50cqw - var(--half) - 12cqw);
  top: calc(var(--y0) - var(--wh) * 1.1); height: calc(var(--wh) * 3.3 + var(--drop));
  background: radial-gradient(closest-side, rgba(34,52,128,.34), rgba(34,52,128,.2) 55%, rgba(34,52,128,0));
}
.arrival__title { margin: 0; }
.arrival__word {
  position: absolute; z-index: 1; top: var(--y0); height: var(--wh);
  filter: drop-shadow(0 2px 2px rgba(18,22,66,.6)) drop-shadow(0 5px 14px rgba(18,24,78,.5)) drop-shadow(0 0 30px rgba(24,34,98,.34));
}
.arrival__word img { display: block; height: 100%; max-width: none; }
.arrival__word--arcane { right: calc(50cqw - var(--d) + var(--gapx)); }
.arrival__word--arcane img { width: calc(var(--wh) * var(--r1)); }
.arrival__word--ages { left: calc(50cqw + var(--d) + var(--gapx)); top: calc(var(--y0) + var(--drop)); }
.arrival__word--ages img { width: calc(var(--wh) * var(--r2)); }
.arrival__runes { position: absolute; left: 50%; bottom: calc(100% + var(--wh) * .07); height: calc(var(--wh) * .23); width: auto; transform: translateX(-50%); overflow: visible; }
.arrival__under { position: absolute; left: 3%; right: 3%; top: calc(100% + var(--wh) * .06); height: calc(var(--wh) * .17); display: flex; align-items: center; gap: calc(var(--wh) * .05); }
.arrival__rule { flex: 1; height: max(1.5px, calc(var(--wh) * .015)); background: #d9b561; border-radius: 1px; }
.arrival__word--arcane .arrival__rule:first-child { background: linear-gradient(90deg, rgba(217,181,97,0), #d9b561 70%); }
.arrival__word--ages .arrival__rule:last-child { background: linear-gradient(90deg, #d9b561 30%, rgba(217,181,97,0)); }
.arrival__gem { height: 100%; width: auto; flex: none; }
.arrival::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(12,11,20,0) 46%, rgba(12,11,20,.5) 64%, rgba(12,11,20,.84) 84%, var(--ink) 100%);
}
.arrival__text { position: absolute; left: 0; right: 0; bottom: 112px; z-index: 2; text-align: center; padding: 0 24px; }
.arrival__eyebrow {
  font-family: 'Marcellus', serif; letter-spacing: .24em; text-transform: uppercase; font-size: .78rem;
  color: #f0d48c; margin: 0 0 .7rem;
  text-shadow: 0 1px 2px rgba(12,11,20,1), 0 0 14px rgba(12,11,20,1), 0 0 26px rgba(12,11,20,.9);
}
.arrival__tag {
  font-family: 'Marcellus', serif; line-height: 1.2;
  font-size: clamp(1.7rem, 3vw, 2.45rem); text-wrap: balance; color: #f6eedb;
  max-width: calc(var(--maxw-wide) - 48px); margin: 0 auto 1.1rem;
  text-shadow: 0 2px 3px rgba(12,11,20,.85), 0 0 30px rgba(12,11,20,.9);
}
.arrival__text .hero-alt { color: #cfc5b2; font-size: .92rem; margin: .9rem 0 0; text-shadow: 0 1px 8px rgba(12,11,20,.95); }
.arrival__text .hero-alt a { color: #e6dcc8; }
.arrival__text .hero-alt a:hover { color: var(--gilt-bright); }
.home main { position: relative; z-index: 3; margin-top: -92px; padding-top: 0; }
/* The cards speak for themselves over the painting; the heading stays for
   screen readers and the document outline. */
.arrival-h { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home .features { gap: 18px; margin: 0 0 2.6rem; }
.home .features li {
  border: 1px solid #332f45; border-top: 2px solid var(--gilt); border-radius: 2px;
  background: rgba(19,17,29,.95); padding: 18px 22px 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.home .features .rune-quote { background: rgba(255,255,255,.03); }
@media (max-aspect-ratio: 4/5) {
  .arrival { --h: 94svh; --pr: 1.5; --k: .047; --thw: .103; --sky: 62px; --edge: 18px; --cap: 24cqw; --mintop: 74px; }
  .arrival__plate { aspect-ratio: 2 / 3; }
  .arrival::after { background: linear-gradient(to bottom, rgba(12,11,20,0) 34%, rgba(12,11,20,.62) 52%, rgba(12,11,20,.88) 80%, var(--ink) 100%); }
  .arrival__text { bottom: 104px; padding: 0 18px; }
  .arrival__eyebrow { font-size: .7rem; letter-spacing: .18em; }
}

/* ── Landing: what awaits you ────────────────────────────────────── */
.features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin: 1rem 0 0;
  padding: 0;
}
.features li { border-top: 1px solid var(--rule); padding: 16px 0 22px; }
.features h3 {
  font-family: 'Marcellus', serif;
  color: var(--verdigris);
  font-size: 1.2rem;
  margin: 0 0 .45rem;
}
.features p { margin: 0; font-size: 16.5px; line-height: 1.62; }
.features .rune-quote {
  margin: .8rem 0 0;
  padding: .65rem .85rem;
  background: var(--ink-raised);
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-style: italic;
  font-size: .92rem;
  color: var(--parchment);
}

/* ── Landing: the atlas teaser ───────────────────────────────────── */
.map-tease { margin: 2.4rem 0 .6rem; text-align: center; }
/* The frame takes an explicit width and the image fills it, so the border
   always hugs the map with no gap. */
.map-tease a.frame {
  display: inline-block;
  width: min(900px, 100%);
  box-sizing: border-box;
  padding: 10px;
  background: var(--ink-raised);
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: border-color .15s ease;
}
.map-tease a.frame:hover { border-color: var(--gilt); }
.map-tease img { display: block; width: 100%; height: auto; }
.map-tease .caption { color: var(--muted); font-size: .92rem; margin: .7rem 0 0; }

/* ── Landing: the chronicle ──────────────────────────────────────── */
.chronicle { list-style: none; margin: 1rem 0 0; padding: 0; }
.chronicle li {
  border-top: 1px solid var(--rule);
  padding: 12px 0;
  display: flex;
  gap: 18px;
  align-items: baseline;
}
.chronicle time {
  flex: none;
  width: 102px;
  font-family: 'Marcellus', serif;
  font-size: .9rem;
  color: var(--gilt);
}
.chronicle span { font-size: 16.5px; line-height: 1.6; }
.chronicle-more { font-size: .95rem; }

/* ── Help (/help/, built by tools/help/build_site.py) ────────────── */
/* Entry bodies use the quill- classes of the Quill renderer (rust/quill).
   Each rule also names the old aa- class, the renderer's prefix before the
   rename to Quill (2026-11-12): drop those aliases in the cleanup listed in
   deploy/next-live-deploy.md.
   Topic names are set as inscriptions; syntax is the one gilt plate on
   the page; immortal topics carry the orchil ink (ANSI magenta). */
:root { --orchil: #c495c9; --woad: #8aa7cf; --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace; }

main.help.wide { max-width: var(--maxw-wide); }
.help :focus-visible { outline: 2px solid var(--gilt-bright); outline-offset: 2px; }

.help-search input {
  width: 100%;
  font: inherit;
  color: var(--parchment);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: .3rem 0;
  -webkit-appearance: none;
  appearance: none;
}
.help-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.help-search input::placeholder { color: var(--muted); opacity: 1; }
.help-search input:focus { outline: none; border-bottom-color: var(--gilt); }
.help-search.big { margin: 0 0 2.2rem; }
.help-search.big input {
  font-family: 'Marcellus', serif;
  font-size: 1.6rem;
  letter-spacing: .01em;
  padding: .4rem 0 .5rem;
  border-bottom: 1px solid var(--gilt-deep);
}
.help-search.big input:focus { border-bottom-color: var(--gilt-bright); }
.help-search.small { flex: 0 1 240px; }
.help-search.small input { font-size: .95rem; }

.help-bar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px 24px; margin: 0 0 2.4rem;
}
.help-home { font-family: 'Marcellus', serif; border: 0; color: var(--muted); }
.help-home::before { content: "\2039\00a0"; }

.help-title {
  font-size: 2.3rem;
  letter-spacing: .05em;
  overflow-wrap: anywhere;
  margin: 0 0 .5rem;
}
.help-meta { color: var(--muted); font-size: .95rem; margin: 0 0 1.8rem; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.help-also { color: var(--muted); }
.help-mark {
  display: inline-block;
  font-family: 'Marcellus', serif;
  font-size: .82rem;
  letter-spacing: .03em;
  line-height: 1.5;
  padding: 0 .45rem;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.help-mark.imm { color: var(--orchil); }
.help-mark.ava { color: var(--woad); }

.help-body { padding-bottom: .5rem; border-bottom: 1px solid var(--rule); }
.help-body p { overflow-wrap: break-word; }
/* A placeholder (<arg>, owner standing rules 2026-11-12/13): italic, fixed
   width, in its warm colour, wherever it stands: prose, <kbd>, syntax lines,
   table terms, see-also, notes, <pre>. Its brackets are real text in the
   HTML (copying gives <victim>, as telnet; in a <pre> they take telnet's
   columns) and drawn faint: muted and upright, so the word stays the focus. */
.help-body .quill-arg, .help-body .aa-arg { font-family: var(--mono); font-size: .86em; font-style: italic; color: var(--arg); }
.help-body :is(.quill-kbd, .quill-code, .quill-c-examples, .quill-pre, .quill-term, .quill-syntax-line) .quill-arg, .help-body :is(.aa-kbd, .aa-code, .aa-c-examples, .aa-pre, .aa-term, .aa-syntax-line) .aa-arg { font-size: 1em; }
.quill-arg-mark, .aa-arg-mark { font-style: normal; color: var(--muted); }
.help-body .quill-c-examples, .help-body .aa-c-examples { font-family: var(--mono); font-size: .86em; color: #efe7d6; }
.help-body .quill-pre .quill-c-examples, .help-body .aa-pre .aa-c-examples { font-size: 1em; }
.help-body .quill-missing, .help-body .aa-missing { color: var(--muted); border-bottom: 1px dotted var(--muted); }
.help-body .quill-web, .help-body .aa-web { overflow-wrap: anywhere; }
.help-body .quill-code, .help-body .aa-code { font-family: var(--mono); font-size: .86em; color: #efe7d6; }
/* Anything the player types is fixed width: <kbd>, syntax lines, <pre>
   (docs/rich-content/markup.md §5). */
.help-body .quill-kbd, .help-body .aa-kbd { font-family: var(--mono); font-size: .86em; color: #efe7d6; }
.help-body .quill-kbd .quill-c-examples, .help-body .quill-pre .quill-kbd, .help-body .aa-kbd .aa-c-examples, .help-body .aa-pre .aa-kbd { font-size: 1em; }
/* Typed input written in capitals reads in lower case: the fixed-width font
   sets it apart already (owner 2026-11-12, markup.md §5). The HTML keeps
   the stored text; a placeholder keeps its own case. */
.quill-kbd-lower, .aa-kbd-lower { text-transform: lowercase; }
.quill-kbd-lower .quill-arg, .aa-kbd-lower .aa-arg { text-transform: none; }
/* A key the player presses (<key>, owner 2026-11-13): its name on a
   subtle key cap, fixed width, no brackets. Telnet prints <enter>. */
.help-body .quill-time { white-space: nowrap; }
/* <icon/> (quill.md §4.17): a buff's or debuff's icon at text size; its
   colour is the svg's own stroke. Sat on the baseline like a letter. */
.help-body .quill-icon { vertical-align: -0.125em; }
/* A class icon (DECISIONS §68) opening a paragraph: a small emblem the text wraps around. */
.help-body p > .quill-icon-class:first-child { float: left; width: 2.6em; height: 2.6em; margin: .1em .65em .2em 0; }
.help-body .quill-key { font-family: var(--mono); font-size: .8em; font-style: normal; color: #efe7d6; text-transform: none;
  border: 1px solid color-mix(in srgb, var(--muted) 60%, transparent); border-bottom-width: 2px; border-radius: 3px; padding: 0 .3em; white-space: nowrap; }
.help-body :is(.quill-kbd, .quill-pre, .quill-term, .quill-syntax-line) .quill-key { font-size: .92em; }
/* A remark about typed input reads as prose, even on a fixed-width line. */
.help-body .quill-note, .help-body .aa-note { font-family: 'Spectral', serif; font-size: 1.06rem; color: var(--muted); }
/* In a <pre>, a note starts at its column and its later lines (a table
   row's description going on, indented to that column for telnet) line up
   under its first: a block from that column, the indent spaces dropped.
   (white-space: normal was tried, 2026-11-11: the inline-block then takes
   the whole block's width from its column and runs past the right edge.
   Options tables are real tables now; few notes in a <pre> have more than
   one line.) */
.help-body .quill-pre .quill-note, .help-body .aa-pre .aa-note { display: inline-block; vertical-align: top; white-space: pre-line; }
/* In a fixed-width block every character must be one cell wide, so typed
   text and placeholders keep the block's own size (a placeholder is italic
   there too: a fixed-width italic is just as wide); the descriptions then
   line up in one column. */
.help-body .quill-pre .quill-kbd, .help-body .quill-pre .quill-code, .help-body .quill-pre .quill-c-examples, .help-body .aa-pre .aa-kbd, .help-body .aa-pre .aa-code, .help-body .aa-pre .aa-c-examples { font-size: 1em; }
.help-body .quill-pre .quill-code, .help-body .aa-pre .aa-code { font-size: 1em; }
/* Tables (<table>, markup.md §4): a term the player types and its
   description. The term column is fixed width and keeps to one line; the
   description is prose and wraps. On a phone a row becomes a line that
   wraps: the description goes on beside the term while it fits, under it
   when the term is wide. */
.help-body .quill-table, .help-body .aa-table { width: 100%; margin: 1.1rem 0 1.4rem; border-collapse: collapse; font-size: 1rem; }
.help-body .quill-table td, .help-body .aa-table td { border: 0; border-top: 1px solid var(--rule); padding: .42rem 1.1rem .42rem 0; vertical-align: top; text-align: left; background: none; }
.help-body .quill-table td:last-child, .help-body .aa-table td:last-child { padding-right: 0; }
.help-body .quill-table tbody tr:first-child td, .help-body .aa-table tbody tr:first-child td { border-top: 0; }
.help-body .quill-table thead td, .help-body .aa-table thead td { border-top: 0; border-bottom: 1px solid var(--rule); font-family: 'Marcellus', serif; font-size: .95rem; letter-spacing: .03em; color: var(--muted); padding-bottom: .3rem; }
.help-body .quill-table tr.quill-head td, .help-body .aa-table tr.aa-head td { font-family: 'Marcellus', serif; font-size: .95rem; letter-spacing: .03em; color: var(--muted); }
.help-body .quill-term, .help-body .aa-term { width: 1%; white-space: nowrap; font-family: var(--mono); font-size: .86rem; line-height: 1.75; color: #efe7d6; }
.help-body .quill-term .quill-kbd, .help-body .quill-term .quill-code, .help-body .quill-term .quill-c-examples, .help-body .aa-term .aa-kbd, .help-body .aa-term .aa-code, .help-body .aa-term .aa-c-examples { font-size: 1em; }
/* A term that went on in a second line (redit's `exit <dir> <to room>
   <EXITFLAGS>` and `[key <vnum>] [name <keywords>]`) is two typed parts:
   the line may break between them, never inside one, so the column stays
   as wide as the other terms. */
.help-body .quill-term:has(> .quill-kbd + .quill-kbd), .help-body .aa-term:has(> .aa-kbd + .aa-kbd) { white-space: normal; }
.help-body .quill-term:has(> .quill-kbd + .quill-kbd) > .quill-kbd, .help-body .aa-term:has(> .aa-kbd + .aa-kbd) > .aa-kbd { white-space: nowrap; }
/* A term with no description (redit's `addaura …`) runs on over the empty
   description cell rather than widening the term column. */
.help-body .quill-table tr:has(> .quill-desc:empty) > .quill-term, .help-body .aa-table tr:has(> .aa-desc:empty) > .aa-term { max-width: 0; overflow: visible; }
.help-body .quill-desc, .help-body .aa-desc { font-family: 'Spectral', serif; font-style: normal; line-height: 1.55; overflow-wrap: break-word; }
@media (max-width: 600px) {
  .help-body .quill-table, .help-body .quill-table thead, .help-body .quill-table tbody, .help-body .aa-table, .help-body .aa-table thead, .help-body .aa-table tbody { display: block; }
  .help-body .quill-table tr, .help-body .aa-table tr { display: block; border-top: 1px solid var(--rule); padding: .4rem 0; }
  .help-body .quill-table tbody tr:first-child, .help-body .quill-table thead tr, .help-body .aa-table tbody tr:first-child, .help-body .aa-table thead tr { border-top: 0; }
  .help-body .quill-table thead tr, .help-body .aa-table thead tr { border-bottom: 1px solid var(--rule); }
  .help-body .quill-table td, .help-body .quill-table thead td, .help-body .aa-table td, .help-body .aa-table thead td { display: block; border: 0; padding: 0; }
  .help-body .quill-table .quill-desc, .help-body .aa-table .aa-desc { padding-left: 1.2em; }
  .help-body .quill-term, .help-body .quill-table tr:has(> .quill-desc:empty) > .quill-term, .help-body .aa-term, .help-body .aa-table tr:has(> .aa-desc:empty) > .aa-term { width: auto; max-width: 100%; flex: 0 1 auto; white-space: normal; overflow-wrap: anywhere; }
  .help-body .quill-desc, .help-body .aa-desc { flex: 1 1 13rem; min-width: 0; }
}
/* <grid>: tables of N columns (Quill, 2026-11-12). Prose cells, typed
   input fixed width (its own rule), every column but the last on one
   line; a table wider than the page scrolls sideways in its own box. */
.help-body .quill-grid-wrap { overflow-x: auto; margin: 1.1rem 0 1.4rem; max-width: 100%; }
.help-body .quill-grid { border-collapse: collapse; font-size: 1rem; line-height: 1.55; }
.help-body .quill-grid :is(td, th) { border: 0; border-top: 1px solid var(--rule); padding: .36rem 1.1rem .36rem 0; vertical-align: top; text-align: left; background: none; font-weight: normal; }
.help-body .quill-grid :is(td, th):not(:last-child) { white-space: nowrap; }
.help-body .quill-grid :is(td, th):last-child { padding-right: 0; min-width: 12rem; }
.help-body .quill-grid tbody tr:first-child > * { border-top: 0; }
.help-body .quill-grid th { font-family: 'Marcellus', serif; font-size: .95rem; letter-spacing: .03em; color: var(--muted); }
.help-body .quill-grid thead th { border-top: 0; border-bottom: 1px solid var(--rule); vertical-align: bottom; padding-bottom: .3rem; }
.help-body .quill-grid .quill-r { text-align: right; font-variant-numeric: tabular-nums; }
.help-body .quill-grid .quill-m { text-align: center; font-variant-numeric: tabular-nums; }
/* <grid compact lines labels> (quill.md §3.10, owner 2026-11-14): a grid
   that lays things out. Compact: tight, as wide as its content; lines
   head / none: fewer rules; labels: the first column muted, body font. */
.help-body .quill-grid.quill-grid-compact :is(td, th) { padding: .1rem .8rem .1rem 0; }
.help-body .quill-grid.quill-grid-compact :is(td, th):last-child { padding-right: 0; min-width: 0; }
.help-body .quill-grid.quill-grid-lines-none :is(td, th) { border: 0; }
.help-body .quill-grid.quill-grid-lines-head tbody :is(td, th) { border-top: 0; }
.help-body .quill-grid.quill-grid-labels tbody th[scope="row"] { font-family: inherit; font-size: inherit; letter-spacing: normal; color: var(--muted); }
/* A tall grid a page at a time, with a filter box (help/grids.js runs
   /play/'s gridpager.js; docs/quill.md §3.10 *Paging*, owner 2026-11-13).
   The <filter> placeholder: italic gold, fixed width, faint brackets. */
.help-body .quill-grid-wrap:has(+ .quill-grid-pager) { margin-bottom: .5rem; }
.help-body .quill-grid-pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin: 0 0 1.4rem; font-family: 'Marcellus', serif; color: var(--muted); }
.help-body .quill-grid-pager button { font: inherit; color: var(--gilt); background: none; border: 1px solid var(--rule); border-radius: 4px; padding: .1rem .7rem; cursor: pointer; }
.help-body .quill-grid-pager button:hover:not(:disabled) { border-color: var(--gilt); color: var(--gilt-bright); }
.help-body .quill-grid-pager button:disabled { color: var(--muted); opacity: .45; cursor: default; }
.help-body .quill-grid-pager button:focus-visible { outline: 1px solid var(--gilt); outline-offset: 1px; }
.help-body .quill-grid-pager button[hidden] { display: none; }
.help-body .quill-grid-filter { position: relative; flex: 0 1 13rem; min-width: 7rem; display: inline-flex; align-self: stretch; }
.help-body .quill-grid-filter input { width: 100%; min-width: 0; box-sizing: border-box; font: .86rem/1.6 var(--mono); color: var(--parchment); background: none; border: 1px solid var(--rule); border-radius: 4px; padding: .1rem .5rem; margin: 0; }
.help-body .quill-grid-filter input:hover { border-color: color-mix(in srgb, var(--gilt) 50%, var(--rule)); }
.help-body .quill-grid-filter input:focus { outline: none; border-color: var(--gilt); }
.help-body .quill-grid-ph { position: absolute; left: calc(.5rem + 1px); top: 50%; transform: translateY(-50%); pointer-events: none; white-space: nowrap; font: italic .86rem/1.6 var(--mono); color: var(--arg); }
.help-body .quill-grid-ph i { font-style: inherit; opacity: .45; }
.help-body .quill-grid-ph[hidden] { display: none; }
@media (max-width: 600px) {
  .help-body .quill-grid { font-size: .95rem; }
  .help-body .quill-grid :is(td, th) { padding-right: .8rem; }
  .help-body .quill-grid :is(td, th):last-child { min-width: 9rem; }
}
.help-body .quill-h, .help-body .aa-h { font-size: 1.25rem; margin: 1.6rem 0 .6rem; }
.help-body .quill-img, .help-body .aa-img { margin: 1.2rem 0; }
.help-body .quill-img img, .help-body .aa-img img { display: block; border: 1px solid var(--rule); }
.help-body .quill-img-small, .help-body .aa-img-small { max-width: 240px; }
.help-body .quill-align-left, .help-body .aa-align-left { float: left; margin: .3rem 1.2rem .6rem 0; }
.help-body .quill-align-right, .help-body .aa-align-right { float: right; margin: .3rem 0 .6rem 1.2rem; }
/* <p align> and <h align>: a sign's centred title, a letter's signature. */
.help-body .quill-center, .help-body .aa-center { text-align: center; }
.help-body .quill-right, .help-body .aa-right { text-align: right; }
.help-body .quill-align-center img, .help-body .aa-align-center img { margin: 0 auto; }
/* <quote> and margins (markup.md §4, owner 2026-11-12): someone else's
   words, set in from both sides with a thin gold rule. A margin step is 5
   telnet columns (quill-ml-K / quill-mr-K), 2.5em on a wide screen; a margin is
   never more than a fifth of the column, so a phone keeps room to read. */
.help-body .quill-quote, .help-body .aa-quote {
  --quill-l: 1; --quill-r: 1;
  margin: .4em min(calc(var(--quill-r) * 2.5em), 20%) 1.1rem min(calc(var(--quill-l) * 2.5em), 20%);
  padding: .5em .9em;
  border-left: 3px solid var(--gilt);
  /* a raised panel, like the website's syntax callouts (owner 2026-11-15);
     a tint of the text colour so it lifts on every colour scheme */
  background: color-mix(in srgb, currentColor 6%, transparent);
  border-radius: 2px;
  /* the normal text colour, upright (owner 2026-11-12), not the muted
     italic of the site's own blockquote */
  color: inherit; font-style: normal;
}
.help-body .quill-quote > :last-child, .help-body .aa-quote > :last-child { margin-bottom: 0; }
.help-body .quill-indent, .help-body .aa-indent { margin-left: min(calc(var(--quill-l) * 2.5em), 20%); }
.help-body .quill-ml-0, .help-body .aa-ml-0 { --quill-l: 0; } .help-body .quill-ml-1, .help-body .aa-ml-1 { --quill-l: 1; } .help-body .quill-ml-2, .help-body .aa-ml-2 { --quill-l: 2; } .help-body .quill-ml-3, .help-body .aa-ml-3 { --quill-l: 3; } .help-body .quill-ml-4, .help-body .aa-ml-4 { --quill-l: 4; } .help-body .quill-ml-5, .help-body .aa-ml-5 { --quill-l: 5; } .help-body .quill-ml-6, .help-body .aa-ml-6 { --quill-l: 6; } .help-body .quill-ml-7, .help-body .aa-ml-7 { --quill-l: 7; } .help-body .quill-ml-8, .help-body .aa-ml-8 { --quill-l: 8; }
.help-body .quill-mr-0, .help-body .aa-mr-0 { --quill-r: 0; } .help-body .quill-mr-1, .help-body .aa-mr-1 { --quill-r: 1; } .help-body .quill-mr-2, .help-body .aa-mr-2 { --quill-r: 2; } .help-body .quill-mr-3, .help-body .aa-mr-3 { --quill-r: 3; } .help-body .quill-mr-4, .help-body .aa-mr-4 { --quill-r: 4; } .help-body .quill-mr-5, .help-body .aa-mr-5 { --quill-r: 5; } .help-body .quill-mr-6, .help-body .aa-mr-6 { --quill-r: 6; } .help-body .quill-mr-7, .help-body .aa-mr-7 { --quill-r: 7; } .help-body .quill-mr-8, .help-body .aa-mr-8 { --quill-r: 8; }
@media (max-width: 600px) {
  .help-body .quill-quote, .help-body .aa-quote { margin-left: min(calc(var(--quill-l) * 1.2em), 12%); margin-right: min(calc(var(--quill-r) * 1.2em), 12%); padding-left: .7em; padding-right: .7em; }
  .help-body .quill-indent, .help-body .aa-indent { margin-left: min(calc(var(--quill-l) * 1.2em), 12%); }
}
.help-body .quill-font-mono, .help-body .aa-font-mono { font-family: var(--mono); font-size: .9em; }

/* A rune (<rune>, docs/rich-content/markup.md §5): one glyph per rune from
   /runes/v1/sprite.svg, in the rune colour (the magic colour, a theme
   token: gold; owners 2026-11-12, 2026-11-13), then the letters small: help is where players learn what to
   type. The letters are also what copying and screen readers get. Inside a
   <pre> (quill-rune-cols) the letters keep their columns, unseen, and the
   glyphs are drawn centred over them. */
:root { --magic: var(--gilt-bright); --rune: var(--magic); }
.quill-rune { position: relative; white-space: nowrap; }
.quill-rune-gs { display: inline-flex; align-items: center; vertical-align: -0.22em; color: var(--rune); }
.quill-rune-g { flex: none; overflow: visible; }
.quill-rune-sep { display: inline-block; min-width: .35em; text-align: center; color: var(--muted); }
.quill-rune-text { font-family: var(--mono); font-size: .72em; color: var(--muted); margin-left: .3em; letter-spacing: .02em; }
.quill-term .quill-rune-gs { font-size: 1.2em; }
.quill-term .quill-rune-text { font-size: .74em; }
.quill-rune-cols .quill-rune-gs { position: absolute; inset: 0; justify-content: center; vertical-align: 0; }
.quill-rune-cols .quill-rune-text { font: inherit; letter-spacing: 0; margin: 0; color: transparent; }

/* The game's colours (<c>, ^&c…& and ^c codes), each in a tone that reads
   on the ink background. A colour type follows the game's default colour
   for it (quill::codes::ansi_code); players pick their own in the game. */
:root {
  --ansi-black: #77707f;  --ansi-black-b: #9a92a3;
  --ansi-red: #c8675c;    --ansi-red-b: #e88f81;
  --ansi-green: #7fa06a;  --ansi-green-b: #a7c98e;
  --ansi-yellow: #c9a457; --ansi-yellow-b: #ecd07e;
  --ansi-blue: #7f9bc7;   --ansi-blue-b: #a8c2ea;
  --ansi-purple: #b98abf; --ansi-purple-b: #dcb2e0;
  --ansi-cyan: #72aaa3;   --ansi-cyan-b: #9fd5cd;
  --ansi-white: #dad0be;  --ansi-white-b: #f4eee2;
}
.quill-fg-black, .aa-fg-black { color: var(--ansi-black); }   .quill-fg-black.quill-bright, .aa-fg-black.aa-bright { color: var(--ansi-black-b); }
.quill-fg-red, .aa-fg-red { color: var(--ansi-red); }       .quill-fg-red.quill-bright, .aa-fg-red.aa-bright { color: var(--ansi-red-b); }
.quill-fg-green, .aa-fg-green { color: var(--ansi-green); }   .quill-fg-green.quill-bright, .aa-fg-green.aa-bright { color: var(--ansi-green-b); }
.quill-fg-yellow, .aa-fg-yellow { color: var(--ansi-yellow); } .quill-fg-yellow.quill-bright, .aa-fg-yellow.aa-bright { color: var(--ansi-yellow-b); }
.quill-fg-blue, .aa-fg-blue { color: var(--ansi-blue); }     .quill-fg-blue.quill-bright, .aa-fg-blue.aa-bright { color: var(--ansi-blue-b); }
.quill-fg-purple, .aa-fg-purple { color: var(--ansi-purple); } .quill-fg-purple.quill-bright, .aa-fg-purple.aa-bright { color: var(--ansi-purple-b); }
.quill-fg-cyan, .aa-fg-cyan { color: var(--ansi-cyan); }     .quill-fg-cyan.quill-bright, .aa-fg-cyan.aa-bright { color: var(--ansi-cyan-b); }
.quill-fg-white, .aa-fg-white { color: var(--ansi-white); }   .quill-fg-white.quill-bright, .aa-fg-white.aa-bright { color: var(--ansi-white-b); }
.quill-bg-black, .aa-bg-black { background: #000; }   .quill-bg-red, .aa-bg-red { background: #5a2420; }
.quill-bg-green, .aa-bg-green { background: #24391f; } .quill-bg-yellow, .aa-bg-yellow { background: #4a3c1a; }
.quill-bg-blue, .aa-bg-blue { background: #1f2b4a; }  .quill-bg-purple, .aa-bg-purple { background: #3d2442; }
.quill-bg-cyan, .aa-bg-cyan { background: #1d3a37; }  .quill-bg-white, .aa-bg-white { background: #dad0be; color: var(--ink); }
.quill-blink, .aa-blink { text-decoration: underline wavy; text-underline-offset: .2em; }
.quill-c-bold, .aa-c-bold { font-weight: 600; color: var(--ansi-white-b); }
.quill-c-reverse, .aa-c-reverse { background: var(--parchment); color: var(--ink); }
.quill-c-blink, .aa-c-blink { text-decoration: underline wavy; text-underline-offset: .2em; }
.quill-c-mprompt, .quill-c-pprompt, .quill-c-objects, .aa-c-mprompt, .aa-c-pprompt, .aa-c-objects { color: var(--ansi-green); }
.quill-c-exits, .quill-c-clan, .aa-c-exits, .aa-c-clan { color: var(--ansi-green-b); }
.quill-c-title, .quill-c-gods, .aa-c-title, .aa-c-gods { color: var(--ansi-yellow-b); }
.quill-c-track, .quill-c-characters, .aa-c-track, .aa-c-characters { color: var(--ansi-yellow); }
.quill-c-description, .quill-c-log, .aa-c-description, .aa-c-log { color: var(--ansi-white); }
.quill-c-say, .aa-c-say { color: var(--ansi-cyan-b); }
.quill-c-tell, .quill-c-wounded, .quill-c-danger, .aa-c-tell, .aa-c-wounded, .aa-c-danger { color: var(--ansi-red-b); }
.quill-c-hit, .quill-c-combat, .aa-c-hit, .aa-c-combat { color: var(--ansi-red); }
.quill-c-socials, .aa-c-socials { color: var(--ansi-purple); }
.quill-c-gossip, .quill-c-auction, .quill-c-shout, .quill-c-arena, .quill-c-battlefield,
.quill-c-muse, .quill-c-think, .quill-c-ponder, .quill-c-reflect, .aa-c-gossip, .aa-c-auction, .aa-c-shout, .aa-c-arena, .aa-c-battlefield, .aa-c-muse, .aa-c-think, .aa-c-ponder, .aa-c-reflect { color: var(--ansi-purple-b); }
.quill-c-groups, .aa-c-groups { color: var(--ansi-blue-b); }
.quill-c-weather, .aa-c-weather { color: var(--ansi-blue); }
.quill-c-magic, .aa-c-magic { color: var(--magic, var(--ansi-yellow)); }
.quill-c-layer-frame, .aa-c-layer-frame { color: var(--layer-frame, var(--ansi-black-b)); }
/* A notice from the game (Quill <notice>, quill.md §3.11): a strip between
   two thin rules in its colour type, a faint tint, a small line of bell,
   label and sender over the words, larger and semibold (as /play/ draws it). */
.quill-notice { margin: .8em 0; padding: 6px 10px 7px; border-top: 1px solid color-mix(in srgb, currentColor 55%, transparent);
  border-bottom: 1px solid color-mix(in srgb, currentColor 55%, transparent); background: color-mix(in srgb, currentColor 6%, transparent); }
.quill-notice-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; line-height: 1.3; }
.quill-notice-icon { width: 14px; height: 14px; flex: none; }
.quill-notice-label { font-family: 'Marcellus', serif; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.quill-notice-by { font-size: 12px; color: var(--muted); }
.quill-notice-body { font-size: 1.14em; font-weight: 600; line-height: 1.3; margin-top: 1px; }
.quill-notice-body > :is(p, ul, ol, h2, blockquote, pre) { margin: 0 0 .3em; }
.quill-notice-body > :last-child { margin-bottom: 0; }

.quill-syntax, .aa-syntax {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.1rem;
  margin: 0 0 1.6rem;
  padding: .7rem 1rem;
  background: var(--ink-raised);
  border-left: 2px solid var(--gilt);
  border-radius: 2px;
}
.quill-syntax-label, .aa-syntax-label {
  grid-row: 1 / span 99;
  font-family: 'Marcellus', serif;
  color: var(--muted);
  font-size: .9rem;
  padding-top: .1rem;
}
.quill-syntax-line, .aa-syntax-line {
  display: block;
  font-family: var(--mono);
  font-size: .92rem;
  line-height: 1.75;
  color: var(--gilt-bright);
  overflow-wrap: anywhere;
}
.quill-syntax .quill-arg, .aa-syntax .aa-arg { font-family: var(--mono); font-style: italic; color: var(--arg); }

.quill-seealso, .aa-seealso { margin: 1.6rem 0 0; }
.quill-seealso-label, .aa-seealso-label { font-size: 1rem; color: var(--muted); margin: 0 0 .4rem; }
.quill-seealso ul, .aa-seealso ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.quill-seealso li, .aa-seealso li { margin: 0; }
.quill-seealso a, .aa-seealso a { font-family: 'Marcellus', serif; letter-spacing: .03em; font-size: .98rem; border: 0; }
.help-edited { color: var(--muted); font-size: .9rem; font-style: italic; margin: 1rem 0 0; }

/* A spell's numbers (help/spells.js, docs/spell-numbers.md §5): the block the
   game adds to help on telnet, as a two-column table, then a class and level
   picker in place of telnet's "For you" line. */
.spell-numbers { margin: 1.8rem 0 1.4rem; }
.spell-numbers__name { font-size: 1.25rem; margin: 0 0 .4rem; }
.spell-stats { margin: .4rem 0 1rem; font-size: 1rem; }
.spell-stats th, .spell-stats td { border: 0; border-top: 1px solid var(--rule); padding: .42rem 1.1rem .42rem 0; background: none; }
.spell-stats td { padding-right: 0; line-height: 1.55; overflow-wrap: break-word; }
.spell-stats tr:first-child th, .spell-stats tr:first-child td { border-top: 0; }
.spell-stats tr:nth-child(even) td { background: none; }
.spell-stats th { width: 1%; white-space: nowrap; color: var(--muted); font-size: .95rem; letter-spacing: .03em; }
.spell-stats .sn-note { display: block; color: var(--muted); font-size: .92rem; }
.spell-you { border-top: 1px solid var(--rule); padding-top: .7rem; }
.spell-you__h { font-family: 'Marcellus', serif; color: var(--muted); font-size: .95rem; letter-spacing: .03em; margin: 0 0 .3rem; }
.spell-you__fields { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: flex-end; }
.spell-you__field { display: flex; align-items: baseline; gap: .6rem; }
.spell-you__field > span { color: var(--muted); font-size: .95rem; }
.spell-you select, .spell-you input {
  font: inherit; font-size: 1rem; color: var(--parchment); background: var(--ink);
  border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: .25rem .2rem;
}
.spell-you select { cursor: pointer; }
.spell-you input { width: 4.5em; font-family: var(--mono); font-size: .92rem; }
.spell-you select:focus-visible, .spell-you input:focus-visible { outline: 2px solid var(--gilt-bright); outline-offset: 2px; border-bottom-color: var(--gilt); }
.spell-you__out { display: block; margin-top: .6rem; color: var(--gilt-bright); min-height: 1.6em; }
@media (max-width: 600px) {
  .spell-stats th { white-space: normal; width: 5.5em; }
}

/* Index */
.help-results { min-height: 40vh; }
.help-count, .help-none { color: var(--muted); }
.help-hits a, .help-starters a, .help-choices a { font-size: 1.15rem; letter-spacing: .03em; margin-right: .6rem; }
.help-hits .help-also { font-size: .9rem; margin-right: .6rem; }
.help-hits .desc, .help-starters .desc, .help-choices .desc { font-size: .95rem; }
.help-starters { columns: 2 320px; column-gap: 48px; }
.help-starters li { break-inside: avoid; }

.help-subjects { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: .6rem 0 1rem; }
.help-subjects button {
  font: inherit; font-family: 'Marcellus', serif; font-size: .95rem;
  color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 2px 0; cursor: pointer;
}
.help-subjects button span { font-family: 'Spectral', serif; font-size: .82rem; opacity: .8; }
.help-subjects button:hover { color: var(--gilt-bright); }
.help-subjects button[aria-pressed="true"] { color: var(--gilt); border-bottom-color: var(--gilt); }

.help-letters {
  display: flex; flex-wrap: wrap; gap: 2px 4px;
  font-family: 'Marcellus', serif; font-size: 1.05rem;
  padding: .5rem 0; margin: 0 0 .4rem;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.help-letters a { border: 0; min-width: 1.6rem; text-align: center; }
.help-letters a.off { color: var(--rule); pointer-events: none; }
.help-legend { color: var(--muted); font-size: .9rem; margin: .6rem 0 0; }
.imm { color: var(--orchil); }
.help-az .imm { font-size: .7rem; vertical-align: .15em; }

.help-letter h3 { font-size: 1.9rem; color: var(--gilt); margin: 1.6rem 0 .4rem; }
.help-az { list-style: none; padding: 0; margin: 0; columns: 4 210px; column-gap: 28px; }
.help-az li { margin: 0; padding: .12rem 0; break-inside: avoid; font-size: .93rem; line-height: 1.45; overflow-wrap: anywhere; }
.help-az a { border: 0; }

@media (max-width: 760px) {
  .help-search.big input { font-size: 1.3rem; }
  .help-bar { flex-wrap: wrap; }
  .help-search.small { flex: 1 1 100%; }
  .help-title { font-size: 1.8rem; }
  .quill-syntax, .aa-syntax { grid-template-columns: 1fr; }
  .quill-syntax-label, .aa-syntax-label { grid-row: auto; }
  .help-az { columns: 2 140px; column-gap: 18px; }
}

/* The menu bar needs ~900px; narrower screens get the Menu sheet. */
@media (max-width: 900px) {
  .site-header__inner { flex-wrap: nowrap; }
  .site-header__mark img { height: 40px; }
  .site-nav { gap: 10px; }
  .nav-groups { display: none; }
  .nav-sheet { display: block; }
  .nav-play { padding: 5px 14px 6px; }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-header__inner { padding: 16px 18px 10px; }
  .site-footer__map { grid-template-columns: 1fr 1fr; padding: 26px 18px 4px; }
  .site-footer__inner { padding: 18px 18px 36px; }
  main { padding: 40px 18px 56px; }
  h1 { font-size: 2.1rem; }
  .features { grid-template-columns: 1fr; }
  .chronicle li { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
