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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.9;
  font-feature-settings: "palt" 1;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--carbon-black);
  color: var(--paper-white);
  padding: var(--sp-2) var(--sp-4);
  z-index: 100;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-2); }

/* ─── Tipografía estructural ───────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid currentColor;
  display: inline-block;
}
.section-title--sub {
  font-size: var(--text-heading-sm);
  border-bottom-width: 1px;
}

.page-title {
  font-family: var(--font-mincho);
  font-size: var(--text-heading);
  font-weight: 700;
  margin-bottom: var(--sp-5);
}

.empty { color: var(--fg-muted); }

@media (max-width: 720px) {
  :root {
    --text-heading: 28px;
    --text-heading-sm: 21px;
    --text-body: 15.5px;
  }
  body { line-height: 1.85; }
  .wrap { padding-inline: var(--sp-4); }
}
