:root {
  --ink: #16161d;
  --text: #2a2933;
  --muted: #5c5a67;
  --line: #e6e4ee;
  --paper: #f6f5fb;
  --card: #ffffff;
  --brand: #3d42e0;
  --brand-soft: #ececff;
  --glow: #e7e6ff;
  --bar: rgba(246, 245, 251, 0.86);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #f3f1f8;
  --text: #e4e1ea;
  --muted: #b7b3c4;
  --line: #2e2d38;
  --paper: #121218;
  --card: #1c1c24;
  --brand: #c2c4ff;
  --brand-soft: #2a2c55;
  --glow: #2a2460;
  --bar: rgba(18, 18, 24, 0.86);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f3f1f8;
    --text: #e4e1ea;
    --muted: #b7b3c4;
    --line: #2e2d38;
    --paper: #121218;
    --card: #1c1c24;
    --brand: #c2c4ff;
    --brand-soft: #2a2c55;
    --glow: #2a2460;
    --bar: rgba(18, 18, 24, 0.86);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 320px at 100% -10%, var(--glow) 0%, transparent 60%),
    var(--paper);
  line-height: 1.6;
}

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

header.bar {
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(14px);
  background: var(--bar);
  border-bottom: 1px solid var(--line);
}

.bar-inner {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(160deg, #6a6ef2, #3d42e0);
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 8px;
}

.mark span {
  display: block;
  width: 3px;
  border-radius: 99px;
  background: white;
}

.mark span:nth-child(1) { height: 8px; }
.mark span:nth-child(2) { height: 14px; }
.mark span:nth-child(3) { height: 18px; }
.mark span:nth-child(4) { height: 11px; }

.actions { display: flex; align-items: center; gap: 0.85rem; }
nav { display: flex; gap: 1.1rem; font-size: 0.95rem; }

.theme {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.theme svg { width: 18px; height: 18px; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .moon { display: none; }
  :root:not([data-theme="light"]) .theme .sun { display: block; }
}
nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
nav a[aria-current="page"] { color: var(--brand); }

.hero { padding: 2.6rem 0 0.4rem; }
.eyebrow {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.7rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.lede { margin: 0.8rem 0 0; max-width: 38rem; color: var(--muted); font-size: 1.08rem; }
.meta { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.92rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.6rem 0 0.4rem;
}
.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem 1rem;
}
.fact strong { display: block; font-size: 0.98rem; letter-spacing: -0.02em; }
.fact span { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.9rem; }

article {
  margin-top: 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0.4rem 1.35rem 1.4rem;
}

section { padding: 1.15rem 0; border-top: 1px solid var(--line); }
section:first-child { border-top: 0; }

h2 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
h2 span {
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  margin-right: 0.4rem;
}
p, li { color: var(--text); }
ul { margin: 0.4rem 0 0; padding-left: 1.15rem; }
li + li { margin-top: 0.3rem; }

footer {
  padding: 1.6rem 0 2.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 680px) {
  .facts { grid-template-columns: 1fr; }
  nav { gap: 0.75rem; font-size: 0.88rem; }
  article { padding-inline: 1rem; }
}
