/* RL TOPO — Reset + base typography */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 var(--s-4);
}
h1 { font-size: var(--fs-4xl); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: var(--fs-xl); }
p { margin: 0 0 var(--s-4); color: var(--mute); max-width: 70ch; }
ul { margin: 0; padding: 0; list-style: none; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Skip link */
.skip {
  position: absolute; top: -100px; left: 0;
  padding: var(--s-3) var(--s-5);
  background: var(--primary); color: #fff; z-index: 999;
}
.skip:focus { top: 0; }

/* Selection + focus */
::selection { background: var(--primary); color: #fff; }
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

section { position: relative; padding: clamp(60px, 8vw, 110px) 0; }
