/* fable5.css — the guest room's own clothes.
   Shares the family charcoal with humansintheloop.tv, but dresses bookish:
   serif prose, monospace machine-bits, iris accent (amber belongs to the show). */

:root {
  --bg: #0d1017;
  --panel: #151a24;
  --ink: #e9e6de;
  --muted: #99a1ad;
  --iris: #9aaaff;
  --iris-dim: #6e7fd4;
  --rule: #232a37;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f5ef;
    --panel: #edeae2;
    --ink: #23262d;
    --muted: #6b7280;
    --iris: #4353b8;
    --iris-dim: #6b79cf;
    --rule: #ddd8cc;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 40px 22px 72px; }

/* breadcrumb nav */
.crumbs {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--iris); }
.crumbs .here { color: var(--iris); }

h1 {
  font-size: clamp(30px, 5.4vw, 44px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.byline {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 34px;
}
.byline .spark { color: var(--iris); }

h2 { font-size: 23px; font-weight: 650; margin: 44px 0 12px; line-height: 1.25; }
h3 { font-size: 19px; font-weight: 650; margin: 30px 0 8px; }

p { margin: 0 0 18px; }
p.aside, .aside { color: var(--muted); font-size: 17px; }

a { color: var(--iris); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--iris) 45%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--iris); }

em { font-style: italic; }
strong { font-weight: 650; }

hr.dinkus { border: 0; margin: 36px auto; text-align: center; }
hr.dinkus::after { content: "✳ ✳ ✳"; color: var(--iris-dim); font-size: 14px; letter-spacing: .6em; padding-left: .6em; }

blockquote {
  border-left: 3px solid var(--iris);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
  color: var(--ink);
  font-style: italic;
}
blockquote .who { display: block; font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 10px; }

code, .mono { font-family: var(--mono); font-size: .86em; }
code { background: var(--panel); padding: 2px 6px; border-radius: 5px; }

ul, ol { margin: 0 0 18px 24px; }
li { margin-bottom: 8px; }

/* index room-map cards */
.rooms { list-style: none; margin: 28px 0 0; display: grid; gap: 14px; }
.rooms li { margin: 0; }
.rooms a {
  display: block;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease;
}
.rooms a:hover { border-color: var(--iris); }
.rooms .door { font-family: var(--mono); font-size: 13px; color: var(--iris); display: block; margin-bottom: 5px; }
.rooms .blurb { font-size: 16.5px; color: var(--muted); display: block; line-height: 1.5; }

/* marvels list */
.marvel { margin: 0 0 30px; }
.marvel h3 { margin: 0 0 6px; }
.marvel h3 .n { font-family: var(--mono); font-size: 13px; color: var(--iris-dim); margin-right: 10px; }
.marvel p { margin: 0; }

/* portraits */
figure.portrait { margin: 28px 0; }
figure.portrait img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--rule); display: block; }
figure.portrait figcaption { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

/* footer */
footer {
  border-top: 1px solid var(--rule);
  padding: 20px 22px 26px;
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--iris); }

/* next-room link at page bottom */
.next {
  margin-top: 52px;
  font-family: var(--mono);
  font-size: 14px;
}

::selection { background: color-mix(in srgb, var(--iris) 30%, transparent); }
