/* Reading pages for Mermaid Universe: same water-and-ink palette as the home page, one quiet column. */
:root {
  color-scheme: light;
  --sea: #7FFFD4; --bg: #F1FBF8; --surface: #FFFFFF; --ink: #062E33; --muted: #45696A;
  --line: #BDE4DA; --link: #0A5F5B; --conch: #C63D65; --hero-bg: #7FFFD4; --hero-fg: #062E33;
  --display: "Bodoni Moda", "Didot", "Bodoni MT", "Playfair Display", Georgia, serif;
  --body: "Hanken Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #052227; --surface: #0A3238; --ink: #E6F7F2; --muted: #9CC4BE;
    --line: #1D4D52; --link: #7FFFD4; --conch: #FF8FA8; --hero-bg: #0B4A4A; --hero-fg: #EAFFF8;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #052227; --surface: #0A3238; --ink: #E6F7F2; --muted: #9CC4BE;
  --line: #1D4D52; --link: #7FFFD4; --conch: #FF8FA8; --hero-bg: #0B4A4A; --hero-fg: #EAFFF8;
}
* { box-sizing: border-box; }
html { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--conch); outline-offset: 2px; }
h1, h2, p, ul { margin: 0; }
ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.wrap { max-width: 760px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.masthead { background: var(--hero-bg); color: var(--hero-fg); }
.masthead .wrap { max-width: 1120px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 28px; padding-block: 18px; }
.brand { font-family: var(--display); font-style: italic; font-size: 1.6rem; font-weight: 600; color: inherit; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.nav a { color: inherit; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { text-decoration: underline; }
main { padding-block: clamp(36px, 7vw, 72px); display: flex; flex-direction: column; gap: 40px; }
.label { font: 500 0.78rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
h1 { font: 500 clamp(2.3rem, 6vw, 3.6rem)/1.05 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
h2 { font: 600 1.55rem/1.2 var(--display); text-wrap: balance; }
.head, section { display: flex; flex-direction: column; gap: 14px; }
section { border-top: 1px solid var(--line); padding-top: 28px; scroll-margin-top: 20px; }
.short { background: var(--surface); border: 2px solid var(--ink); border-radius: 6px; padding: 22px clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 12px; }
.short h2 { font: 700 1.05rem/1.3 var(--body); }
.who { font-family: var(--mono); font-size: 0.9rem; line-height: 1.7; }
.foot { border-top: 1px solid var(--line); padding-block: 28px; font-size: 0.92rem; color: var(--muted); }
.foot .wrap { max-width: 1120px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
