:root {
  color-scheme: dark;
  --bg: #0d0c11;
  --surface: #17151d;
  --surface-raised: #201c26;
  --text: #f7f2f5;
  --muted: #aaa1ad;
  --accent: #ff4d79;
  --accent-hot: #ff315d;
  --border: rgb(255 255 255 / 9%);
  --radius: 14px;
  --gutter: 16px;
  --max: 1120px;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
  --font-pixel: 'Press Start 2P', ui-monospace, monospace;
  --bluesky: #1185fe;
  --kofi: #ff6433;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { color: #fff; background: rgb(255 49 93 / 60%); }

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

a { color: inherit; }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgb(255 77 121 / 0%), 0 8px 24px -10px rgb(255 49 93 / 70%);
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-hot); transform: translateY(-1px); }
.btn-ghost {
  background: rgb(255 255 255 / 4%);
  border-color: var(--border);
  box-shadow: none;
}
.btn-ghost:hover { background: rgb(255 255 255 / 9%); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 14px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(13 12 17 / 78%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.brand img { width: 40px; height: 40px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:not(.btn):hover { color: var(--text); }
@media (max-width: 520px) {
  .nav-links li:not(:last-child):not(.nav-social) { display: none; }
  .nav-links { gap: 10px; }
  .nav-social + .nav-social { margin-left: 0; }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 0 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(13 12 17 / 72%) 0%, rgb(13 12 17 / 88%) 60%, var(--bg) 100%),
    radial-gradient(ellipse at 30% 30%, rgb(255 49 93 / 18%), transparent 60%),
    url('/assets/town/aurora-hills.webp') center / auto 140% repeat-x;
  image-rendering: pixelated;
  animation: drift 90s linear infinite;
}
@keyframes drift {
  from { background-position: 0 0, 0 0, 0 50%; }
  to   { background-position: 0 0, 0 0, -1904px 50%; }
}
.hero-inner {
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero-logo {
  width: min(320px, 72vw);
  margin: 0 auto;
  filter: drop-shadow(0 18px 40px rgb(0 0 0 / 55%));
}
.hero-copy { text-align: center; }
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 700;
  margin: 18px 0 16px;
}
.lead {
  margin: 0 auto;
  max-width: 34em;
  color: #d9d1db;
  font-size: clamp(17px, 2vw, 19px);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
@media (min-width: 880px) {
  .hero { padding: 88px 0 104px; }
  .hero-inner { grid-template-columns: 380px 1fr; gap: 56px; }
  .hero-logo { width: 100%; }
  .hero-copy { text-align: left; }
  .lead { margin: 0; }
  .cta-row { justify-content: flex-start; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid rgb(255 77 121 / 35%);
  border-radius: 999px;
  background: rgb(255 77 121 / 10%);
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: #ffd3de;
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* Road strip */
.road {
  position: relative;
  height: 112px;
  background:
    repeating-linear-gradient(90deg, #e8e0b8 0 36px, transparent 36px 72px) center 50% / 100% 4px no-repeat,
    #2b2a31;
  border-top: 6px solid #3b3a42;
  border-bottom: 6px solid #3b3a42;
  overflow: hidden;
}
.road-cars {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  gap: 120px;
  width: max-content;
  transform: translateY(-50%);
  animation: cruise 28s linear infinite;
}
.road-cars img {
  width: 170px;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 0 rgb(0 0 0 / 35%));
}
@keyframes cruise {
  from { transform: translate(-100%, -50%); }
  to   { transform: translate(100vw, -50%); }
}

/* Sections */
.section { padding: 80px 0; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}
.section h2 { font-size: clamp(28px, 4vw, 40px); max-width: 20em; }
.section-lead {
  margin: 16px 0 0;
  max-width: 40em;
  color: var(--muted);
}

/* Cards */
.cards {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgb(255 77 121 / 35%); }
.card-art {
  display: grid;
  place-items: end center;
  height: 190px;
  margin-bottom: 18px;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 100%, rgb(255 77 121 / 16%), transparent 65%),
    #121017;
}
.card-art img {
  max-height: 170px;
  width: auto;
  image-rendering: pixelated;
}
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Status */
.status-grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 900px) { .status-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.status-notes p {
  margin: 18px 0 0;
  color: var(--muted);
}
.status-notes strong { color: var(--text); }

.roadmap {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
}
.roadmap::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--border) 35%);
}
.roadmap li {
  position: relative;
  padding: 0 0 26px 18px;
}
.roadmap li:last-child { padding-bottom: 0; }
.roadmap li::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--bg);
  border: 2px solid rgb(255 255 255 / 25%);
}
.roadmap li.is-current::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px rgb(255 77 121 / 70%);
}
.step-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.is-current .step-label { color: var(--accent); }
.roadmap li.is-done::before {
  background: var(--muted);
  border-color: var(--muted);
}
.roadmap h3 { font-size: 19px; margin: 6px 0 4px; }
.roadmap p { margin: 0; color: var(--muted); font-size: 15px; }

/* CTA band */
.cta-band { padding: 64px 0; }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-inner > div {
  flex: 1 1 320px;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 34px); }
.cta-band p { margin: 8px 0 0; color: var(--muted); }

/* Brand icons */
.icon { width: 20px; height: 20px; fill: currentColor; flex: none; }
.icon-bluesky { color: var(--bluesky); }
.icon-kofi { color: var(--kofi); }
.nav-links a.icon-bluesky { color: var(--bluesky); }
.nav-links a.icon-kofi { color: var(--kofi); }
.nav-social { display: flex; }
.icon-link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgb(255 255 255 / 4%);
  transition: background-color .15s ease, transform .15s ease;
}
.icon-link:hover { background: rgb(255 255 255 / 10%); transform: translateY(-1px); }
.nav-links { gap: 12px 22px; }
.nav-social + .nav-social { margin-left: -12px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-kofi .icon { color: var(--kofi); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-inner p { margin: 0; }
.footer-inner { align-items: center; }
.social-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 500;
}
.social-links span { color: var(--muted); }
.social-links a:hover span { color: var(--text); }
.credits a { color: var(--text); }

/* Legal pages */
.legal {
  max-width: 760px;
  padding-top: 64px;
  padding-bottom: 88px;
}
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal .legal-meta { margin: 10px 0 32px; color: var(--muted); font-size: 15px; }
.legal .eyebrow { color: var(--accent); }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; color: var(--text); }
.legal p, .legal li { color: #d9d1db; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal strong { color: var(--text); }
.legal-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: var(--text); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg, .road-cars, .pill-dot { animation: none; }
  .road-cars { left: 50%; transform: translate(-50%, -50%); }
  .btn, .card, .icon-link { transition: none; }
}
