/* Age of Dragons website. Pages are built by web/generate.py; docs/website.md.
 *
 * Night over Krynn: the real Milky Way (ESO) and the Moon (NASA) as the three moons,
 * silver Solinari, red Lunitari and black Nuitari, over generated mountains. Dark only.
 * Type: Newsreader for display, Hanken Grotesk for text, Geist Mono for the game's own text.
 */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader-italic.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/hanken-grotesk.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("fonts/hanken-grotesk-italic.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-mono.woff2") format("woff2"); }

:root {
  --night: #05070f;      /* the page */
  --deep: #0a0f1f;       /* panels: code, the game window, search */
  --text: #e3e7f0;
  --muted: #98a1b6;
  --faint: #6b7590;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --solinari: #eef1f8;   /* the silver moon: primary buttons, filled moons */
  --lunitari: #e2604a;   /* the red moon: link underlines, the neutral gods */
  --nuitari: #8c80c8;    /* the black moon's rim */
  --exits: #7fd1c3;      /* the game's exit line */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wide: 76rem;
  --measure: 40rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  color-scheme: dark;
}

/* ---- Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(226, 96, 74, 0.45); color: #fff; }
a { color: inherit; text-decoration-color: rgba(226, 96, 74, 0.7); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--lunitari); }
:focus-visible { outline: 2px solid var(--solinari); outline-offset: 3px; border-radius: 3px; }
img { max-width: 100%; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; color: #fff; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.8rem, 6vw, 4.75rem); line-height: 0.98; letter-spacing: -0.03em; font-variation-settings: "opsz" 72; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.08; letter-spacing: -0.02em; font-variation-settings: "opsz" 48; margin: 3.2rem 0 1rem; }
h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.012em; font-weight: 400; font-variation-settings: "opsz" 24; margin: 2.2rem 0 0.6rem; }
p { margin: 0 0 1.05em; }
code, pre { font-family: var(--mono); font-size: 0.86em; }
code { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 5px; padding: 0.05em 0.35em; }
pre { background: var(--deep); border: 1px solid var(--line); border-radius: 10px; padding: 1em 1.2em; overflow-x: auto; line-height: 1.6; margin: 0 0 1.3em; color: #cdd4e4; }
pre code { background: none; border: 0; padding: 0; }
.skip { position: absolute; left: -999px; top: 0.6rem; z-index: 50; background: var(--solinari); color: var(--night); padding: 0.5em 0.9em; border-radius: 6px; }
.skip:focus { left: 0.6rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- Masthead -------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 7, 15, 0.72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 4.25rem;
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.mark { display: flex; align-items: center; gap: 0.65rem; color: #fff; text-decoration: none; font: 400 1.28rem var(--serif); letter-spacing: -0.012em; white-space: nowrap; }
.moons { width: 1.9rem; height: auto; flex: none; }
.moons .solinari { fill: var(--solinari); }
.moons .lunitari { fill: var(--lunitari); }
.moons .nuitari { fill: var(--night); stroke: var(--nuitari); stroke-width: 1.2; }
.masthead nav { display: flex; gap: 1.7rem; margin-left: auto; }
.masthead nav a { color: rgba(227, 231, 240, 0.7); text-decoration: none; font-size: 0.94rem; letter-spacing: 0.005em; white-space: nowrap; padding: 0.3rem 0; }
.masthead nav a:hover { color: #fff; }
.masthead nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -1px 0 var(--lunitari); }
.online { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.online:hover { color: #fff; }
.online-moon { width: 0.55rem; height: 0.55rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--faint); }
.online.live .online-moon { background: var(--solinari); box-shadow: 0 0 0.7rem rgba(238, 241, 248, 0.55); }
.play-now { font-size: 0.9rem; font-weight: 600; color: #fff; text-decoration: none; padding: 0.5rem 1.05rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-strong); white-space: nowrap; }
.play-now:hover { background: rgba(255, 255, 255, 0.14); }

/* On the home page the masthead floats over the sky. */
.page-index .masthead { position: absolute; inset: 0 0 auto; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; }

/* ---- The sky (home page hero, and a smaller one atop every page) ----------- */

.sky { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 70% at 50% 100%, #2a1f3c 0%, #121733 38%, var(--night) 75%); }
.milkyway { position: absolute; z-index: -4; left: 50%; top: 46%; width: 165%; max-width: none; translate: -50% -50%; rotate: -21deg;
  mix-blend-mode: screen; opacity: 0.9;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 50%, #000 40%, transparent 85%);
  mask-image: radial-gradient(60% 55% at 50% 50%, #000 40%, transparent 85%); }
.moon { position: absolute; z-index: -2; border-radius: 50%; mix-blend-mode: screen; }
.glow { position: absolute; z-index: -3; border-radius: 50%; aspect-ratio: 1; pointer-events: none; }
.ridges { position: absolute; inset: auto 0 0; height: 46%; z-index: -1; }
.ridges img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; display: block; }
.nuitari-disc { position: absolute; z-index: -1; aspect-ratio: 1; border-radius: 50%; background: #04050b;
  box-shadow: 0 0 0 1px rgba(150, 128, 255, 0.28), 0 0 1.4rem rgba(130, 100, 255, 0.18); }

.hero { height: max(42rem, 100svh); }
.hero .solinari { width: clamp(11rem, 21vw, 21rem); right: 13%; top: 12%; filter: brightness(1.08) contrast(1.05); }
.hero .glow.sol { width: calc(clamp(11rem, 21vw, 21rem) + 14rem); right: calc(13% - 7rem); top: calc(12% - 7rem);
  background: radial-gradient(circle, rgba(215, 225, 255, 0.22), rgba(215, 225, 255, 0.05) 45%, transparent 70%); }
.hero .lunitari { width: clamp(4.5rem, 8vw, 8rem); left: 16%; top: 19%; rotate: 160deg; filter: sepia(1) saturate(5.5) hue-rotate(-28deg) brightness(0.95); }
.hero .glow.lun { width: calc(clamp(4.5rem, 8vw, 8rem) + 8rem); left: calc(16% - 4rem); top: calc(19% - 4rem);
  background: radial-gradient(circle, rgba(255, 110, 80, 0.25), transparent 65%); }
.hero .nuitari-disc { width: clamp(2.6rem, 4vw, 4rem); right: 35%; top: 9%; }
.hero-copy { position: absolute; inset: auto 0 11%; text-align: center; padding: 0 var(--gutter); }
.title { font-size: clamp(3.6rem, 10vw, 9.5rem); line-height: 0.9; letter-spacing: -0.035em; text-shadow: 0 0.2em 2em rgba(5, 7, 15, 0.6); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; color: rgba(232, 235, 243, 0.84); max-width: 34rem; margin: 1.4rem auto 2.2rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.9rem; }
.who-line { color: rgba(232, 235, 243, 0.7); font-size: 0.95rem; text-decoration: none; margin: 1.4rem 0 0; display: inline-flex; align-items: center; gap: 0.5rem; }
.who-line::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--solinari); box-shadow: 0 0 0.6rem rgba(238, 241, 248, 0.6); }
.who-line[hidden] { display: none; }
.sky-credit { position: absolute; right: 1.2rem; bottom: 0.8rem; margin: 0; font-size: 0.72rem; color: rgba(154, 163, 184, 0.55); }
.sky-credit a { color: inherit; text-decoration: none; }
.sky-credit a:hover { color: var(--muted); }

/* Smaller sky over every other page */
.page-head { height: clamp(15rem, 34vh, 21rem); display: flex; align-items: flex-end; }
.page-head .milkyway { top: 30%; width: 120%; opacity: 0.75; }
.page-head .ridges { inset: 40% 0 0; height: auto; }  /* the peaks, from the top of the picture, down to the bottom */
.page-head .ridges img { object-position: top; }
.page-head .solinari { width: clamp(4rem, 7vw, 6.5rem); right: 12%; top: 18%; }
.page-head .glow.sol { width: calc(clamp(4rem, 7vw, 6.5rem) + 8rem); right: calc(12% - 4rem); top: calc(18% - 4rem);
  background: radial-gradient(circle, rgba(215, 225, 255, 0.2), transparent 65%); }
.page-head-inner { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) 2.2rem; }
.page-head h1 { text-shadow: 0 0.15em 1.5em rgba(5, 7, 15, 0.7); }
.page-lede { color: rgba(232, 235, 243, 0.78); font-size: 1.12rem; margin: 0.9rem 0 0; max-width: 38rem; }
/* The gods' page shows all three moons. */
.page-gods .page-head .lunitari { width: clamp(2.4rem, 4vw, 3.6rem); right: 26%; top: 30%; rotate: 160deg; filter: sepia(1) saturate(5.5) hue-rotate(-28deg) brightness(0.95); }
.page-gods .page-head .nuitari-disc { width: clamp(1.6rem, 2.6vw, 2.4rem); right: 21%; top: 12%; }

/* ---- Buttons and the address ------------------------------------------------- */

.btn { display: inline-flex; align-items: center; gap: 0.6rem; font: 600 1rem var(--sans); text-decoration: none; padding: 0.85rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer; }
.btn-primary { background: #f4f6fb; color: #0a0f1f; box-shadow: 0 0.6rem 2rem rgba(200, 210, 255, 0.16); }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid var(--line-strong); font-weight: 500;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-ghost code { font: 500 0.92rem var(--mono); background: none; border: 0; padding: 0; }
.btn .hint { color: var(--muted); font-size: 0.88rem; font-weight: 500; }

/* ---- Home below the sky ------------------------------------------------------ */

.band { max-width: var(--wide); margin: 0 auto; padding: 7rem var(--gutter) 0; }
.inside { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.inside h2 { margin-top: 0; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.025em; font-variation-settings: "opsz" 60; }
.inside p { color: var(--muted); font-size: 1.12rem; max-width: 30rem; }
.window { background: linear-gradient(180deg, #0e1428, #0a0f1f); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 2.5rem 6rem rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4); }
.window-bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); font: 500 0.78rem var(--mono); color: var(--muted); }
.window-bar i { width: 0.7rem; height: 0.7rem; border-radius: 50%; }
.window-bar i:nth-child(1) { background: var(--solinari); }
.window-bar i:nth-child(2) { background: var(--lunitari); }
.window-bar i:nth-child(3) { background: var(--night); box-shadow: inset 0 0 0 1px var(--nuitari); }
.window-bar span { margin-left: auto; }
.screen { margin: 0; border: 0; border-radius: 0; background: none; padding: 1.4rem 1.5rem 1.6rem; font: 400 0.72rem/1.75 var(--mono); color: #cdd4e4; white-space: pre; overflow-x: auto; scrollbar-width: none; }
.screen .room { color: #fff; font-weight: 600; }
.screen .exits { color: var(--exits); }
.screen .prompt { color: var(--faint); }
.screen .cmd { color: #fff; }
.caret { display: inline-block; width: 0.55em; height: 1.15em; vertical-align: text-bottom; background: #cdd4e4; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--line); margin-top: 7rem; padding-top: 3.2rem; }
.features h3 { margin: 0 0 0.6rem; font-size: 1.6rem; font-weight: 400; }
.features p { color: var(--muted); margin: 0; }

.home-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 4.5rem); }
.home-split h2 { margin-top: 0; }
.home-split .more { margin-top: 1.4rem; }
.explore { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.explore a { display: block; padding: 1.3rem 0 1.4rem; border-top: 1px solid var(--line); text-decoration: none; }
.explore a:hover .explore-name { color: #fff; text-decoration: underline 1px var(--lunitari); text-underline-offset: 0.2em; }
.explore-name { display: block; font: 400 1.6rem/1.15 var(--serif); color: var(--text); letter-spacing: -0.012em; }
.explore-desc { display: block; color: var(--muted); font-size: 0.98rem; margin-top: 0.35rem; }

/* ---- News -------------------------------------------------------------------- */

.news-list { list-style: none; margin: 0; padding: 0; }
.news { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.5rem; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.news time, .news .when { color: var(--muted); font-size: 0.94rem; padding-top: 0.12rem; font-variant-numeric: tabular-nums; }
.news ul { margin: 0; padding-left: 1.05em; }
.news li { margin: 0 0 0.35em; }
.news li::marker { color: var(--faint); }
h2.year { font-size: 2.2rem; margin: 3rem 0 0.4rem; }
h2.year:first-of-type { margin-top: 0.5rem; }

/* ---- Reading pages: contents beside the text --------------------------------- */

.page { max-width: var(--wide); margin: 0 auto; padding: 3.2rem var(--gutter) 0; display: grid; grid-template-columns: 14.5rem minmax(0, var(--measure)); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.page-single { grid-template-columns: minmax(0, var(--measure)); }
.page-body { min-width: 0; }
.page-toc { position: sticky; top: 5.6rem; max-height: calc(100svh - 7rem); overflow-y: auto; font-size: 0.94rem; padding-bottom: 1rem;
  scrollbar-width: none; }
.page-toc::-webkit-scrollbar { display: none; }
.page-toc p { color: var(--faint); font-size: 0.84rem; margin: 0 0 0.7rem; letter-spacing: 0.01em; }
.page-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.page-toc li a { display: block; padding: 0.28rem 0 0.28rem 1rem; margin-left: -1px; color: var(--muted); text-decoration: none; border-left: 1px solid transparent; line-height: 1.35; }
.page-toc li a:hover { color: #fff; border-left-color: var(--line-strong); }
.page-toc li a.current { color: #fff; border-left-color: var(--lunitari); }
.page-toc .group { margin-bottom: 1.2rem; }
.page-toc .group-name { display: flex; align-items: center; gap: 0.55rem; color: var(--text); text-decoration: none; margin-bottom: 0.4rem; font-weight: 500; }
.page-toc .group-name::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; flex: none; }
.group.solinari .group-name::before { background: var(--solinari); }
.group.lunitari .group-name::before { background: var(--lunitari); }
.group.nuitari .group-name::before { background: var(--night); box-shadow: inset 0 0 0 1.5px var(--nuitari); }

.intro { font-size: 1.2rem; line-height: 1.6; color: var(--text); }
.intro p:last-child { margin-bottom: 0; }
.footnote { color: var(--muted); font-size: 0.95rem; }

/* ---- Help text, wherever it appears ------------------------------------------ */

.entry { padding: 0.2rem 0 0.8rem; scroll-margin-top: 5.5rem; }
.entry + .entry { border-top: 1px solid var(--line); }
.entry.flat { border: 0; padding: 0; }
.entry > h2, .entry > h3 { margin: 2rem 0 0.35rem; }
.entry .anchor { color: inherit; text-decoration: none; }
.entry .anchor:hover { text-decoration: underline 1px var(--lunitari); text-underline-offset: 0.12em; }
.entry:target > h2, .entry:target > h3 { text-decoration: underline 1px var(--lunitari); text-underline-offset: 0.15em; }
.aka { color: var(--faint); font-size: 0.92rem; margin: 0 0 0.9em; }
.text { overflow-wrap: break-word; color: #d3d8e3; }
.text ul { padding-left: 1.15em; margin: 0 0 1.05em; }
.text li { margin: 0.2em 0; }
.text li::marker { color: var(--faint); }
.see-also { color: var(--muted); font-size: 0.97rem; }
.see-also > span { color: var(--faint); margin-right: 0.35em; }

/* ---- Tables ------------------------------------------------------------------ */

.table-wrap { overflow-x: auto; margin: 1.4em 0 1.6em; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.015);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.14) transparent; }
table { border-collapse: collapse; width: 100%; font-size: 0.96rem; font-variant-numeric: tabular-nums; }
th, td { padding: 0.62rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: baseline; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { color: var(--faint); font-weight: 500; font-size: 0.86rem; background: rgba(255, 255, 255, 0.02); }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.matrix thead th:not(:first-child), .matrix td { text-align: center; }
.matrix th, .matrix td { padding: 0.6rem 0.35rem; }
.matrix th:first-child { padding-left: 1rem; }
.matrix td:last-child { padding-right: 0.8rem; }
.matrix thead th { font-size: 0.8rem; white-space: nowrap; }
.matrix th[scope="row"] { white-space: nowrap; font-weight: 500; }
.matrix th[scope="row"] a { text-decoration: none; }
.matrix th[scope="row"] a:hover { text-decoration: underline 1px var(--lunitari); }
/* a full silver moon where the class is open to the race, an empty one where it isn't */
.matrix .yes, .matrix .no span { display: inline-block; width: 0.66rem; height: 0.66rem; border-radius: 50%; font-size: 0; vertical-align: middle; }
.matrix .yes { background: var(--solinari); box-shadow: 0 0 0.5rem rgba(238, 241, 248, 0.25); }
.matrix .no span { box-shadow: inset 0 0 0 1px var(--faint); opacity: 0.6; }
.zones td:last-child { white-space: nowrap; color: var(--muted); }

/* ---- Play -------------------------------------------------------------------- */

.steps { counter-reset: step; }
.step h2 { display: flex; align-items: baseline; gap: 0.9rem; }
.step h2::before { counter-increment: step; content: counter(step); font: 500 0.95rem var(--sans); color: var(--night); background: var(--solinari);
  width: 1.7rem; height: 1.7rem; border-radius: 50%; display: inline-grid; place-items: center; flex: none; translate: 0 -0.25rem; }
.step:first-child h2 { margin-top: 0; }
.clients { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.clients li { background: var(--night); padding: 1rem 1.15rem; }
.clients strong { display: block; color: #fff; font-weight: 600; margin-bottom: 0.15rem; }
.clients span { color: var(--muted); font-size: 0.94rem; }
.page-play .window { margin: 1.4rem 0; }

/* ---- Help -------------------------------------------------------------------- */

.help-layout { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 16rem minmax(0, var(--measure)); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.help-index { position: sticky; top: 4.25rem; max-height: calc(100svh - 4.25rem); overflow-y: auto; padding: 2.4rem 0.4rem 2rem 0;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.14) transparent; }
.help-entries { padding-top: 0.6rem; min-width: 0; }
.search input { width: 100%; font: 1rem var(--sans); color: #fff; background: var(--deep); border: 1px solid var(--line-strong); border-radius: 10px; padding: 0.7rem 0.9rem; }
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: 2px solid var(--solinari); outline-offset: 1px; }
#help-count { color: var(--faint); font-size: 0.9rem; min-height: 1.5em; margin: 0.6rem 0 0.3rem; font-variant-numeric: tabular-nums; }
.topics summary { cursor: pointer; color: var(--text); font-weight: 500; padding: 0.45rem 0; list-style: none; display: flex; align-items: baseline; }
.topics summary::-webkit-details-marker { display: none; }
.topics summary::after { content: "+"; color: var(--faint); }
.topics details[open] summary::after { content: "\2013"; }
.topics ul { list-style: none; margin: 0 0 0.8rem; padding: 0; font-size: 0.93rem; line-height: 1.35; }
.topics li a { display: block; padding: 0.22rem 0; color: var(--muted); text-decoration: none; }
.topics li a:hover { color: #fff; }
.count { color: var(--faint); font-weight: 400; font-size: 0.88em; font-variant-numeric: tabular-nums; margin-left: auto; margin-right: 0.8rem; }
.help-entries .entry > h3 { font-size: 1.7rem; }
.empty { color: var(--muted); }

/* ---- Who's online -------------------------------------------------------------- */

.who { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.who h2 { margin-top: 1.2rem; font-size: 1.7rem; }
.who ul { list-style: none; margin: 0; padding: 0; }
.who li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.who li.none { color: var(--faint); }

/* ---- Credits ------------------------------------------------------------------- */

.credits { list-style: none; margin: 0; padding: 0; }
.credits li { padding: 1.3rem 0; border-top: 1px solid var(--line); scroll-margin-top: 5.5rem; }
.credits .credit-title { color: #fff; font: 400 1.35rem/1.25 var(--serif); margin: 0 0 0.3rem; }
.credits p { margin: 0 0 0.25rem; color: var(--muted); font-size: 0.98rem; }

/* ---- Footer -------------------------------------------------------------------- */

.colophon { max-width: var(--wide); margin: 7rem auto 0; padding: 2.4rem var(--gutter) 3rem; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; color: var(--muted); font-size: 0.92rem; }
.colophon p { margin: 0 0 0.35rem; }
.colophon code { background: none; border: 0; padding: 0; color: var(--text); }
.colophon nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; align-content: start; justify-content: flex-end; }
.colophon nav a { text-decoration: none; color: var(--muted); }
.colophon nav a:hover { color: #fff; }

/* ---- Small screens ------------------------------------------------------------- */

@media (max-width: 62rem) {
  .masthead-inner { flex-wrap: wrap; height: auto; padding-top: 0.8rem; gap: 0.6rem 1rem; }
  .masthead nav { order: 3; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 0.1rem var(--gutter) 0.6rem;
    overflow-x: auto; scrollbar-width: none; gap: 1.4rem; }
  .masthead nav::-webkit-scrollbar { display: none; }
  .online { margin-left: auto; }
  .play-now { display: none; }
  html { scroll-padding-top: 7rem; }

  .hero .solinari { right: 6%; top: 19%; }
  .hero .glow.sol { right: calc(6% - 7rem); top: calc(19% - 7rem); }
  .hero .lunitari { left: 8%; top: 28%; }
  .hero .glow.lun { left: calc(8% - 4rem); top: calc(28% - 4rem); }
  .hero .nuitari-disc { right: 44%; top: 15%; }
  .inside, .home-split, .features { grid-template-columns: minmax(0, 1fr); }
  .features { gap: 2rem; }
  .page, .help-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .page-toc { position: static; max-height: none; margin-bottom: 2rem; }
  .page-toc ul { display: flex; flex-wrap: wrap; gap: 0.4rem; border: 0; }
  .page-toc li a { border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem; margin: 0; }
  .page-toc li a:hover { border-color: var(--line-strong); }
  .help-index { position: static; max-height: none; padding-bottom: 0; }
  .who, .clients { grid-template-columns: minmax(0, 1fr); }
  .news { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .explore { grid-template-columns: minmax(0, 1fr); }
  .colophon { grid-template-columns: minmax(0, 1fr); }
  .colophon nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
