/* Crystal Grotto / Stimspace site. Palette from docs/ART_BIBLE.md (Dusk theme). */
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-subset.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg-deep: #141726;
  --bg-mid: #1b1f33;
  --surface: #232842;
  --surface-2: #2e3352;
  --edge: #4a5180;
  --text: #e9ebf7;
  --muted: #aab0cf;
  --glow: #8fb8ff;
  --warm: #ffc98f;
  --soft: #c9a8ff;
  --mint: #8fffd2;
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 50% -10%, #232a4a 0%, transparent 70%),
    var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--glow); text-underline-offset: 3px; }
a:hover { color: #b7d0ff; }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--soft);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface-2); color: var(--text); padding: 8px 14px; border-radius: 10px;
}
.skip:focus { left: 12px; z-index: 10; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: 0.01em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; font-size: 16px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 40px 0 24px; }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mint); background: rgba(143, 255, 210, 0.08); border: 1px solid rgba(143, 255, 210, 0.25);
  padding: 6px 14px; border-radius: 999px;
}
.hero h1 { font-size: clamp(48px, 9vw, 92px); line-height: 1.02; margin: 22px 0 10px; font-weight: 800; letter-spacing: -0.01em; }
.hero .tagline { font-size: clamp(21px, 3vw, 28px); color: var(--text); margin: 0 auto 14px; font-weight: 600; }
.hero .lede { max-width: 640px; margin: 0 auto 28px; color: var(--muted); }
.actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.button {
  display: inline-block; text-decoration: none; font-weight: 700; padding: 13px 24px; border-radius: 999px;
  background: var(--glow); color: #121a33;
}
.button:hover { background: #a9c8ff; color: #121a33; }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--edge); }
.button.ghost:hover { border-color: var(--glow); color: var(--text); }

.key-art {
  margin: 44px auto 0; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  border: 1px solid rgba(143, 184, 255, 0.18);
  box-shadow: 0 30px 80px -30px rgba(143, 184, 255, 0.35);
}

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.15; margin: 0 0 12px; font-weight: 800; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-mid) 100%);
  border: 1px solid rgba(74, 81, 128, 0.55);
  border-radius: var(--radius); overflow: hidden;
}
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card .body { padding: 18px 22px 22px; }
.card h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 16.5px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 9px; vertical-align: 2px; }

/* Split */
.split { display: grid; gap: 40px; grid-template-columns: 1.05fr 1fr; align-items: center; }
.split .shot { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(74, 81, 128, 0.55); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { padding-left: 30px; position: relative; color: var(--muted); }
.ticks li strong { color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em; width: 12px; height: 12px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 10px rgba(143, 184, 255, 0.7);
}

.themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 26px; }
.themes figure { margin: 0; }
.themes img { border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid rgba(74, 81, 128, 0.55); }
.themes figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 6px; }
@media (max-width: 560px) { .themes { grid-template-columns: repeat(3, 1fr); } }

.promises { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.promise { background: var(--surface); border: 1px solid rgba(74, 81, 128, 0.55); border-radius: 18px; padding: 20px 22px; }
.promise h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.promise p { margin: 0; color: var(--muted); font-size: 16px; }

.callout {
  text-align: center; padding: 56px 28px; border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(600px 260px at 50% 0%, rgba(201, 168, 255, 0.16), transparent 70%), var(--surface);
  border: 1px solid rgba(74, 81, 128, 0.55);
}
.callout h2 { margin: 0 0 10px; font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; }
.callout p { margin: 0 auto 24px; color: var(--muted); max-width: 560px; }

/* Footer */
.site-footer { padding: 40px 0 56px; color: var(--muted); font-size: 15px; border-top: 1px solid rgba(74, 81, 128, 0.4); margin-top: 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Legal pages */
.legal { padding: 36px 0 24px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 6vw, 52px); margin: 10px 0 6px; font-weight: 800; }
.legal .updated { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-size: 24px; margin: 38px 0 10px; font-weight: 800; }
.legal p, .legal li { color: #d3d7ec; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.summary {
  background: var(--surface); border: 1px solid rgba(143, 255, 210, 0.25); border-radius: 18px; padding: 18px 22px;
}
.summary p { margin: 0; color: var(--text); }
