/* ============================================================
   LIOST — base: reset, fontes, tipografia raiz
   ============================================================ */

/* ---- Walkway (display, local) ---- */
@font-face {
  font-family: "Walkway";
  src: url("../assets/fonts/walkway/Walkway SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Walkway";
  src: url("../assets/fonts/walkway/Walkway Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Walkway";
  src: url("../assets/fonts/walkway/Walkway UltraBold.ttf") format("truetype");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Walkway";
  src: url("../assets/fonts/walkway/Walkway Black.ttf") format("truetype");
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--w-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: var(--w-bold);
  line-height: var(--lh-tight);
  letter-spacing: 2px;   /* Walkway pede respiro: as letras vêm muito coladas */
  text-wrap: balance;
}
p { text-wrap: pretty; }

::selection { background: var(--violeta); color: #17131f; }

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

.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;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--limao); color: #1c220c; padding: 12px 18px;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---- utilitários ---- */
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }

.section { padding-block: var(--section-y); position: relative; }
:where(section[id]) { scroll-margin-top: 84px; }

/* tema claro por seção: redefine os tokens no escopo, não remenda
   elemento por elemento (senão --ink-dim/--line vazam do tema escuro) */
.paper {
  background: var(--paper-bg);
  color: var(--paper-ink);
  --ink: var(--paper-ink);
  --ink-dim: var(--paper-dim);
  --ink-mute: var(--paper-mute);
  --line: var(--paper-line);
  --focus: #1F1E25;
}
.paper .section__intro, .paper .big-p { color: var(--paper-dim); }
.paper .kicker { color: var(--paper-mute); }

/* reveal (progressivo, seguro: conteúdo visível por padrão) */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
