/* base.css — reset, tipografia base, accessibility */

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

* { margin: 0; padding: 0; }

html{
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body{
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  font-weight: 400;
  background: var(--ink);
  color: var(--paper);
  min-height: 100svh;
  overflow-x: hidden;
}

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

button,
input,
textarea,
select{
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

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

::selection{
  background: var(--paper);
  color: var(--ink);
}

/* ── tipografia editorial ──────────────────── */

h1, h2, h3, h4, h5{
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h1{
  font-size: var(--text-8xl);
  letter-spacing: -0.04em;
  line-height: 0.88;
}

h2{
  font-size: var(--text-7xl);
  letter-spacing: -0.03em;
}

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

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

p{
  max-width: 70ch;
}

/* ── utilidades ──────────────────────────── */

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

/* ── motion (skill exige reduced-motion) ─── */

@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── focus visível ────────────────────────── */

:focus-visible{
  outline: 2px solid var(--paper);
  outline-offset: 4px;
}
