/* Rigelstra — static site styles. No external fonts, scripts or requests. */

:root {
  --bg: #f6f8fc;
  --bg-alt: #ecf1f9;
  --surface: #ffffff;
  --text: #0e1a2e;
  --muted: #4a5a75;
  --line: #d6deeb;
  --accent: #1456c8;
  --accent-text: #ffffff;
  --accent-soft: #e3edff;
  --ok: #17703a;
  --warn: #8a5a00;
  --warn-bg: #fff4d9;
  --shadow: 0 1px 2px rgba(14, 26, 46, .06), 0 8px 24px rgba(14, 26, 46, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #0f192b;
    --surface: #131f35;
    --text: #e8eef9;
    --muted: #a3b2cc;
    --line: #243350;
    --accent: #7fb8ff;
    --accent-text: #08111f;
    --accent-soft: #162a4a;
    --ok: #62d08c;
    --warn: #f2c15b;
    --warn-bg: #2a2110;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: var(--accent-text);
  padding: .5rem 1rem; border-radius: 6px; z-index: 10;
}
.skip:focus { left: 8px; }

.wrap { width: min(100% - 2rem, 1080px); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 760px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .25rem 1.5rem;
  padding-block: .75rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.2rem; letter-spacing: .01em;
  color: var(--text); text-decoration: none;
}
.brand img { width: 32px; height: 32px; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block; padding: .4rem .8rem; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: .98rem;
}
.nav a:hover { color: var(--text); background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }

/* ---------- Type ---------- */
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 40em; }
.eyebrow {
  display: inline-block; margin-bottom: 1rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
code, kbd { font-family: var(--mono); font-size: .92em; background: var(--bg-alt); padding: .1em .4em; border-radius: 5px; }

/* ---------- Sections ---------- */
section { padding-block: clamp(3rem, 7vw, 5rem); }
.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); margin: 0; }

.hero {
  padding-block: clamp(3.5rem, 10vw, 7rem) clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(60rem 28rem at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(40rem 24rem at -10% 110%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.hero h1 { max-width: 16em; }
.page-title { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-title + section { padding-top: 1rem; }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .3rem .8rem; border-radius: 999px;
  background: var(--warn-bg); color: var(--warn);
  font-size: .85rem; font-weight: 600; margin-bottom: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
}
.badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.actions.flush { margin-top: 0; }
.mt-lg { margin-top: 2.5rem; }
.btn {
  display: inline-block; padding: .75rem 1.4rem; border-radius: 10px;
  font-weight: 600; text-decoration: none; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-text);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); filter: none; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .5em; }
.card p { color: var(--muted); margin: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 11px; margin-bottom: 1rem;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.card .icon svg { width: 24px; height: 24px; }

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 1rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
thead th { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); }
tbody th { font-weight: 600; width: 22%; }
td:last-child { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
thead th:last-child { color: var(--accent); }

/* ---------- Prose blocks ---------- */
.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-left { grid-template-columns: 1.15fr .85fr; } }

.checks { list-style: none; padding: 0; margin: 0 0 1.1em; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .95rem; height: .95rem;
  border-radius: 50%; background: var(--accent-soft); border: 2px solid var(--accent);
}
.checks.done li::before { background: var(--ok); border-color: var(--ok); }
.checks.later li::before { background: transparent; border-style: dashed; border-color: var(--muted); }

.notice {
  border-left: 4px solid var(--warn); background: var(--warn-bg); color: var(--text);
  padding: 1.1rem 1.4rem; border-radius: 0 12px 12px 0; margin-block: 1.5rem;
}
.notice strong { color: var(--warn); }
.notice p:last-child { margin-bottom: 0; }

.callout {
  display: grid; gap: 1.25rem; padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.callout h2 { margin-bottom: .4em; }
.callout p { color: var(--muted); margin: 0; }

.stages { display: grid; gap: 1.25rem; align-items: start; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; }
.stage h3 { display: flex; align-items: center; gap: .6rem; }
.pill { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .6rem; border-radius: 999px; }
.pill.done { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.pill.now { background: var(--accent-soft); color: var(--accent); }
.pill.next { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.5rem; margin: 0; }
dl.facts dt { font-weight: 600; }
dl.facts dd { margin: 0; color: var(--muted); }
@media (max-width: 520px) { dl.facts { grid-template-columns: 1fr; gap: 0; } dl.facts dd { margin-bottom: .9rem; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .actions { display: none; } body { background: #fff; color: #000; } }
