/* Tokens de design do ChefClip (SPEC 5; valores da Fase 0, seção 8).
   Claro por padrão; escuro por prefers-color-scheme. */
:root {
  color-scheme: light dark;

  /* Marca */
  --brand: #FF6B35;            /* primária da UI; texto sobre ela: --on-brand */
  --on-brand: #1A1612;
  --brand-band: #E85D04;       /* faixa da marca (assinatura) */
  --brand-grad: linear-gradient(135deg, #FF6B35 0%, #E85D04 100%);
  --on-band: #1A1612;          /* texto sobre a faixa laranja (branco não passa AA) */
  --link: #C94D00;             /* laranja de texto e link */
  --link-2: #B84900;           /* link sobre --surface-2 e --warm-tint (C94D00 dá 4,2:1 ali) */
  --green: #2D6A4F;
  --gold: #C9871B;
  --warm-tint: #FFF1E8;        /* fundo da seção "warm" */

  /* Neutros */
  --bg: #FEFCFB;
  --surface: #FFFFFF;
  --surface-2: #F8F4F0;
  --text: #1A1612;
  --text-2: #5C544D;
  --border: #ECE6E0;
  --ink: #1A1612;              /* anel de foco e superfícies escuras fixas */
  --dark-bg: #100D0A;          /* seção "dark" (igual nos dois temas) */
  --dark-text: #F5F1EC;
  --dark-text-2: #C9C0B7;
  --on-dark-link: #FF7A48;

  /* Sombras quentes */
  --shadow-1: 0 1px 2px rgba(60, 40, 20, .04), 0 1px 1px rgba(60, 40, 20, .04);
  --shadow-2: 0 6px 16px rgba(60, 40, 20, .06), 0 2px 4px rgba(60, 40, 20, .04);
  --shadow-3: 0 24px 60px rgba(60, 40, 20, .12), 0 8px 20px rgba(60, 40, 20, .06);

  /* Raios */
  --r-1: 8px;
  --r-2: 12px;
  --r-3: 14px;
  --r-4: 16px;
  --r-5: 24px;
  --r-pill: 999px;

  /* Espaço */
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 128px);
  --maxw: 1200px;
  --maxw-text: 68ch;

  /* Tipografia */
  --font: "Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);   /* 40 a 72 px */
  --fs-h2: clamp(1.75rem, 1.3rem + 1.8vw, 3rem);
  --fs-h3: clamp(1.125rem, 1.05rem + .35vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.3125rem);
  --fs-body: 1rem;
  --fs-sm: .875rem;
  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-body: 1.6;

  /* Movimento */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 600ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #100D0A;
    --surface: #1B1714;
    --surface-2: #221C18;
    --text: #F5F1EC;
    --text-2: #C9C0B7;
    --border: #2A231E;
    --link: #FF7A48;
    --link-2: #FF7A48;
    --warm-tint: #1F1612;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-2: 0 6px 16px rgba(0, 0, 0, .35);
    --shadow-3: 0 24px 60px rgba(0, 0, 0, .5);
  }
}

:root[data-theme="dark"] {
  --bg: #100D0A;
  --surface: #1B1714;
  --surface-2: #221C18;
  --text: #F5F1EC;
  --text-2: #C9C0B7;
  --border: #2A231E;
  --link: #FF7A48;
  --link-2: #FF7A48;
  --warm-tint: #1F1612;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 6px 16px rgba(0, 0, 0, .35);
  --shadow-3: 0 24px 60px rgba(0, 0, 0, .5);
}
/* Reset, tipografia e utilitários mínimos. Tokens em tokens.css. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2-variations"), url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2-variations"), url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, picture { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }
:target { scroll-margin-top: 80px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; line-height: var(--lh-snug); }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: var(--fs-lead); color: var(--text-2); line-height: 1.5; max-width: 52ch; }
.eyebrow {
  display: inline-block; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--link);
}

/* Reduzir movimento: a rolagem suave sai; as transições de hover e de abertura têm override em cada componente
   (PlayBadge, RelatedCards, FaqItem, Button) e em motion.css (reveal). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Foco: anel triplo branco + #1A1612 + branco, visível em qualquer fundo */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid transparent; /* aparece no modo de alto contraste */
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1A1612, 0 0 0 6px #fff;
  border-radius: var(--r-1);
}

/* Utilitários mínimos */
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.prose { max-width: var(--maxw-text); }
.prose > * + * { margin-top: 1em; }
.stack > * + * { margin-top: var(--stack, 1rem); }
.sr-only {
  position: absolute; 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; left: 12px; top: -64px; z-index: 100; padding: 10px 16px;
  background: var(--ink); color: #fff; border-radius: var(--r-2); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Grão sutil em SVG inline (data URI; CSP libera img-src data:) */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

@media (forced-colors: active) {
  :focus-visible { outline: 3px solid CanvasText; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
