/* Variáveis de design + reset mínimo */

:root {
  /* Paleta — não alterar sem pedido explícito */
  --paper: #F1ECE2;
  --paper-2: #E7E0CE;
  --ink: #171310;
  --ink-soft: #625646;
  --rule: #D8CFBE;
  --accent: #6B3D4B;
  --accent-deep: #4E2A38;

  /* Acento legível sobre fundo --ink (WCAG AA em texto grande) */
  --accent-on-ink: #D2A3AF;
  --rule-on-ink: #2E2824;
  --label-on-ink: #C9BDB0;

  /* Tipo */
  --font-serif: "Fraunces", "Times New Roman", serif;
  --font-sans: "Inter Tight", system-ui, sans-serif;

  /* Escala tipográfica */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-body: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.5rem;
  --fs-xl: 2rem;
  --fs-display: clamp(3rem, 9vw, 6.5rem);

  /* Espaço */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;

  /* Layout */
  --wrap: 68rem;
  --gutter: 1.25rem;
  --measure: 38rem;
  --nav-h: 3.75rem;
  --reel-ratio: 9 / 16;
  --portrait-ratio: 4 / 5;

  /* Interacção */
  --ease: 160ms ease;
  --focus-ring: 2px solid var(--accent);
  --focus-offset: 3px;
}

@media (min-width: 640px) {
  :root {
    --gutter: 1.75rem;
  }
}

@media (min-width: 960px) {
  :root {
    --gutter: 2rem;
  }
}

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

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

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

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input {
  font: inherit;
  color: inherit;
}

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

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

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

[hidden] {
  display: none !important;
}
