/* ============================================
   Aethon Typography
   Montserrat (display) + Inter (body) + DM Mono
   ============================================ */

/* Display – Headings, UI labels, buttons */
.text-display {
  font-family: var(--font-display);
  font-size: clamp(32px, 8.5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.0;
  color: var(--text-primary);
}

.text-h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 6.5vw, 40px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--text-primary);
}

.text-h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 30px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text-primary);
}

.text-h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 3.5vw, 22px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.25;
  color: var(--text-primary);
}

.text-h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.35;
  color: var(--text-primary);
}

/* Body – Inter */
.text-body-lg {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.text-body {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

.text-body-sm {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

/* UI Labels – Montserrat */
.text-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-caption {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
}

/* Mono */
.text-mono {
  font-family: var(--font-mono);
  font-size: 13px;
}

.text-mono-sm {
  font-family: var(--font-mono);
  font-size: 11px;
}

.text-code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Body Reset */
html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  background-color: var(--bg-base);
  margin: 0;
  padding: 0;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 0;
}

h1 { font-size: clamp(26px, 6.5vw, 40px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; }
h2 { font-size: clamp(20px, 5vw, 30px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
h3 { font-size: clamp(18px, 3.5vw, 22px); font-weight: 700; letter-spacing: -0.5px; line-height: 1.25; }
h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.35; }

p {
  margin: 0;
}

a {
  color: var(--amber);
  text-decoration: none;
}

a:hover {
  color: var(--amber-light);
}

::selection {
  background: var(--amber);
  color: var(--text-inverse);
}

/* Focus visible */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--amber-glow-sm);
  border-color: var(--amber);
}

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