/* Fontes, tokens de design, reset e tipografia partilhada por toda a página */

/* ---- Fonts (auto-hospedadas, sem CDN) ---- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-v9-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-v9-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-v9-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-v9-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens ---- */
:root {
  /* base */
  --bg: #fbf9f3;
  --surface: #ede7d6;
  --ink: #12110e;
  --ink-muted: #5a5850;
  --white: #ffffff;
  --border: rgba(18, 17, 14, 0.1);

  /* acento da marca — o "3" do wordmark, o CTA principal do hero, os pontos dos bullets */
  --accent: oklch(0.66 0.16 32);

  /* sabores — sistema sensorial OKLCH */
  --pina: oklch(0.86 0.12 62); /* Sweet/Fruit */
  --sunrise: oklch(0.72 0.19 46); /* Sweet/Fruit */
  --beach: oklch(0.68 0.18 32); /* Sweet/Fruit */
  --blend: oklch(0.88 0.12 74); /* Sweet/Fruit — banana */
  --mule: oklch(0.8 0.16 128); /* Fresh/Citrus */
  --mojito: oklch(0.84 0.15 142); /* Fresh/Citrus */
  --mai: oklch(0.63 0.15 258); /* Dark/Alcohol */
  --liit: oklch(0.5 0.16 278); /* Dark/Alcohol */

  /* type */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* rhythm */
  --gap: 16px;
  --radius: 18px;
  --section-pad: 48px;
  --max-width: 1160px;
}

@media (min-width: 860px) {
  :root {
    --section-pad: 80px;
  }
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
button {
  font: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-pad) 0;
  scroll-margin-top: 84px;
}
.section--surface {
  background: var(--surface);
}

h1,
.h1,
h2,
.h2,
h3,
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h1 {
  font-size: clamp(2.25rem, 8vw, 3.75rem);
  font-weight: 800;
  white-space: pre-line;
}
.h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}
.h3 {
  font-size: 1.25rem;
}

.lede {
  font-size: 1.0625rem;
  color: var(--ink-muted);
}

/* Sempre que "BL3ND" é escrito via JS (utils.js → wordmark()), o "3" usa isto */
.wordmark-accent {
  color: var(--accent);
}
