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

html { scroll-behavior: auto; }

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

img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--accent); color: var(--bg); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent-deep); }

p { max-width: var(--measure); }

.container {
  width: var(--container);
  margin-inline: auto;
}

.section__label {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  margin-bottom: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.section__label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-lg);
  max-width: 20ch;
}

/* Custom cursor (apenas desktop) */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: transform 0.18s var(--ease-out), opacity 0.18s;
  z-index: 9999;
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot { opacity: 1; }
  body { cursor: none; }
  a, button { cursor: none; }
  .cursor-dot.is-hover {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--accent);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .cursor-dot { display: none; }
}
