/* rogue.padevgroup.com. One column, flush left, nothing loaded from anywhere else.
   Two families: the system sans for reading, a monospace for the dungeon. One accent: terminal green,
   kept for the hero, links and the one button. */

:root {
    --paper: #fbfbf8;
    --ink: #1b1c1f;
    --muted: #5d6068;
    --rule: #d9d8d2;
    --accent: #17703a;
    --mono: "Cascadia Mono", Consolas, Menlo, "DejaVu Sans Mono", monospace;
}
@media (prefers-color-scheme: dark) {
    :root { --paper: #121412; --ink: #e6e6df; --muted: #a2a59c; --rule: #2f332e; --accent: #62d38a; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.65;
}
.hero, main, footer { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
code { font-family: var(--mono); font-size: 0.92em; }

/* The map is the masthead: the series opens with it, so the site does too. */
.hero { padding-top: 3rem; padding-bottom: 1.5rem; }
.map { margin: 0 0 1.75rem; font-family: var(--mono); font-size: 1.2rem; line-height: 1.15; color: var(--ink); }
.map .you { color: var(--accent); font-weight: 700; }
.map .monster { font-weight: 700; }
h1 { font-family: var(--mono); font-size: 2.6rem; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.4rem; }
.tagline { margin: 0; color: var(--muted); font-size: 1.15rem; }

main { padding-top: 1rem; padding-bottom: 2rem; }
main > section { margin-top: 3rem; }
main > section.intro { margin-top: 1rem; }
h2 { font-family: var(--mono); font-size: 1.35rem; margin: 0 0 0.75rem; }
p { margin: 0 0 1.1rem; }

.legend dl { margin: 0; display: grid; gap: 0.35rem; }
.legend dl div { display: grid; grid-template-columns: 2.5rem 1fr; align-items: baseline; }
.legend dt code { font-size: 1.15rem; font-weight: 700; }
.legend dt code.you { color: var(--accent); }
.legend dd { margin: 0; }

/* The chapter list: one block per Section, opened and closed with no script. */
.section { border-top: 1px solid var(--rule); }
.chapters .section:last-child { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; padding: 0.9rem 0; display: flex; flex-wrap: wrap;
          align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
summary::-webkit-details-marker { display: none; }
.section-name { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; }
summary .section-name::before { content: "[+] "; color: var(--accent); }
details[open] > summary .section-name::before { content: "[-] "; }
.section-status { color: var(--muted); font-size: 0.9rem; }
.section .blurb { margin: 0 0 0.75rem; }
.coming p:first-child { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem;
                        padding: 0.9rem 0 0; margin: 0 0 0.5rem; }
.coming .section-name::before { content: "[?] "; color: var(--muted); }

ol.articles { list-style: none; margin: 0 0 1.25rem; padding: 0; }
ol.articles li { display: grid; grid-template-columns: 2.25rem 1fr; align-items: baseline; padding: 0.2rem 0; }
.num { font-family: var(--mono); color: var(--muted); font-size: 0.9rem; text-align: right; padding-right: 0.75rem; }
li.waiting span:last-child { color: var(--muted); }

.references ul { margin: 0; padding: 0; list-style: none; }
.references li { margin: 0 0 0.9rem; }
.references a { font-weight: 600; }
.references .note { display: block; color: var(--muted); }

.sponsor { border-top: 3px solid var(--ink); padding-top: 1.25rem; }
.action { margin-top: 0.5rem; }
.button { display: inline-block; font-family: var(--mono); font-weight: 700; text-decoration: none;
          color: var(--paper); background: var(--accent); padding: 0.55rem 1rem; border-radius: 3px; }
.button:hover { text-decoration: underline; }
.pending { font-family: var(--mono); color: var(--muted); }

footer { padding-top: 1.5rem; padding-bottom: 3rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
footer p { margin: 0 0 0.5rem; }

.lost { max-width: 44rem; margin: 0 auto; padding: 4rem 1.25rem; }
.lost h1 { font-size: 1.8rem; }

@media (max-width: 30rem) {
    body { font-size: 1.05rem; }
    h1 { font-size: 2rem; }
    .map { font-size: 0.9rem; }
}
