/* ---------------------------------------------------------------------------
   Restau360 · base — fontes, reset, tipografia e primitivas de layout
   --------------------------------------------------------------------------- */

/* ---- fontes auto-hospedadas (K: nada de CDN de terceiros) ---------------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Métricas de fallback: evita CLS enquanto a fonte carrega. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 98%;
  ascent-override: 96%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  font-feature-settings: "cv05" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

a {
  color: inherit;
  text-decoration-color: color-mix(in oklab, currentColor 35%, transparent);
  text-underline-offset: 0.22em;
  transition: color var(--duration-fast) ease, text-decoration-color var(--duration-fast) ease;
}
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--brand-deep);
  outline-offset: 3px;
  border-radius: 3px;
}
.on-ink :focus-visible { outline-color: var(--brand-bright); }

/* ---- tipografia ---------------------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-stretch: 108%;
  text-wrap: balance;
}

h1 { font-size: var(--text-hero); font-weight: 800; letter-spacing: -0.042em; }
h2 { font-size: var(--text-h2); letter-spacing: -0.035em; }
h3 { font-size: var(--text-h3); line-height: 1.18; letter-spacing: -0.02em; font-stretch: 104%; }

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  font-stretch: 82%;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 1rem;
}
.on-ink .eyebrow { color: var(--brand-bright); }

.lead {
  font-size: var(--text-lead);
  color: var(--text-muted);
  max-width: var(--measure);
  text-wrap: pretty;
}
.on-ink .lead { color: var(--text-on-ink-muted); }

.hl { color: var(--brand-deep); }
.on-ink .hl { color: var(--brand-bright); }
.hl-ember { color: var(--ember-deep); }
.on-ink .hl-ember { color: var(--ember); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.82em;
  letter-spacing: -0.01em;
}

/* ---- layout -------------------------------------------------------------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: calc(var(--space-section) * 0.62); }

.on-ink {
  background: var(--ink-900);
  color: var(--text-on-ink-muted);
  position: relative;
  isolation: isolate;
}
.on-ink::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.28;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}
.on-ink h1, .on-ink h2, .on-ink h3, .on-ink h4 { color: var(--text-on-ink); }

.section-head { max-width: 46rem; }
.section-head .lead { margin-top: 1.25rem; }

.split {
  display: grid;
  gap: var(--space-block) clamp(2rem, 5vw, 5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .split--editorial { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink-900);
  color: var(--text-on-ink);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: top var(--duration-fast) ease;
}
.skip-link:focus { top: 1rem; }

/* ---- movimento ----------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
