/* Boring Apocalypse LLC — static landing (Atlas-adjacent + starfield) */

:root {
  --bg: #0a0a0c;
  --pink: #ff2d95;
  --text: #f4f0f5;
  --muted: #9b93a3;
  --border: #2a2433;
  --font-sans: "Public Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype",
    Palatino, Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", "SF Mono",
    Menlo, Consolas, monospace;
  --max: 36rem;
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: #000;
}

::selection {
  background: rgba(255, 45, 149, 0.35);
  color: #fff;
}

/* Full-viewport starfield (WritersRoom graphics defaults) */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

#canvas2d {
  display: block;
  width: 100%;
  height: 100%;
}

/* Soft Atlas wash over the field so copy stays readable */
.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 80% 50% at 50% -20%,
      rgba(255, 45, 149, 0.1),
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 40% at 100% 100%,
      rgba(80, 0, 40, 0.22),
      transparent 50%
    ),
    linear-gradient(
      180deg,
      rgba(10, 10, 12, 0.35) 0%,
      rgba(10, 10, 12, 0.55) 45%,
      rgba(10, 10, 12, 0.75) 100%
    );
}

.shell {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 1.5rem;
}

@media (min-width: 640px) {
  .shell {
    padding: 4rem 1.5rem 2rem;
    justify-content: center;
  }
}

.panel {
  padding: 1.5rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 2px;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

@media (min-width: 640px) {
  .panel {
    padding: 2rem 1.75rem;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--pink);
}

h1 {
  margin: 0 0 1.75rem;
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 5.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}

.rule {
  width: 20rem;
  height: 1px;
  margin: 0 0 1.75rem;
  border: 0;
  background: linear-gradient(90deg, var(--pink), transparent);
}

.copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.copy p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.7;
  color: var(--muted);
}

@media (min-width: 640px) {
  .copy p {
    font-size: 1.0625rem;
  }
}

.footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.footer p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 85%, transparent);
}

@media (min-width: 640px) {
  .footer {
    margin-top: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .starfield {
    display: none;
  }

  body {
    background:
      radial-gradient(
        ellipse 80% 50% at 50% -20%,
        rgba(255, 45, 149, 0.12),
        transparent
      ),
      radial-gradient(
        ellipse 60% 40% at 100% 100%,
        rgba(80, 0, 40, 0.25),
        transparent
      ),
      var(--bg);
  }

  .veil {
    display: none;
  }
}
