/* ============================================================
   LATENTE — Base Styles
   Reset, typography defaults, and global element styles.
   No component-specific or layout-specific rules here.
   ============================================================ */

/* ----------------------------------------------------------
   SKIP LINK — accessibility, keyboard users only
---------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-obsidiana);
  color: var(--color-hueso);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}

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

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

ul,
ol {
  list-style: none;
}

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

/* ----------------------------------------------------------
   TYPOGRAPHY — GLOBAL
---------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-snug);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5,
h6 {
  font-size: var(--text-lg);
}

p {
  line-height: var(--leading-normal);
}

/* Label / UI text utility */
.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

/* Accent stamp — light, wide-tracked display */
.stamp {
  font-family: var(--font-display);
  font-weight: 200;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   FOCUS STYLES — Accessible keyboard navigation
---------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-arena);
  outline-offset: 3px;
}

/* ----------------------------------------------------------
   SELECTION
---------------------------------------------------------- */
::selection {
  background-color: var(--color-arena);
  color: var(--color-obsidiana);
}

/* ----------------------------------------------------------
   RESPONSIVE TYPE — scale down on mobile
---------------------------------------------------------- */
@media (max-width: 768px) {
  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  h3 {
    font-size: var(--text-xl);
  }
}
