:root {
  color-scheme: dark;
  --bg: #0d1117; /* GitHub dark */
  --bg-elev: #161b22;
  --text: #c9d1d9;
  --muted: #8b949e;
  --border: #30363d;
  --brand: #2f81f7; /* GitHub blue */
  --success: #2ea043;
  --error: #f85149;
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 70% -10%, #1f6feb11, transparent 60%),
              radial-gradient(800px 600px at -10% 10%, #2ea04311, transparent 60%),
              var(--bg);
}

/* Warp canvas behind content */
#warp-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Ensure app renders above the canvas */
#app { position: relative; z-index: 1; }

/* Keep the subscribe UI clearly visible above stars */
.subscribe { position: relative; z-index: 2; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.site-footer { border-top: 1px solid var(--border); border-bottom: none; }
.brand {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  font-weight: 600;
}
.brand .logo {
  display: inline-grid;
  width: 24px; height: 24px;
  place-items: center;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover { color: var(--text); }

.hero {
  display: grid;
  place-items: center;
  min-height: calc(100% - 120px);
}
.hero-inner { text-align: center; padding: 3rem 1rem; }
.title {
  font-size: clamp(2rem, 3.5vw + 1rem, 3.5rem);
  margin: 0 0 .5rem;
  letter-spacing: .3px;
}
.subtitle {
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw + .6rem, 1.25rem);
  margin: 0 0 1.75rem;
}

.subscribe {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: .5rem;
  border-radius: 10px;
  box-shadow: 0 0 0 4px #00000010;
}
.subscribe input {
  width: 100%;
  padding: .75rem .9rem;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  outline: none;
}
.subscribe input:focus { border-color: var(--brand); box-shadow: 0 0 0 2px #1f6feb55 inset; }
.subscribe button {
  padding: .75rem 1rem;
  background: var(--brand);
  color: #fff;
  border: 1px solid #1f6feb;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.subscribe button:hover { filter: brightness(1.05); }

.message { margin-top: .75rem; min-height: 1.25rem; color: var(--muted); }
.message.success { color: var(--success); }
.message.error { color: var(--error); }

.footnote { color: var(--muted); margin-top: .5rem; font-size: .95rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 480px) {
  .subscribe { grid-template-columns: 1fr; }
}
