/* CocineroPeruano — tokens. Generado desde tokens.json (cocineroperuano/diseno/tema1). */
/* Fuentes servidas desde el propio hosting (fuentes/, OFL), sin Google Fonts. Solo el juego latino. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fuentes/fraunces-latin-wght-normal.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; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fuentes/atkinson-hyperlegible-latin-400-normal.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; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fuentes/atkinson-hyperlegible-latin-700-normal.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; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fuentes/lora-latin-400-italic.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; }

:root, [data-theme="light"] {
  --surface: #fffaf3;
  --surface-raised: #ffffff;
  --surface-sunken: #f6eee3;
  --line: #eadfce;
  --line-strong: #8e7a66;
  --ink: #241812;
  --ink-muted: #67544a;
  --terracota: #b00e14;
  --terracota-strong: #8a0b10;
  --terracota-soft: #fbe0de;
  --on-terracota: #ffffff;
  --ocre: #d4931a;
  --ocre-soft: #fdefc8;
  --focus: #8a0b10;
  --exito: #1d5f73;
  --exito-soft: #dcedf1;
  --error: #b3261e;
  --error-soft: #fbe3e0;
  --scrim: rgba(28,20,16,0.55);
  --visor-fondo: #120d0a;
  --on-visor: #f4ece2;
  --visor-boton: rgba(18,13,10,0.72);
  --visor-boton-hover: rgba(18,13,10,0.92);
  --visor-borde: rgba(244,236,226,0.45);
  --logo-plate: #ffffff;
  --logo-plate-oscuro: #1f1f1f;
  --link: var(--terracota);
  --header-bg: var(--surface-raised);
  --header-ink: var(--ink);
  --header-line: var(--line);
  --header-logo-accent: var(--terracota);
  --header-logo-flame: var(--ocre);
  --header-hover-ink: var(--terracota);
  --header-hover-bg: var(--surface-sunken);
  --header-active-bg: var(--terracota-soft);
  --header-active-ink: var(--terracota-strong);
  --header-focus: var(--focus);
  --footer-bg: var(--surface-sunken);
  --footer-ink: var(--ink);
  --footer-ink-muted: var(--ink-muted);
  --footer-line: var(--line);
  --footer-underline: var(--line-strong);
  --footer-logo-accent: var(--terracota);
  --footer-logo-flame: var(--ocre);
  --footer-hover-ink: var(--terracota);
  --footer-focus: var(--focus);
  --shadow-raised: 0 1px 2px rgba(36,24,18,0.08), 0 6px 16px rgba(36,24,18,0.07);
}

/* Oscuro: sigue la preferencia del sistema, salvo que el visitante haya elegido claro */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #1c1410;
    --surface-raised: #261c17;
    --surface-sunken: #140e0b;
    --line: #3d3029;
    --line-strong: #8f7b6b;
    --ink: #f7efe6;
    --ink-muted: #c9b6a6;
    --terracota: #ff8a7f;
    --terracota-strong: #ffb3aa;
    --terracota-soft: #4a1a17;
    --on-terracota: #1c1410;
    --ocre: #f0b43c;
    --ocre-soft: #3f2e10;
    --focus: #ffb3aa;
    --exito: #86c9dc;
    --exito-soft: #14323b;
    --error: #ff8f84;
    --error-soft: #44191a;
    --scrim: rgba(0,0,0,0.6);
    --visor-fondo: #0b0806;
    --on-visor: #f4ece2;
    --visor-boton: rgba(18,13,10,0.72);
    --visor-boton-hover: rgba(18,13,10,0.92);
    --visor-borde: rgba(244,236,226,0.45);
    --logo-plate: #ffffff;
    --logo-plate-oscuro: #1f1f1f;
    --link: var(--terracota);
    --header-bg: var(--surface-raised);
    --header-ink: var(--ink);
    --header-line: var(--line);
    --header-logo-accent: var(--terracota);
    --header-logo-flame: var(--ocre);
    --header-hover-ink: var(--terracota);
    --header-hover-bg: var(--surface-sunken);
    --header-active-bg: var(--terracota-soft);
    --header-active-ink: var(--terracota-strong);
    --header-focus: var(--focus);
    --footer-bg: var(--surface-sunken);
    --footer-ink: var(--ink);
    --footer-ink-muted: var(--ink-muted);
    --footer-line: var(--line);
    --footer-underline: var(--line-strong);
    --footer-logo-accent: var(--terracota);
    --footer-logo-flame: var(--ocre);
    --footer-hover-ink: var(--terracota);
    --footer-focus: var(--focus);
    --shadow-raised: 0 1px 2px rgba(0,0,0,0.5);
  }
}
[data-theme="dark"] {
  --surface: #1c1410;
  --surface-raised: #261c17;
  --surface-sunken: #140e0b;
  --line: #3d3029;
  --line-strong: #8f7b6b;
  --ink: #f7efe6;
  --ink-muted: #c9b6a6;
  --terracota: #ff8a7f;
  --terracota-strong: #ffb3aa;
  --terracota-soft: #4a1a17;
  --on-terracota: #1c1410;
  --ocre: #f0b43c;
  --ocre-soft: #3f2e10;
  --focus: #ffb3aa;
  --exito: #86c9dc;
  --exito-soft: #14323b;
  --error: #ff8f84;
  --error-soft: #44191a;
  --scrim: rgba(0,0,0,0.6);
  --visor-fondo: #0b0806;
  --on-visor: #f4ece2;
  --visor-boton: rgba(18,13,10,0.72);
  --visor-boton-hover: rgba(18,13,10,0.92);
  --visor-borde: rgba(244,236,226,0.45);
  --logo-plate: #ffffff;
  --logo-plate-oscuro: #1f1f1f;
  --link: var(--terracota);
  --header-bg: var(--surface-raised);
  --header-ink: var(--ink);
  --header-line: var(--line);
  --header-logo-accent: var(--terracota);
  --header-logo-flame: var(--ocre);
  --header-hover-ink: var(--terracota);
  --header-hover-bg: var(--surface-sunken);
  --header-active-bg: var(--terracota-soft);
  --header-active-ink: var(--terracota-strong);
  --header-focus: var(--focus);
  --footer-bg: var(--surface-sunken);
  --footer-ink: var(--ink);
  --footer-ink-muted: var(--ink-muted);
  --footer-line: var(--line);
  --footer-underline: var(--line-strong);
  --footer-logo-accent: var(--terracota);
  --footer-logo-flame: var(--ocre);
  --footer-hover-ink: var(--terracota);
  --footer-focus: var(--focus);
  --shadow-raised: 0 1px 2px rgba(0,0,0,0.5);
}

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 80px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-full: 9999px;
  --measure: 680px;
  --container: 1120px;
  --header-height: 64px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --font-display: Fraunces, Georgia, "Times New Roman", serif;
  --font-sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-verse: Lora, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* Estilos de texto (clases .t-*) */
.t-display { font-family: var(--font-display); font-size: 60px; line-height: 1.02; font-weight: 700; letter-spacing: -0.015em; }
.t-h1 { font-family: var(--font-display); font-size: 48px; line-height: 1.08; font-weight: 700; letter-spacing: -0.01em; }
.t-h2 { font-family: var(--font-display); font-size: 32px; line-height: 1.15; font-weight: 650; letter-spacing: -0.005em; }
.t-card-title { font-family: var(--font-display); font-size: 22px; line-height: 1.2; font-weight: 650; }
.t-step-number { font-family: var(--font-display); font-size: 22px; line-height: 1; font-weight: 700; }
.t-recipe { font-family: var(--font-sans); font-size: 20px; line-height: 32px; font-weight: 400; }
.t-h3 { font-family: var(--font-sans); font-size: 21px; line-height: 28px; font-weight: 700; }
.t-lead { font-family: var(--font-sans); font-size: 20px; line-height: 32px; font-weight: 400; }
.t-article { font-family: var(--font-sans); font-size: 18px; line-height: 30px; font-weight: 400; }
.t-label { font-family: var(--font-sans); font-size: 17px; line-height: 22px; font-weight: 700; }
.t-body { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400; }
.t-small { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 400; }
.t-verse { font-family: var(--font-verse); font-size: 19px; line-height: 32px; font-weight: 400; font-style: italic; }
