/* Scylla Labs — scylla.dev landing page
   Tokens are a subset of the Scylla Labs design system. */

/* ── Fonts (self-hosted, OFL — see fonts/OFL-*.txt) ── */
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/space-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ── Tokens ────────────────────────────────────────── */
:root {
  --teal-100: #EAFCFA;
  --teal-300: #8FE4E2;
  --teal-400: #5FD3D6;
  --teal-500: #3BB0BE;
  --navy-950: #050D16;
  --navy-900: #081420;
  --navy-800: #0B1B2C;
  --navy-500: #3D5268;
  --navy-400: #5F7389;
  --navy-300: #8B9CAE;
  --white:    #FAFCFD;

  --surface-page: var(--white);
  --abyss: var(--navy-900);            /* wave fill + lower band */
  --text-primary: var(--navy-800);
  --text-on-abyss: var(--navy-300);
  --text-on-abyss-dim: var(--navy-300);
  --link-on-abyss: var(--teal-400);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --pad-x: clamp(20px, 5vw, 56px);
  --content-max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-page: var(--navy-900);
    --abyss: var(--navy-950);
    --text-primary: var(--teal-100);
  }
}

/* ── Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ── Light upper section ───────────────────────────── */
.surface {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 70vh;
  min-height: 70svh;
}
.brand { display: flex; align-items: center; gap: 10px; padding-top: 30px; }
.brand img { width: 24px; height: 24px; display: block; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
main.shell { flex: 1 0 auto; display: flex; }
h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(2.125rem, 5vw, 2.75rem);
  line-height: 1.12;
  max-width: 22ch;
  margin: auto 0;
  padding-block: 48px;
}

/* ── Wave divider (the strait) ─────────────────────── */
.wave { line-height: 0; overflow: hidden; background: var(--surface-page); }
.wave svg {
  display: block;
  width: 200%;                          /* two identical periods → seamless loop */
  height: clamp(28px, 4vw, 48px);
  animation: drift 22s linear infinite;
}
.wave path { fill: var(--abyss); }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wave svg { animation: none; } }

/* ── Dark lower band ───────────────────────────────── */
footer { background: var(--abyss); color: var(--text-on-abyss); padding-block: 28px 26px; }
.contact { margin: 0; font-size: 0.9375rem; }
.contact a { color: var(--link-on-abyss); text-underline-offset: 3px; }
.contact a:hover { color: var(--teal-300); }
.contact a:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 2px;
}
.legal { margin-top: 34px; font-size: 0.75rem; color: var(--text-on-abyss-dim); }
.legal p { margin: 0; }
.est {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Mobile: footer address stacks (name / street / city+zip / est) */
@media (max-width: 560px) {
  .org span { display: block; }
  .org .sep { display: none; }
}
