/* Shared styles for the document pages (story, privacy).
   index.html keeps its own inline CSS because the pour stage and showcase are
   specific to it and nothing else needs them. */

:root {
  --bone: #F5F0E8; --bone-2: #FBF8F2; --cobalt: #1B3A8C; --cobalt-2: #294ca4;
  --ink: #1A1A1A; --muted: #6B6B6B; --line: #DCD5C7; --radius: 12px; --green: #2fae6b;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bone); color: var(--ink);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.5; overflow-x: hidden;
}
.mono { font-family: 'Geist Mono', ui-monospace, monospace; font-feature-settings: "tnum"; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 34px); }
.narrow { max-width: 720px; }

a.skip { position: absolute; left: -9999px; top: 0; background: var(--cobalt); color: var(--bone);
  padding: 12px 18px; z-index: 200; border-radius: 0 0 var(--radius) 0; text-decoration: none; }
a.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient .blob { position: absolute; border-radius: 50%; filter: blur(90px); }
.blob.a { width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; background: rgba(27,58,140,0.10); top: -10vw; right: -8vw; }
.blob.b { width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; background: rgba(75,100,179,0.07); bottom: -12vw; left: -8vw; }

/* Nav, matching index.html */
header { position: sticky; top: 0; z-index: 60; padding-top: 14px; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-radius: 16px;
  background: rgba(245,240,232,0.6); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255,255,255,0.55); box-shadow: 0 8px 30px rgba(27,58,140,0.09), inset 0 1px 0 rgba(255,255,255,0.65);
  transition: box-shadow 0.3s ease, background 0.3s ease; }
header.scrolled .nav { background: rgba(245,240,232,0.8); box-shadow: 0 10px 34px rgba(27,58,140,0.14), inset 0 1px 0 rgba(255,255,255,0.7); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .tile { width: 30px; height: 30px; border-radius: 8px; display: block; }
.brand .name { font-weight: 700; letter-spacing: 0.01em; font-size: 15.5px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 28px); }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.btn { background: linear-gradient(180deg, var(--cobalt-2) 0%, var(--cobalt) 100%); color: var(--bone); border: none;
  border-radius: var(--radius); padding: 11px 20px; font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
  text-decoration: none; display: inline-block; box-shadow: 0 6px 18px rgba(27,58,140,0.30), inset 0 1px 0 rgba(255,255,255,0.28);
  transition: filter 0.2s ease, transform 0.2s ease; }
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* Document body */
main { position: relative; z-index: 1; }
.doc { padding: clamp(44px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.idx { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; display: block; margin-bottom: 14px; color: var(--cobalt); }
.doc h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.02; letter-spacing: -0.032em;
  font-weight: 900; margin: 0 0 20px; }
.doc .standfirst { font-size: clamp(17px, 1.9vw, 21px); color: var(--muted); margin: 0 0 10px; line-height: 1.45; }
.doc .meta { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12.5px; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px; }

.prose { max-width: 68ch; }
.prose p { font-size: 17px; line-height: 1.62; margin: 0 0 20px; }
.prose h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 900; letter-spacing: -0.022em;
  margin: 44px 0 14px; line-height: 1.15; }
.prose h3 { font-size: 17.5px; font-weight: 700; margin: 30px 0 10px; letter-spacing: -0.01em; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 20px; }
.prose li { font-size: 16.5px; line-height: 1.58; margin-bottom: 9px; }
.prose a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* A pulled-out line for the one sentence that carries the piece. */
.pull { border-left: 3px solid var(--cobalt); padding: 4px 0 4px 20px; margin: 32px 0;
  font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; font-weight: 700; letter-spacing: -0.018em; max-width: 26ch; }

/* Citation block, same treatment as the FAQ on the landing page. */
.cites { list-style: none; padding: 0; margin: 20px 0 0; }
.cites li { font-size: 13.5px; color: var(--muted); padding: 9px 0; border-bottom: 1px dashed var(--line); line-height: 1.45; }
.cites li:last-child { border-bottom: none; }
.cites b { color: var(--ink); }
.cites a { color: var(--cobalt); text-decoration: none; }
.cites a:hover { text-decoration: underline; }

/* Fact panel, for the pharmacology sidebar */
.panel { background: var(--bone-2); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(20px, 3vw, 28px); margin: 32px 0; }
.panel h3 { margin-top: 0; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }

/* Definition rows for the privacy page */
.rows { border-top: 1px solid var(--line); margin: 24px 0 0; }
.row2 { display: grid; gap: 6px 36px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .row2 { grid-template-columns: 220px 1fr; align-items: baseline; } }
.row2 dt { font-size: 11.5px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--cobalt); font-weight: 500; }
.row2 dd { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.row2 dd strong { color: var(--ink); font-weight: 600; }

/* Closing CTA band, matching index.html */
.closing { position: relative; z-index: 1; background: radial-gradient(130% 100% at 50% 0%, #24499e, #16306f 70%);
  color: var(--bone); text-align: center; padding: clamp(44px, 6vw, 80px) 0; }
.closing h2 { font-size: clamp(26px, 4vw, 42px); font-weight: 900; letter-spacing: -0.03em; margin: 0 0 12px; }
.closing p { color: rgba(245,240,232,0.75); font-size: clamp(15px, 1.7vw, 18px); margin: 0 0 24px; }
.btn-light { background: var(--bone); color: var(--cobalt); border: none; border-radius: 12px;
  padding: 14px 24px; font-weight: 700; font-family: inherit; font-size: 15px; cursor: pointer;
  text-decoration: none; display: inline-block; }

footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 24px 0 40px; }
.foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 10px; }
.foot a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.foot a:hover { color: var(--ink); }
.legal { font-size: 12.5px; color: var(--muted); max-width: 70ch; margin: 14px 0 0; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
