/* sitedev shared base stylesheet.
   Family colors and fonts are injected as CSS variables by tools/build-launch.mjs.
   Do not hardcode colors here; use the --c-* variables. */

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-hero: clamp(3rem, 0.5rem + 8vw, 8.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(var(--space-6), 5vw, var(--space-20));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); background: var(--c-surface); padding: var(--space-2) var(--space-4); z-index: 10; }

/* ---------- Launch layout ---------- */
.launch {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--space-8) var(--gutter);
  isolation: isolate;
}

.motif {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.motif svg {
  position: absolute;
  right: -12vmin;
  top: 50%;
  width: min(92vmin, 980px);
  height: auto;
  transform: translateY(-50%);
  color: var(--c-accent);
  opacity: 0.9;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.topbar .domain { color: var(--c-text); font-weight: 500; }

.hero {
  align-self: center;
  max-width: 62rem;
  padding-block: var(--space-16);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-8);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.kicker::before {
  content: "";
  width: var(--space-8);
  height: 1px;
  background: var(--c-accent);
}
.name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-hero);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.name .line { display: block; }
.name .line:last-child { color: var(--c-accent); }
.statement {
  max-width: 34rem;
  margin: var(--space-10) 0 0;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--c-text);
  text-wrap: pretty;
}
.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-10);
  font-size: var(--text-sm);
  color: var(--c-muted);
}
.status .dot {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--c-text);
}
.status .dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-accent) 18%, transparent);
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  text-decoration: none;
  font-weight: 500;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}
.cta:hover { transform: translateY(-1px); background: color-mix(in oklab, var(--c-accent) 85%, var(--c-text)); }
.textlink { color: var(--c-text); text-underline-offset: 4px; text-decoration-color: var(--c-faint); }
.textlink:hover { text-decoration-color: var(--c-accent); }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--c-line);
  font-size: var(--text-xs);
  color: var(--c-muted);
}

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 900ms var(--ease) both; }
  .hero > *:nth-child(2) { animation-delay: 80ms; }
  .hero > *:nth-child(3) { animation-delay: 180ms; }
  .hero > *:nth-child(4) { animation-delay: 260ms; }
  .motif { animation: fade 1600ms var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 720px) {
  .motif svg { right: -40vw; top: 18%; width: 120vw; opacity: 0.35; }
  .hero { padding-block: var(--space-12); }
  .statement { margin-top: var(--space-8); }
  .topbar .tag { display: none; }
}
