/* ============================================================
   Base — reset, body, typography, selection.
   ============================================================ */

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  line-height: var(--lh-normal);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  font-feature-settings: "ss01", "cv11";
}

/* Ambient gold glow on page — very subtle, anchors the dark */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 85% -10%, var(--gold-tint-04), transparent 55%),
    radial-gradient(circle at 10% 110%, var(--gold-tint-04), transparent 45%);
}


body > * { position: relative; z-index: 1; }

::selection {
  background: var(--gold-tint-40);
  color: var(--text-strong);
}

::placeholder {
  color: var(--text-subtle);
}

/* ---------- Type primitives ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  color: var(--text-strong);
  line-height: var(--lh-tight);
}

.display {
  font-family: var(--font-serif);
  font-weight: var(--fw-regular);
  letter-spacing: -0.015em;
  line-height: var(--lh-tight);
}

.mono { font-family: var(--font-mono); }

.eyebrow {
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.strong { color: var(--text-strong); }
.accent { color: var(--gold); }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--gold-hover); }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--s-6) 0;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: 0; }

/* ---------- Utilities ---------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--s-1); }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-6 { gap: var(--s-6); }
.grow { flex: 1; }
.hidden { display: none !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Scrollbar — thin gold on dark */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--r-full);
}
*::-webkit-scrollbar-thumb:hover { background: var(--gold-tint-40); }
