/* Nimbel placeholder page.
   Built on the Contrast tokens in variables.css.
   Dials: DESIGN_VARIANCE 5, MOTION_INTENSITY 4, VISUAL_DENSITY 2. */

/* --- Semantic tokens ------------------------------------------------------
   Contrast is a light-theme system. Dark mode reuses its own Carbon Ink
   surface rather than inventing new colours.

   accent-strong exists because Signal Coral (#ff5065) reaches only 3.19:1
   against white, below the WCAG AA 4.5:1 floor for text. Coral stays the
   accent everywhere; accent-strong is the same hue darkened for text use. */

:root {
  color-scheme: light dark;

  --surface: var(--color-pure-white);
  --text: var(--color-carbon-ink);
  --text-muted: var(--color-smoke);
  --accent: var(--color-signal-coral);
  --accent-strong: #d92d45;
  --cta-surface: var(--color-carbon-ink);
  --cta-text: var(--color-pure-white);
  --hairline: rgba(14, 15, 16, 0.1);
  --wash: rgba(255, 80, 101, 0.09);
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: var(--color-carbon-ink);
    --text: var(--color-fog);
    /* Slate alone lands at 4.52:1 on Carbon Ink, no headroom. Lifted toward
       Fog so muted text clears AA comfortably, still a brand-derived value. */
    --text-muted: var(--color-slate);
    --text-muted: color-mix(in srgb, var(--color-fog) 30%, var(--color-slate));
    --accent-strong: var(--color-signal-coral);
    --cta-surface: var(--color-fog);
    --cta-text: var(--color-carbon-ink);
    --hairline: rgba(244, 244, 248, 0.14);
    --wash: rgba(255, 80, 101, 0.13);
  }
}

/* --- Base ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-gilroy);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.56;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Brand wash. Contrast's Coral Mist, softened into a corner field so the page
   is not bare white. Fixed and non-interactive so it never repaints on scroll. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    72ch 60ch at 88% 6%,
    var(--wash),
    transparent 70%
  );
}

/* --- Shell --------------------------------------------------------------- */

.page {
  min-height: 100dvh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 64px;
}

.wordmark {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.wordmark .mark {
  color: var(--accent-strong);
}

/* --- Hero ---------------------------------------------------------------- */
/* Left-aligned with a wide right gutter. The asymmetry is the composition,
   which is why there is no decorative filler holding the empty side. */

.hero {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.headline {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

.lede {
  margin: 28px 0 0;
  max-width: 44ch;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.56;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  padding: 14px 28px;
  border: 1px solid var(--cta-surface);
  border-radius: 100px;
  background: var(--cta-surface);
  color: var(--cta-text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease;
}

.cta:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.cta:active {
  transform: translateY(0) scale(0.985);
}

/* --- Footer -------------------------------------------------------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.43;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 180ms ease;
}

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

/* --- Focus --------------------------------------------------------------- */

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* --- Motion -------------------------------------------------------------- */
/* One entry cascade. It reveals the page in reading order on load, which is
   the only hierarchy signal a page this sparse has. Nothing loops. */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--step, 0) * 90ms);
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- Mobile -------------------------------------------------------------- */

@media (max-width: 767px) {
  .page {
    padding: 28px 20px 32px;
    gap: 48px;
  }

  .headline {
    max-width: none;
  }

  .lede {
    max-width: none;
  }

  .cta {
    width: 100%;
  }

  .footer {
    flex-direction: column;
  }
}
