:root {
  --color-paper: #eeece5;
  --color-ink: #343630;
  --color-secondary: #929187;
  --color-rules: #d5d2c9;
  --color-hover: rgba(52, 54, 48, 0.04);
  --color-focus: rgba(52, 54, 48, 0.35);

  --font-editorial: "Barlow Condensed", "Roboto Condensed",
    "IBM Plex Sans Condensed", "Liberation Sans Narrow", "Arial Narrow",
    system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "IBM Plex Mono", "Roboto Mono", "SF Mono",
    "Liberation Mono", Consolas, monospace;

  --page-max-width: 1040px;
  --page-gutter: clamp(16px, 5vw, 72px);
  --page-pad-top: clamp(20px, 4vw, 56px);
  --page-pad-bottom: clamp(28px, 5vw, 64px);
  --section-gap: clamp(24px, 4.5vw, 52px);

  --size-temperature: clamp(2.25rem, 3.2vw, 2.75rem);
  --size-headline: 1.125rem;
  --size-summary: 0.9375rem;
  --size-city: 0.8125rem;
  --size-meta: 0.75rem;

  --diorama-width: 148px;
  --diorama-height: 124px;
  --diorama-gap: 28px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-paper: #242622;
    --color-ink: #e4e2d9;
    --color-secondary: #999a90;
    --color-rules: #41433d;
    --color-hover: rgba(228, 226, 217, 0.05);
    --color-focus: rgba(228, 226, 217, 0.35);
  }
}

/* Override de prototipagem (?preview=1&theme=...) */
:root[data-theme="light"] {
  --color-paper: #eeece5;
  --color-ink: #343630;
  --color-secondary: #929187;
  --color-rules: #d5d2c9;
  --color-hover: rgba(52, 54, 48, 0.04);
  --color-focus: rgba(52, 54, 48, 0.35);
}

:root[data-theme="dark"] {
  --color-paper: #242622;
  --color-ink: #e4e2d9;
  --color-secondary: #999a90;
  --color-rules: #41433d;
  --color-hover: rgba(228, 226, 217, 0.05);
  --color-focus: rgba(228, 226, 217, 0.35);
}
