/* ==========================================================================
   Base — Reset, typography, global elements
   ========================================================================== */

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
}

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

/* --- Typography --- */

h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-size: var(--text-hero);
  line-height: 1.1;
}

h2 {
  font-size: var(--text-h2);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-5);
  max-width: var(--body-max);
}

/* --- Links --- */

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: var(--weight-medium);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease-fast);
}

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

/* --- Lists --- */

ul, ol {
  padding-inline-start: var(--space-6);
  margin-bottom: var(--space-5);
}

li {
  margin-bottom: var(--space-2);
}

/* --- Monospace --- */

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

.rate {
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  font-size: 18px;
}

.ref-number {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--text-secondary);
}

/* --- Caption (uppercase label) --- */

.caption {
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

/* --- Utility --- */

.text-secondary {
  color: var(--text-secondary);
}

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

.text-center {
  text-align: center;
}

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