/* ---------- Theme ---------- */
/* White design with black/grey highlights — always light, regardless of OS theme.
   The rainbow logo is the only colour on the page. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f6f6f6;
  --surface: #ffffff;
  --border: #e5e5e5;
  --text: #111111;
  --muted: #6e6e6e;
  --accent: #111111;        /* black highlight */
  --accent-soft: #8a8a8a;   /* grey highlight */
  --accent-ink: #ffffff;
  --radius: 12px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }
a  { color: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow    { max-width: 720px; }
.muted     { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; font-size: 1.5rem; font-weight: 750; letter-spacing: -.04em; text-decoration: none; }
.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { font-weight: 600; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; }
.nav { align-items: center; }
.nav-icons { display: flex; align-items: center; gap: 14px; padding-left: 20px; border-left: 1px solid var(--border); }
.icon-link { display: flex; }
.icon-link svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0; }
.eyebrow {
  color: var(--accent-soft); font-weight: 600; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .12em;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 600px; }
.lede strong { color: var(--text); }
.hero-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 8px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; transition: .15s ease;
}
.btn-sm { padding: 7px 14px; font-size: .875rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #333333; }
.btn-ghost { border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); }

[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- Sections ---------- */
.section { padding: 36px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h1, .section-head h2 { margin: 0; }
.section-head p { margin: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card p:last-of-type { margin-bottom: 12px; }

.card-featured {
  display: grid; grid-template-columns: 1fr 240px; gap: 32px;
  padding: 32px; margin-bottom: 20px;
  border-color: var(--accent-soft);
}
.card-featured h3 { font-size: 1.5rem; }
.card-side { border-left: 1px solid var(--border); padding-left: 32px; }

.card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag {
  font-size: .75rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--muted);
}
.tag-accent { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.feature-list { margin: 0 0 20px; padding-left: 18px; color: var(--muted); }
.feature-list li { margin-bottom: 4px; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stats { margin: 0; display: grid; gap: 18px; }
.stats dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-empty { border-style: dashed; background: transparent; }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-soft); font-weight: 600; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: .875rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .card-featured { grid-template-columns: 1fr; }
  .card-side { border-left: 0; border-top: 1px solid var(--border); padding: 20px 0 0; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nav { gap: 14px; }
  .nav-icons { gap: 10px; padding-left: 12px; }
  .hero { padding: 32px 0; }
  .section { padding: 28px 0; }
  .card-featured { padding: 24px; gap: 20px; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
}

