/* ─── Geist Sans ──────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;700&display=swap');

/* ─── Reset ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

/* ─── Tokens ─────────────────────────────────────── */
:root {
  --bg: #141013;
  --bg-elev: #131313;
  --line: #1f1f1f;
  --line-strong: #2a2a2a;
  --text: #ededed;
  --text-muted: #8a8a8a;
  --text-faint: #555;
  --accent: #fafafa;

  --radius: 0;
  --container: 1180px;
  --gutter: 32px;

  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 22px;
  --fs-xl: 32px;
  --fs-2xl: 48px;
  --fs-3xl: 72px;
}

/* ─── Base ───────────────────────────────────────── */
html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection {
  background: #fafafa;
  color: #141013;
}

/* ─── Container ──────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Top nav ────────────────────────────────────── */
.site-nav {
  border-bottom: 1px solid var(--line);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-nav .brand {
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
}

.site-nav .brand img {
  height: 28px;
  width: auto;
  display: block;
}

.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

.site-nav a {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
}

/* ─── Footer ─────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 96px;
  color: var(--text-faint);
  font-size: var(--fs-sm);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ─── Typography helpers ─────────────────────────── */
.eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p + p { margin-top: 1em; }

/* ─── Page hero (reused) ─────────────────────────── */
.page-hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: var(--fs-2xl);
  max-width: 16ch;
}

.page-hero p {
  margin-top: 16px;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ─── Mobile tweaks ──────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --fs-3xl: 48px;
    --fs-2xl: 36px;
    --fs-xl: 24px;
  }

  .site-nav ul { gap: 18px; }
  .page-hero { padding: 48px 0 32px; }
}
