/* About page — editorial cream-on-teal (distinct from the dashboard's dark navy).
   Dual-typeface system: Fraunces (display) + DM Sans (body). */

:root {
  --bg:        #091c1e;
  --bg-glow:   #10302f;
  --text:      #dfdfc1;
  --muted:     #9ca69b;
  --accent:    #cbb87f;
  --rule:      rgba(223, 223, 193, 0.14);
  --code-bg:   rgba(223, 223, 193, 0.07);

  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body:    'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono:         ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(130% 90% at 50% -20%, var(--bg-glow) 0%, var(--bg) 55%) fixed,
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.008em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(64px, 12vw, 128px) clamp(20px, 6vw, 48px) 64px;
}

/* ── Hero / wordmark ── */
.wordmark {
  display: inline-block;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(56px, 13vw, 96px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--text);
  text-decoration: none;
}
.wordmark:hover { color: var(--accent); }

.lede {
  margin: 0 0 clamp(72px, 14vw, 120px);
  max-width: 26ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: -0.01em;
}

/* ── Sections ── */
section { margin: 0 0 clamp(72px, 13vw, 112px); }
section:last-of-type { margin-bottom: 0; }

h2 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--text);
  max-width: 18ch;
}

p { margin: 0 0 1.1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }

/* ── The five panels list ── */
ul { list-style: none; margin: 28px 0 0; padding: 0; }
ul li {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  max-width: 62ch;
}
ul li:last-child { border-bottom: 1px solid var(--rule); }
ul li strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 4px;
}
ul li span { color: var(--muted); }

/* ── Aside note ── */
.note {
  margin: 0 0 clamp(72px, 13vw, 112px);
  padding: 2px 0 2px 22px;
  border-left: 2px solid var(--accent);
  max-width: 62ch;
}
.note .eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.note p { margin-bottom: 1em; }
.note .fine { color: var(--muted); font-size: 0.92em; }

/* ── Code ── */
code {
  font-family: var(--mono);
  font-size: 0.82em;
  letter-spacing: 0;
  background: var(--code-bg);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* ── Links ── */
a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(203, 184, 127, 0.4);
}
a:hover { text-decoration-color: var(--accent); }

.wordmark-h1 { margin: 0; line-height: 1; }

/* ── Footer ── */
footer {
  margin-top: clamp(96px, 18vw, 160px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .back { font-style: italic; }

@media (max-width: 540px) {
  body { font-size: 16px; }
  ul li { padding: 16px 0; }
}
