/*
 * Static content pages (roadmap G4–G6).
 *
 * These pages exist OUTSIDE the React app on purpose: the SPA uses
 * HashRouter, so app routes are invisible to crawlers. Guides are plain
 * HTML at real paths so search engines can index them.
 *
 * Fonts are system-only. The site CSP is `style-src 'self' 'unsafe-inline';
 * font-src 'self' data:`, which blocks the Google Fonts stylesheet the
 * landing page @imports — do not add a webfont import here, it will be
 * silently dropped.
 */

:root {
  --bg: oklch(0.985 0.012 25);
  --paper: oklch(0.995 0.005 30);
  --ink: oklch(0.24 0.025 25);
  --ink-2: oklch(0.4 0.025 22);
  --ink-3: oklch(0.56 0.022 22);
  --rose-2: oklch(0.62 0.155 14);
  --rose-3: oklch(0.5 0.16 14);
  --rose-soft: oklch(0.94 0.04 14);
  --peach-soft: oklch(0.95 0.035 50);
  --butter-soft: oklch(0.97 0.025 88);
  --sage-soft: oklch(0.93 0.03 162);
  --rule: oklch(0.88 0.02 22);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(60% 40% at 15% 0%, var(--rose-soft) 0%, transparent 60%),
    radial-gradient(50% 35% at 90% 8%, var(--peach-soft) 0%, transparent 65%),
    radial-gradient(60% 40% at 50% 100%, var(--butter-soft) 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

/* ───────── nav ───────── */
.nav {
  border-bottom: 1px solid color-mix(in oklch, var(--rule) 60%, transparent);
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  backdrop-filter: saturate(150%) blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

/* ───────── buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease;
}
.btn--primary {
  background: var(--rose-2);
  color: oklch(0.99 0.005 30);
}
.btn--primary:hover {
  background: var(--rose-3);
  transform: translateY(-1px);
}
.btn--ghost {
  color: var(--ink-2);
  border-color: var(--rule);
  background: color-mix(in oklch, var(--paper) 70%, transparent);
}
.btn--ghost:hover {
  color: var(--rose-3);
}

/* ───────── article ───────── */
main {
  padding-block: clamp(40px, 7vw, 72px) 24px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rose-3);
  margin: 0 0 14px;
}

h1 {
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(32px, 5.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 18px;
}

h2 {
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(23px, 3.4vw, 29px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 48px 0 14px;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 30px 0 8px;
  letter-spacing: -0.01em;
}

p,
li {
  color: var(--ink-2);
}

.lede {
  font-size: 20px;
  color: var(--ink-2);
  margin-bottom: 28px;
}

a {
  color: var(--rose-3);
}

ul,
ol {
  padding-left: 22px;
}
li {
  margin-bottom: 8px;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 48px 0;
}

blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--rose-2);
  font-family: Georgia, ui-serif, serif;
  font-style: italic;
  font-size: 20px;
  color: var(--ink-2);
}

/* ───────── cards, tables, callouts ───────── */
.card {
  background: color-mix(in oklch, var(--paper) 85%, transparent);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 26px 0;
}
.card h3:first-child {
  margin-top: 0;
}
.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.callout {
  background: color-mix(in oklch, var(--sage-soft) 70%, transparent);
  border: 1px solid color-mix(in oklch, var(--rule) 70%, transparent);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 16.5px;
}

.table-wrap {
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: color-mix(in oklch, var(--paper) 85%, transparent);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  min-width: 520px;
}
th,
td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid color-mix(in oklch, var(--rule) 60%, transparent);
  vertical-align: top;
}
th {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
tbody tr:last-child td {
  border-bottom: 0;
}

/* ───────── CTA block ───────── */
.cta {
  margin: 56px 0 8px;
  padding: 32px;
  border-radius: 22px;
  background: color-mix(in oklch, var(--rose-soft) 65%, var(--paper));
  border: 1px solid color-mix(in oklch, var(--rose-2) 22%, transparent);
  text-align: center;
}
.cta h2 {
  margin-top: 0;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}
.cta__fine {
  font-size: 14px;
  color: var(--ink-3);
  margin: 16px 0 0;
}

/* ───────── guide index list ───────── */
.guide-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.guide-list li {
  margin-bottom: 14px;
}
.guide-list a {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: color-mix(in oklch, var(--paper) 85%, transparent);
  text-decoration: none;
  color: var(--ink);
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}
.guide-list a:hover {
  border-color: var(--rose-2);
  transform: translateY(-1px);
}
.guide-list strong {
  display: block;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.guide-list span {
  color: var(--ink-3);
  font-size: 16px;
}

/* ───────── footer ───────── */
footer {
  border-top: 1px solid var(--rule);
  margin-top: 64px;
  padding-block: 28px 44px;
  font-size: 14.5px;
  color: var(--ink-3);
}
footer a {
  color: var(--ink-3);
  margin-right: 18px;
}

.medical-note {
  font-size: 14.5px;
  color: var(--ink-3);
  margin-top: 12px;
}
