/* About page: the same palette and type as the app, as a quiet reading page.
   Evening by default; follows the system's light setting for daylight. */
:root {
  --bg: #06090f;
  --bg-2: #0d1520;
  --glow: rgba(255, 194, 122, 0.09);
  --line: rgba(168, 196, 214, 0.14);
  --raised: rgba(255, 255, 255, 0.04);
  --fg: #e3eaef;
  --muted: #8b9ba8;
  --accent: #b4d3df;
  --accent-ink: #08121a;
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-ui: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #c9d0d6;
    --bg-2: #e6eaed;
    --glow: rgba(196, 106, 18, 0.06);
    --line: rgba(28, 48, 62, 0.13);
    --raised: rgba(255, 255, 255, 0.5);
    --fg: #14212b;
    --muted: #55646f;
    --accent: #2c5a6d;
    --accent-ink: #f2f7f9;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 15% 0%, var(--glow), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%) fixed;
  background-color: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.65 var(--font-ui);
}
a { color: var(--accent); text-underline-offset: 3px; }
em { font-style: italic; }

.top, main, footer { width: 100%; max-width: 680px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 8px; }
.brand { color: var(--fg); text-decoration: none; font-family: var(--font-display); font-size: 1.6rem; }
.open {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raised);
  color: var(--fg);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
}
.open:hover { border-color: var(--accent); }

.intro { padding: 56px 0 24px; }
h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 em { color: var(--accent); }
.lede { margin: 0 0 26px; color: var(--muted); font-size: 1.12rem; max-width: 46ch; }
.cta {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

section { padding: 22px 0; border-top: 1px solid var(--line); }
.intro { border-top: 0; }
h2 { margin: 6px 0 10px; font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.15; }
p { margin: 0 0 12px; }
ul { margin: 0; padding-left: 1.1em; }
li { margin: 0 0 8px; }
strong { font-weight: 600; }
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--raised);
  font: 500 .85em/1.6 var(--font-ui);
  text-align: center;
}

.layers { margin: 14px 0 16px; display: grid; gap: 10px; }
.layers div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
.layers dt { font-weight: 600; }
.layers dd { margin: 2px 0 0; color: var(--muted); }
@media (min-width: 620px) { .layers { grid-template-columns: 1fr 1fr; } }

.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
