@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist/Geist-wght.woff2") format("woff2");
}

:root {
  --page-bg: #1a1a1a;
  --panel-bg: #222;
  --border: #4a4a4a;
  --text: #e6e6e6;
  --muted: #9a9a9a;
  --accent: #e6f350;
  --ink: #1a1a1a;
  --field: #282828;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  color: var(--text);
  font-family: Geist, system-ui, sans-serif;
}

a { color: var(--accent); }

.doc img, .look .shot {
  image-rendering: auto;
  max-width: 100%;
  height: auto;
}

.doc img { border: 1px solid var(--border); }

#stage {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 28%, transparent 30%, rgba(26, 26, 26, 0.5) 62%, #1a1a1a 100%);
}

.hero {
  position: fixed;
  z-index: 1;
  top: 6vh;
  left: 50%;
  width: min(420px, 56vw);
  height: auto;
  transform: translateX(-50%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.landing-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  padding: 48vh 24px 40px;
  background: linear-gradient(transparent 0%, transparent 48%, rgba(26, 26, 26, 0.88) 80%, var(--page-bg) 100%);
  pointer-events: none;
}

.landing-copy a, .landing-copy .actions { pointer-events: auto; }

.look { position: relative; z-index: 2; background: var(--page-bg); }

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.landing-copy h1 {
  margin: 0.25em 0 12px;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.1;
  font-weight: 700;
}

.landing-copy p { margin: 0 0 0.85rem; max-width: 38rem; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.landing-copy p.actions { margin-top: 32px; }

.look-row {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}

.look-copy {
  max-width: 38rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  background: var(--panel-bg);
}

.look-copy h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text);
}

.look-copy p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.frame { margin: 0; }

.frame a { display: block; }

.shot {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px #0008;
}

@media (min-width: 60rem) {
  .look-row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .look-row:nth-of-type(even) {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }

  .look-row:nth-of-type(even) .look-copy { order: 2; justify-self: end; }
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 10px 16px;
  background: var(--panel-bg);
  border-bottom: 1px solid var(--border);
}

.topbar-label {
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
}

.brand img { width: 32px; height: auto; }

.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.topbar .download { margin-left: auto; padding: 8px 14px; }

.repo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid var(--border);
}

.repo:hover { color: var(--accent); border-color: var(--accent); }

.shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 57px);
}

.nav {
  padding: 12px 0;
  background: var(--panel-bg);
  border-right: 1px solid var(--border);
}

.nav-group {
  margin: 12px 16px 4px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: var(--muted);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--accent);
}

.doc {
  padding: 28px 32px 80px;
  max-width: 52rem;
}

.doc h1 { margin-top: 0; font-size: 1.8rem; }

.doc h2 { margin-top: 1.8rem; font-size: 1.15rem; }

.doc p, .doc li { line-height: 1.5; }

.doc code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.92em;
}

.doc :not(pre) > code {
  background: var(--field);
  padding: 0 4px;
}

.doc pre {
  background: var(--field);
  border: 1px solid var(--border);
  padding: 12px 14px;
  overflow: auto;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}

.doc th, .doc td {
  border: 1px solid var(--border);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.doc th { background: var(--panel-bg); }

.muted { color: var(--muted); }

.doc .req {
  border: 1px solid var(--accent);
  background: var(--field);
  padding: 12px 14px;
  margin: 1.2rem 0;
}

@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .nav a { padding: 8px 12px; }
  .nav-group { flex-basis: 100%; margin: 8px 12px 0; }
  .doc { padding: 20px 16px 64px; }
}
