/* ============================================================
   BASE — Reset, Typography, Utilities, Scrollbar
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-silver-light);
  background-color: var(--color-obsidian);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-obsidian-100);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold-muted);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold-muted) var(--color-obsidian-100);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-foreground);
  letter-spacing: -0.01em;
}

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

p {
  line-height: 1.75;
  color: var(--color-silver-muted);
}

strong {
  font-weight: 600;
  color: var(--color-silver-light);
}

/* ── Utility Classes ── */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.section--alt {
  background-color: var(--color-obsidian-100);
}

.section-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--color-foreground);
  margin-bottom: var(--space-md);
  line-height: 1.15;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-silver-muted);
  max-width: 560px;
  line-height: 1.75;
}

.text-gold { color: var(--color-gold); }
.text-gold-light { color: var(--color-gold-light); }
.text-silver { color: var(--color-silver); }
.text-muted { color: var(--color-silver-muted); }
.text-center { text-align: center; }

.gold-rule {
  border: none;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  margin: 0;
}

/* ── Display Font ── */
.display-text {
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: 0.02em;
}

/* ── Serif Italic Pull Quote ── */
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-gold-pale);
  border-left: 2px solid var(--color-gold);
  padding-left: 1.5rem;
  margin: var(--space-lg) 0;
}

/* ── Badge / Tag ── */
.tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid rgba(201, 168, 76, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

/* ── Grid System ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
}

/* ── Visually Hidden (accessibility) ── */
.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;
}

/* ── Skip to Main (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-gold);
  color: var(--color-obsidian);
  padding: 0.5rem 1rem;
  z-index: var(--z-max);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}
