/* apollo — zinc-950, chivo mono. lowercase, quiet, dark. */

@font-face {
  font-family: "Chivo Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/chivo-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Chivo Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/chivo-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --bg: #09090b;
  --ink: #fafafa;
  --muted: #a1a1aa;
  --dim: #71717a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --card: rgba(9, 9, 11, 0.55);
  --font: "Chivo Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: rgba(250, 250, 250, 0.18); }

:focus-visible {
  outline: 1px solid #fafafa;
  outline-offset: 3px;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg);
  pointer-events: none;
}

main,
.site > .wrap {
  position: relative;
  z-index: 1;
}

.fluid {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 620px at 18% 78%, rgba(9, 9, 11, 0.78), transparent 62%),
    radial-gradient(700px 480px at 82% 18%, rgba(9, 9, 11, 0.15), transparent 70%),
    linear-gradient(180deg, rgba(9, 9, 11, 0.62) 0%, rgba(9, 9, 11, 0.18) 28%, rgba(9, 9, 11, 0.28) 58%, rgba(9, 9, 11, 0.92) 100%);
}

.site { position: relative; z-index: 1; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  mix-blend-mode: normal;
}

.brand {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.nav-links a:hover { color: var(--ink); }

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 96px 0 64px;
}

.kicker {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  margin-bottom: 22px;
}

.word {
  font-weight: 500;
  font-size: clamp(4.6rem, 16vw, 10.5rem);
  line-height: 0.8;
  letter-spacing: -0.07em;
  text-shadow: 0 20px 80px rgba(9, 9, 11, 0.85);
}

.lede {
  max-width: 38rem;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.45;
}

.headline {
  margin-top: 28px;
  max-width: 16em;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.subline {
  margin-top: 12px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 9, 11, 0.45);
  backdrop-filter: blur(10px);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
  cursor: pointer;
}

.btn.solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn:hover { border-color: rgba(255, 255, 255, 0.45); }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 36px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 12px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: lowercase;
}

.ticker-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: ticker 48s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section { padding: 92px 0; }

.section-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin-bottom: 36px;
  align-items: baseline;
}

.index {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.18em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.grid-3, .grid-2 {
  display: grid;
  gap: 14px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.1fr 0.9fr; }

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 22px 20px 20px;
  backdrop-filter: blur(8px);
}

.card h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.card p, .steps li, .fine { color: var(--muted); }

.steps { list-style: none; display: grid; gap: 0; }

.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child { border-bottom: 1px solid var(--line); }

.steps b { color: var(--ink); font-weight: 500; }

.shots { display: grid; gap: 18px; }

.shot {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 13px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line);
}

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.install {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

pre {
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.7;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 18px;
  overflow: auto;
  color: #e4e4e7;
}

.prompt { color: var(--dim); }

footer {
  padding: 28px 0 40px;
  color: var(--dim);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}

.swap {
  display: inline-flex;
  align-items: center;
}

.swap-char {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.15em;
  line-height: 1.15em;
}

.swap-a, .swap-b { display: block; }

.swap-b {
  position: absolute;
  left: 0;
  top: 100%;
}

.not-found {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: left;
}

@media (max-width: 860px) {
  .grid-3, .grid-2, .pair, .install, .section-head { grid-template-columns: 1fr; }
  .nav-links a.quiet { display: none; }
  .hero { padding-bottom: 48px; }
  .word { letter-spacing: -0.05em; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

.section.tight { padding-top: 0; }
