/* Chimney Run's reading pages (guide/ and privacy/): the game's own fonts and colors, as on the Coming Soon page, in the legal
   pages' document layout: a title band with the date, an "On this page" list that stays beside the text, one section per heading. */
@font-face { font-family: "Great Vibes"; src: url(fonts/GreatVibes-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Berkshire Swash"; src: url(fonts/BerkshireSwash-Regular.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: Alegreya; font-weight: 700; src: url(fonts/Alegreya-Bold.woff2) format("woff2"); font-display: swap; }
:root { --night: #1b1b36; --deep: #12122a; --line: #34345c; --gold: #ecb83e; --ink: #faf0d6; --mist: #c9c2b0; color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body { margin: 0; background: var(--night); color: var(--ink); font: 700 1.1rem/1.65 Alegreya, Georgia, serif; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1040px; margin-inline: auto; padding-inline: 20px; }

/* The bar: the game's name home, and the reading pages. */
.top { position: sticky; top: 0; z-index: 10; background: rgb(27 27 54 / 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.top .name { font: 400 2.2rem/1 "Great Vibes", cursive; color: var(--gold); text-decoration: none; white-space: nowrap; }
.top nav { margin-left: auto; }
.top nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.top nav a { display: block; padding: 8px 12px; font: 400 1.05rem/1 "Berkshire Swash", serif; color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--gold); }
.top nav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }

.hero { background: linear-gradient(180deg, #24244a 0%, var(--night) 100%); border-bottom: 1px solid var(--line); padding: 36px 0; }
.kicker { font: 400 1rem/1 "Berkshire Swash", serif; color: var(--gold); margin: 0 0 8px; }
h1 { font: 400 clamp(2.2rem, 6vw, 3.2rem)/1.1 "Berkshire Swash", serif; margin: 0 0 14px; }
.lede { max-width: 720px; font-size: 1.2rem; margin: 0; }
.date { display: block; margin-top: 10px; font-size: 0.95rem; color: var(--mist); }
.doc { display: grid; grid-template-columns: 230px minmax(0, 700px); gap: 52px; padding-top: 36px; padding-bottom: 64px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 1rem; }
.toc p { margin: 0 0 10px; color: var(--mist); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0 0 8px; }
.toc ol ol { margin: 8px 0 0 14px; font-size: 0.95rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
section { padding: 20px 0; border-top: 1px solid var(--line); }
section:first-child { border-top: 0; padding-top: 0; }
h2 { font: 400 1.6rem/1.2 "Berkshire Swash", serif; color: var(--gold); margin: 0 0 12px; }
h3 { font: 400 1.25rem/1.3 "Berkshire Swash", serif; color: var(--ink); margin: 26px 0 8px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 6px; }
code { font: 0.92em Consolas, "Cascadia Mono", monospace; background: var(--deep); border: 1px solid var(--line); padding: 1px 6px; border-radius: 2px; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); padding: 20px 0 40px; color: var(--mist); font-size: 0.95rem; }

/* The guide's pictures, tables, keys and questions, in the reading column. */
figure { margin: 18px 0 24px; }
figure img { display: block; width: 100%; height: auto; border: 2px solid var(--gold); border-radius: 4px; box-shadow: 0 14px 36px rgb(0 0 0 / 0.45); }
figcaption { margin-top: 8px; font-size: 0.95rem; color: var(--mist); }
table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
thead th { font: 400 0.95rem/1.3 "Berkshire Swash", serif; color: var(--gold); border-bottom-color: var(--gold); }
tbody th { color: var(--ink); width: 34%; }
kbd { font: 700 0.85em/1.3 Alegreya, Georgia, serif; color: var(--ink); background: var(--deep); border: 1px solid var(--gold); border-bottom-width: 2px; padding: 0 6px; border-radius: 3px; white-space: nowrap; }
.default { display: inline-block; padding: 0 8px; border-radius: 999px; background: rgb(236 184 62 / 0.16); border: 1px solid rgb(236 184 62 / 0.5); color: var(--gold); font-size: 0.8rem; line-height: 1.5; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--deep); border: 1px solid var(--line); border-radius: 4px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 9px; font-size: 1.5rem; color: var(--gold); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.faq details > :not(summary) { margin: 0; padding: 0 18px 16px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

@media (max-width: 860px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .toc { position: static; border: 1px solid var(--line); background: var(--deep); padding: 16px 18px; border-radius: 4px; }
  .top .name { font-size: 1.8rem; }
  .top nav a { padding: 8px 8px; font-size: 0.95rem; }
  table { font-size: 0.95rem; }
}
