/* ============================================================
   BASE — Typography, global elements, document defaults
   ============================================================ */

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------------------------
   Headings
---------------------------------------------------------- */

h1 {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.15;
}

h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.25;
}

h4 {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h5 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ----------------------------------------------------------
   Body text
---------------------------------------------------------- */

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ----------------------------------------------------------
   Links
---------------------------------------------------------- */

a {
  transition: color var(--transition-fast);
}

a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ----------------------------------------------------------
   Section eyebrow / label style
---------------------------------------------------------- */

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-amber);
  margin-bottom: var(--space-sm);
}

/* ----------------------------------------------------------
   Arrow link
---------------------------------------------------------- */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.link-arrow:hover {
  color: var(--color-primary-dark);
  gap: var(--space-sm);
}

/* ----------------------------------------------------------
   Horizontal rule
---------------------------------------------------------- */

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-2xl) 0;
}

/* ----------------------------------------------------------
   Selection
---------------------------------------------------------- */

::selection {
  background: var(--color-primary);
  color: white;
}
