/* ==========================================================================
   DM MARCONDES — BASE (reset, tipografia, utilitários)
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: var(--lh-heading);
  letter-spacing: -.015em;
  text-wrap: balance;
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -.025em;
}
.h2--light { color: var(--text-light); }

.h3 { font-size: var(--fs-h3); font-weight: 700; }

.h4 {
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: -.01em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text);
}

/* --- Rótulo mono: voz de log operacional -------------------------------- */
.eyebrow {
  margin: 0 0 var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sodium);
}
.eyebrow--light { color: var(--sodium-2); }

/* variante em pílula: usada em cabeçalho centralizado */
.eyebrow--pill {
  display: inline-block;
  padding: .35rem .8rem;
  border-radius: var(--r-pill);
  background: var(--sodium);
  letter-spacing: .1em;
  color: #fff;
}
.eyebrow.eyebrow--pill::before { content: none; }

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-right: .7em;
  vertical-align: .32em;
  background: currentColor;
}

/* --- Layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--paper     { background: var(--paper); }
.section--paper-alt { background: var(--paper-3); }
.section--ink       { background: var(--ink); color: var(--text-light); }
.section--ink p     { color: var(--muted-light); }

.section__head { max-width: 48ch; margin-bottom: var(--s-9); }

/* impede quebra em "e-commerce" no hífen */
.nowrap { white-space: nowrap; }

/* --- Acessibilidade ----------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: var(--s-3) var(--s-5);
  background: var(--sodium);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { left: var(--s-4); top: var(--s-4); }

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

/* --- Revelação no scroll ------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

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