/*
 * Coming-soon page: the storefront's paper edition reduced to one statement.
 * Tokens mirror the redesign's src/app/globals.css — keep the two in step
 * until the store replaces this page.
 */

:root {
  --paper: #f7f8f8;
  --surface: #ffffff;
  --surface-2: #e9ebed;
  --ink: #06182b;
  --accent-text: #1663c7;
  --accent: #8fc6ff;
  --on-accent: #06182b;
  --band: #051f33;
  --band-line: #12395c;
  --band-ink: #e9f1fa;
  --band-dim: #7e9db8;

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 20px;
  --max: 1152px;

  color-scheme: light;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

/* ---------- nav: floating pills over a pure progressive blur ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  pointer-events: none;
}

.nav__blur {
  position: absolute;
  inset: 0 0 auto;
  height: 96px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent);
  mask-image: linear-gradient(to bottom, #000 45%, transparent);
}

.nav__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

@media (min-width: 768px) {
  .nav__row {
    padding: 20px 24px;
  }
}

.pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow:
    0 1px 2px rgba(6, 24, 43, 0.07),
    0 6px 16px rgba(6, 24, 43, 0.05);
  transition:
    background-color 0.15s ease,
    filter 0.15s ease;
}

@media (min-width: 768px) {
  .pill {
    height: 36px;
  }
}

.pill--logo {
  background: var(--surface);
}

.pill--logo:hover {
  background: var(--surface-2);
}

.pill--accent {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.pill--accent:hover {
  filter: brightness(1.05);
}

/* one word, two voices: upright sans + italic serif */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.06rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
}

.wordmark__sans {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.wordmark__serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 420;
  letter-spacing: -0.025em;
}

/* ---------- hero: one statement, with a status light ---------- */

.hero {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--max);
  min-height: 50dvh;
  margin: 0 auto;
  padding: 112px var(--gutter) 48px;
}

@media (min-width: 1024px) {
  .hero {
    min-height: 55dvh;
  }
}

.display {
  font-family: var(--font-display);
  font-weight: 330;
  letter-spacing: -0.025em;
  font-variation-settings:
    "SOFT" 0,
    "WONK" 0;
}

.headline {
  font-size: clamp(3rem, 8vw, 5.75rem);
  line-height: 1.02;
}

/* the line rises out of its own mask; the mask carries extra bottom room
   (padding offset by a negative margin) so descenders aren't clipped */
.headline__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.headline__line > span {
  display: block;
  animation: rise 0.8s var(--ease-out-expo) both;
}

@keyframes rise {
  from {
    transform: translateY(130%);
  }
  to {
    transform: none;
  }
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-text);
}

@media (min-width: 768px) {
  .status {
    margin-top: 28px;
    font-size: 13px;
  }
}

/* a status LED */
.status::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: led 2.4s ease-in-out infinite;
}

@keyframes led {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.reveal {
  animation: blur-in 0.8s var(--ease-out-expo) both;
}

.reveal--late {
  animation-delay: 0.25s;
}

@keyframes blur-in {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* ---------- the band: runs past the fold, the waveform lives in it ---------- */

.band {
  position: relative;
  height: 60dvh;
  min-height: 300px;
  background: var(--band);
}

@media (min-width: 1024px) {
  .band {
    height: 72dvh;
  }
}

.band canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.footer {
  border-top: 1px solid var(--band-line);
  background: var(--band);
  color: var(--band-dim);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter) 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.footer a {
  color: var(--band-ink);
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--accent);
}

.footer :focus-visible {
  outline-color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .headline__line > span,
  .status::before {
    animation: none;
  }
}
