/* ─── Base & Reset ────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--text-base);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ─── Utility ─────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.gold { color: var(--color-gold); }
.faint { color: var(--color-text-faint); }
.mono { font-family: var(--font-mono); }

/* ─── Section layout ─────────────────────────────────────────────────────── */

.section {
  padding-block: var(--space-24);
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--color-gold-dim);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-text);
  letter-spacing: var(--tracking-tight);
}

.section-rule {
  width: 3rem;
  height: 1px;
  background: var(--color-gold);
  margin-top: var(--space-4);
  opacity: 0.6;
}

/* ─── Gold rule divider ───────────────────────────────────────────────────── */

.gold-rule {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold) 30%, var(--color-gold) 70%, transparent);
  opacity: 0.2;
  margin-block: var(--space-24);
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75em 2em;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  border: 1px solid currentColor;
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.btn-gold {
  color: var(--color-gold);
  border-color: var(--color-gold-dim);
}
.btn-gold:hover {
  background: var(--color-gold);
  color: var(--color-bg);
  border-color: var(--color-gold);
}

.btn-ghost {
  color: var(--color-text-mid);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  color: var(--color-text);
  border-color: var(--color-border-mid);
}

/* ─── Card base ───────────────────────────────────────────────────────────── */

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color var(--dur-mid) var(--ease-out);
}
.card:hover {
  border-color: var(--color-border-mid);
}

/* ─── Scrollbar ───────────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-text-faint); border-radius: 2px; }

/* ─── Focus ───────────────────────────────────────────────────────────────── */

:focus-visible {
  outline: 1px solid var(--color-gold);
  outline-offset: 3px;
}

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