/* Linea0 — tokens from the Linea0 design system (tokens.json). */
@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --surface: #ffffff;
  --surface-subtle: #f4f4f5;
  --equator: #d4d4d8;
  --ink: #0b0b0c;
  --ink-muted: #52525b;
  --ink-subtle: #6b6b74;
  --action: #0b0b0c;
  --action-hover: #2b2b30;
  --on-action: #ffffff;
  --focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px #0b0b0c;

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-md: 8px;
  --container-max: 1200px;
  --measure: 68ch;

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --gutter: var(--space-8);
  /* The giant stencil zero: sized to the hero, capped by width so it never meets the copy. */
  --zero: min(calc(100svh - 140px), 62vw);
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0b0b0c;
    --surface-subtle: #1c1c1f;
    --equator: #3f3f46;
    --ink: #fafafa;
    --ink-muted: #a1a1aa;
    --ink-subtle: #8b8b94;
    --action: #fafafa;
    --action-hover: #d4d4d8;
    --on-action: #0b0b0c;
    --focus-ring: 0 0 0 2px #0b0b0c, 0 0 0 4px #fafafa;
  }
}

* {
  box-sizing: border-box;
}
html {
  background: var(--surface);
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/24px var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
h1,
p {
  margin: 0;
}
a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring);
}
::selection {
  background: var(--ink);
  color: var(--surface);
}

.wrap {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.eyebrow {
  font: 500 12px/16px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.caption-mono {
  font: 400 12px/16px var(--font-mono);
  color: var(--ink-subtle);
}

/* Header */
.site-header {
  padding-block: var(--space-6) var(--space-4);
}
.brand {
  display: inline-flex;
  border-radius: var(--radius-md);
}
.brand img {
  display: block;
  width: auto;
  height: 32px;
}

/* Hero: The Line at the exact vertical centre, content north and south of it */
.hero {
  position: relative;
  flex: 1;
  display: grid;
  min-height: 440px;
  overflow: hidden;
  isolation: isolate;
}
.hero-line {
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  transform: translateY(-0.5px);
  background: var(--equator);
  z-index: -1;
}
.hero-zero {
  position: absolute;
  top: 50%;
  right: calc(var(--zero) * -0.3);
  width: var(--zero);
  height: var(--zero);
  transform: translateY(-50%);
  color: var(--ink);
  z-index: -1;
}
.hero-zero path {
  fill: currentColor;
}
.hero-coord {
  position: absolute;
  bottom: 50%;
  right: calc(var(--zero) * 0.7 + var(--space-4));
  padding-bottom: var(--space-2);
}
.hero-inner {
  display: grid;
  grid-template-rows: 1fr 1fr;
}
.north,
.south {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 54%;
}
.north {
  justify-content: flex-end;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
}
.south {
  justify-content: flex-start;
  gap: var(--space-6);
  padding-top: var(--space-6);
}
.title {
  font-size: clamp(40px, 6.2vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.lede {
  max-width: var(--measure);
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 28px;
}

/* The cut opens and closes while the site is being built */
.is-building .zero-north {
  animation: cut-north 1.6s ease-in-out infinite alternate;
}
.is-building .zero-south {
  animation: cut-south 1.6s ease-in-out infinite alternate;
}
@keyframes cut-north {
  to {
    transform: translateY(3px);
  }
}
@keyframes cut-south {
  to {
    transform: translateY(-3px);
  }
}

/* Button (primary, lg) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-md);
  background: var(--action);
  color: var(--on-action);
  font: 500 16px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease;
}
.btn:hover {
  background: var(--action-hover);
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4) var(--space-6);
}

@media (max-width: 720px) {
  :root {
    --gutter: var(--space-4);
    --zero: 110vw;
  }
  .hero-zero {
    right: -46vw;
    opacity: 0.14;
  }
  .hero-coord {
    display: none;
  }
  .north,
  .south {
    max-width: 100%;
  }
  .north {
    padding-bottom: var(--space-5);
  }
  .south {
    padding-top: var(--space-5);
  }
  .lede {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
