/* ============================================================
 * Landing page — shares the explorer's design tokens, but the
 * <body> here is a normal flow document (the explorer's styles.css
 * turns <body> into an app grid, so it is intentionally NOT loaded).
 * ========================================================== */
:root {
  color-scheme: light dark;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;

  --radius-2: 6px;
  --radius-3: 10px;
  --radius-4: 14px;

  --type-xs: 11px;
  --type-sm: 12.5px;
  --type-md: 13.5px;
  --type-lg: 15px;
  --type-xl: 20px;
  --type-2xl: 26px;
  --type-3xl: 40px;

  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-muted: #f4f4f5;
  --bg-strong: #ececef;
  --bg-overlay: rgba(0, 0, 0, 0.04);

  --fg: #18181b;
  --fg-muted: #71717a;
  --fg-subtle: #a1a1aa;

  --border: #e7e7ea;
  --border-strong: #d4d4d8;
  --focus: #3b82f6;

  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.08);
  --accent-stronger: #2563eb;
  --violet: #8b5cf6;

  --shadow-1: 0 1px 2px rgba(15, 15, 20, 0.04), 0 0 0 1px rgba(15, 15, 20, 0.04);
  --shadow-2: 0 6px 24px -8px rgba(15, 15, 20, 0.18), 0 1px 3px rgba(15, 15, 20, 0.06);
  --shadow-3: 0 20px 50px -16px rgba(15, 15, 20, 0.28);

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --bg-soft: #131316;
    --bg-muted: #18181b;
    --bg-strong: #232327;
    --bg-overlay: rgba(255, 255, 255, 0.05);
    --fg: #ededee;
    --fg-muted: #a1a1aa;
    --fg-subtle: #71717a;
    --border: #232327;
    --border-strong: #2e2e33;
    --accent-soft: rgba(59, 130, 246, 0.18);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --shadow-2: 0 8px 32px -8px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-3: 0 24px 60px -16px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: var(--type-md)/1.6 var(--sans);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Soft radial wash behind the hero, tinted by the brand gradient. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% -8%, var(--accent-soft), transparent 70%),
    radial-gradient(40% 40% at 85% 0%, rgba(139, 92, 246, 0.07), transparent 70%);
  pointer-events: none;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-5) var(--space-6);
}

/* ---- Brand mark ---- */
.brand {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--type-sm); font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--fg-muted);
}
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  flex: none;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---- Hero ---- */
.hero { margin-top: var(--space-8); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--mono); font-size: var(--type-xs);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  padding: 4px 11px; border-radius: 999px;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 680;
  margin: var(--space-4) 0 var(--space-4);
  max-width: 24ch;
}
.lede {
  font-size: var(--type-lg);
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 62ch;
  margin: 0 0 var(--space-6);
}

/* ---- CTA ---- */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.cta {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: var(--type-lg); font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  padding: 13px 24px;
  border-radius: var(--radius-3);
  box-shadow: var(--shadow-2);
  transition: background 0.12s ease, transform 0.06s ease, box-shadow 0.12s ease;
}
.cta:hover { background: var(--accent-stronger); box-shadow: var(--shadow-3); }
.cta:active { transform: translateY(1px); }
.cta svg { width: 17px; height: 17px; transition: transform 0.15s ease; }
.cta:hover svg { transform: translateX(3px); }
.cta-note { font-size: var(--type-sm); color: var(--fg-subtle); }

/* ---- Resource cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-4);
  padding: var(--space-5);
  position: relative;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); margin-bottom: var(--space-3);
}
.card-kind {
  font-family: var(--mono); font-size: var(--type-xs);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-subtle);
}
.card-arrow {
  width: 16px; height: 16px; color: var(--fg-subtle); flex: none;
  transition: color 0.12s ease, transform 0.15s ease;
}
.card:hover .card-arrow { color: var(--accent); transform: translate(2px, -2px); }
.card-title {
  font-size: var(--type-lg); font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
}
.card-cite {
  font-size: var(--type-sm);
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
}
.card-doi {
  display: inline-block; margin-top: var(--space-3);
  font-family: var(--mono); font-size: var(--type-xs);
  color: var(--accent);
  word-break: break-all;
}

/* ---- License ---- */
.license {
  margin-top: var(--space-8);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-3);
  display: flex; gap: var(--space-3); align-items: flex-start;
}
.license svg { width: 18px; height: 18px; color: var(--fg-muted); flex: none; margin-top: 2px; }
.license p { margin: 0; font-size: var(--type-sm); color: var(--fg-muted); }
.license strong { color: var(--fg); font-weight: 600; }
.license a { color: var(--accent); text-decoration: none; }
.license a:hover { text-decoration: underline; }

/* ---- Footer ---- */
footer {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  align-items: baseline; justify-content: space-between;
  font-size: var(--type-xs); color: var(--fg-subtle);
}
footer .authors { font-style: normal; }

@media (max-width: 560px) {
  .wrap { padding: var(--space-6) var(--space-4); }
  h1 { font-size: 24px; }
  .lede { font-size: var(--type-md); }
}
