/* ==========================================================================
   Base: reset enxuto, tipografia, layout e utilitários.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

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

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

::selection {
  background: var(--olive-200);
  color: var(--brown-900);
}

/* Tipografia ------------------------------------------------------------- */

.display,
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: var(--track-tight);
  text-wrap: balance;
  color: var(--text);
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
}

/* A ênfase dos títulos não é itálico: a Bricolage não tem itálico e o oblíquo
   sintético fica sujo. A palavra-chave muda de cor e ganha o traço orgânico. */
h1 em,
h2 em,
.display em {
  font-style: normal;
  font-weight: 500;
  color: var(--primary);
}

.theme-dark h1 em,
.theme-dark h2 em,
.theme-dark .display em {
  color: var(--olive-300);
}

.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: var(--sp-5);
  text-wrap: balance;
}

.eyebrow::before {
  content: "";
  flex: none;
  margin-top: 0.62em;
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text);
  max-width: 38ch;
  text-wrap: pretty;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: var(--fs-small);
}

.prose p + p {
  margin-top: var(--sp-4);
}

h1 + .lead,
h2 + .lead,
h2 + .prose,
h2 + p {
  margin-top: var(--sp-5);
}

.prose {
  max-width: var(--measure);
  text-wrap: pretty;
}

.quote {
  font-family: var(--font-display);
  font-size: var(--fs-display-quote);
  font-weight: 450;
  line-height: 1.35;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

/* Layout ----------------------------------------------------------------- */

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

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

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--sm {
  padding-block: var(--section-y-sm);
}

.section__head {
  max-width: 42rem;
  margin-bottom: var(--sp-9);
}

.section__head .lead {
  margin-top: var(--sp-5);
}

.grid {
  display: grid;
  gap: var(--sp-6);
}

@media (min-width: 64rem) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

.stack > * + * {
  margin-top: var(--sp-4);
}

.hairline {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 0;
}

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

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  padding: var(--sp-3) var(--sp-5);
  background: var(--brown-900);
  color: var(--beige-200);
  font-weight: 500;
  transform: translateY(-120%);
  transition: transform var(--dur-fast) var(--ease-out);
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Imagens ----------------------------------------------------------------- */

.pic {
  position: relative;
  overflow: hidden;
  height: 100%;
  background: var(--beige-200);
}

.pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pic--rounded {
  border-radius: var(--r-lg);
}

.pic--rounded-md {
  border-radius: var(--r-md);
}

/* Ícones ------------------------------------------------------------------ */

.icon {
  width: 1.375rem;
  height: 1.375rem;
  flex: none;
  stroke-width: 1.5;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 1.125rem;
  height: 1.125rem;
}

.icon--lg {
  width: 1.75rem;
  height: 1.75rem;
}

/* Reveal (estado inicial controlado por JS; sem JS, tudo visível) ---------- */

.js [data-reveal],
.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}

.js.no-motion [data-reveal],
.js.no-motion [data-reveal-group] > *,
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal-group] > * {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
