/* multitudes: warm paper, serif, three rooms. No external fonts or scripts. */

:root {
  --paper: #f6f1e7;
  --ink: #2b2a27;
  --muted: #6f6656;
  --rule: #d8cfbd;
  --panel: #efe8da;
  --photos: #2f6f6a;
  --writing: #9a3b2e;
  --news: #2d4d7c;
  --accent: var(--ink);
  --font-body: var(--gh-font-body, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif);
  --font-heading: var(--gh-font-heading, var(--font-body));
  --measure: 38rem;
  --wide: 60rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1b19;
    --ink: #e8e2d6;
    --muted: #a59c8c;
    --rule: #3a3732;
    --panel: #26241f;
    --photos: #6fb3ac;
    --writing: #d0735f;
    --news: #7f9fd0;
  }
}

.section-photos { --accent: var(--photos); }
.section-writing { --accent: var(--writing); }
.section-news { --accent: var(--news); }

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 112.5%; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.25; }

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.18em; }

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

/* Header and footer */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.site-name { font-weight: 700; text-decoration: none; font-size: 1.05rem; }

.site-nav { display: flex; gap: 1.1rem; flex: 1; font-size: 0.9rem; }
.site-nav a { text-decoration: none; border-bottom: 3px solid transparent; padding-bottom: 0.15rem; }
.site-nav .nav-photos { border-color: var(--photos); }
.site-nav .nav-writing { border-color: var(--writing); }
.site-nav .nav-news { border-color: var(--news); }

.site-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.85rem; }
.site-actions button,
.site-actions a {
  font: inherit;
  color: var(--ink);
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  cursor: pointer;
  text-decoration: none;
}

.site-main { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem 3rem; }

.site-footer {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Homepage: intro and three rooms */

.intro { text-align: center; padding: 3rem 0 2rem; }
.intro-name { font-size: 2.6rem; margin: 0; }
.intro-tagline { font-style: italic; color: var(--muted); margin: 0.25rem 0 0; }
.intro-welcome { max-width: 32rem; margin: 1rem auto 0; }

.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 800px) { .rooms { grid-template-columns: 1fr; } }

.room { border-top: 5px solid var(--accent); padding-top: 0.75rem; }
.room-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.room-label a { text-decoration: none; }
.room-empty { color: var(--muted); font-style: italic; }
.room-more { display: inline-block; margin-top: 0.5rem; font-size: 0.9rem; color: var(--accent); }

/* Section pages */

.section-page { padding-top: 2rem; }
.section-header { border-top: 5px solid var(--accent); padding-top: 0.75rem; margin-bottom: 1.5rem; }
.section-title { margin: 0; color: var(--accent); }
.section-description { color: var(--muted); margin: 0.25rem 0 0; }

.list { max-width: var(--measure); }

.card { margin-bottom: 1.75rem; }
.card-title { font-size: 1.2rem; margin: 0 0 0.25rem; }
.card-title a { text-decoration: none; }
.card-excerpt { margin: 0 0 0.25rem; }
.card-meta { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* Photos: the stream */

.stream { max-width: 56rem; margin: 0 auto; }
.stream .card-photo { margin-bottom: 3rem; }
.card-photo-link { text-decoration: none; }
.card-photo-image { width: 100%; margin-bottom: 0.6rem; }
.card-caption { margin: 0; color: var(--muted); }
.room .card-photo-image { aspect-ratio: 4 / 3; object-fit: cover; }

/* Articles */

.article { padding-top: 2.5rem; }
.article-header,
.article-content,
.support-line,
.article-comments { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.article-section {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.article-title { font-size: 2.2rem; margin: 0.25rem 0 0.4rem; }
.article-meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 1.5rem; }
.article-image { margin: 0 auto 2rem; max-width: var(--wide); }
.article-image figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 0.4rem; text-align: center; }
.section-photos .article-image { max-width: 100%; }

.gh-content { overflow-wrap: anywhere; }
.gh-content pre { overflow-x: auto; }
.gh-content > * + * { margin-top: 1.1em; }
.gh-content blockquote { border-left: 3px solid var(--accent); margin-left: 0; padding-left: 1rem; font-style: italic; }
.gh-content hr { border: none; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.gh-content figure { margin-left: 0; margin-right: 0; }
.gh-content figcaption { color: var(--muted); font-size: 0.85rem; text-align: center; }

/* Ghost editor cards */

.kg-width-wide { position: relative; width: min(var(--wide), 100vw - 2.5rem); left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); }
.kg-width-full img { width: 100%; }

/* Ghost's audio (and similar) cards are always light boxes. With color-scheme "light dark"
   the browser draws native buttons with light text in dark mode: white on white, so the
   play, speed and mute buttons vanished. Keep cards in the light scheme and let buttons
   take the card's own text colour. */
.kg-card:is(.kg-audio-card, .kg-video-card, .kg-file-card, .kg-product-card) { color-scheme: light; }
.kg-card button { color: inherit; border: 0; cursor: pointer; }

/* The debate (AI personas): the heading and everything after it get a tinted panel.
   Ghost makes the heading's id from its text: debate_heading in config/settings.toml
   ("The Debate" -> the-debate, "So, what's the beef?" -> so-whats-the-beef). */

.gh-content h2:is([id^="the-debate"], [id^="so-whats-the-beef"]),
.gh-content h2:is([id^="the-debate"], [id^="so-whats-the-beef"]) ~ * {
  background: var(--panel);
  border-left: 4px solid var(--accent);
  margin-top: 0;
  margin-bottom: 0;
  padding: 0.5rem 1.25rem;
}
.gh-content h2:is([id^="the-debate"], [id^="so-whats-the-beef"]) { margin-top: 2.5rem; padding-top: 1.1rem; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.gh-content h2:is([id^="the-debate"], [id^="so-whats-the-beef"]) ~ *:last-child { padding-bottom: 1.1rem; }

/* Atlas and Eris: each side gets its own colour bar and a divider, so they never run together.
   Ghost ids: "atlas-ai-persona-the-case-for", "eris-ai-persona-the-case-against". */
:root { --atlas: #9a6b14; --eris: #8a3a7a; }
@media (prefers-color-scheme: dark) { :root { --atlas: #d9a441; --eris: #c77dbb; } }
.gh-content h3[id^="atlas"] ~ * { border-left-color: var(--atlas); }
.gh-content h3[id^="eris"] ~ * { border-left-color: var(--eris); }
.gh-content h3:is([id^="atlas"], [id^="eris"]) {
  margin-top: 0;
  padding-top: 1.4rem;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--rule);
}
.gh-content h3[id^="atlas"] { color: var(--atlas); border-left-color: var(--atlas); border-top: none; }
.gh-content h3[id^="eris"] { color: var(--eris); border-left-color: var(--eris); margin-top: 1.4rem; }

/* Support line, comments, pagination, errors */

.support-line { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-style: italic; color: var(--muted); }
.article-comments { margin-top: 2.5rem; }

.pagination { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.9rem; max-width: var(--measure); }

.error-page { text-align: center; padding: 4rem 0; }
.error-code { font-size: 3rem; margin: 0; color: var(--muted); }
