:root {
  /* start.mjs brand con el tema claro del kit de marca: papel #ecebe7, tinta #18181b y el ámbar; el botón es tinta
     (el ámbar sobre papel no llega a 3:1) y vuelve a ser ámbar en la banda oscura y en el cierre */
  --p-bg: #ecebe7; --p-surface: #e0dfdb; --p-ink: #18181b; --p-muted: #5f5f60;
  --p-accent: #f2ae30; --p-accent-ink: #111111; --p-action: #18181b; --p-action-ink: #ecebe7;
  --p-inv-bg: #18181b; --p-inv-surface: #242427; --p-inv-ink: #ecebe7; --p-inv-muted: #939392;
  --p-inv-accent: #f2ae30; --p-inv-accent-ink: #111111; --p-inv-action: #f2ae30; --p-inv-action-ink: #111111;
  /* BRAND_KIT 3 */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.02em;
  --display-tracking-xl: -0.02em;
  --q-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --q-shadow: 0 0 0 1px rgb(9 9 11 / .12), 0 24px 48px -24px rgb(9 9 11 / .5);
}
/* tema oscuro: el negro y el oro de la marca (BRAND_KIT 2); el fondo «inverso» pasa a ser el papel del tema claro */
html[data-theme="dark"] {
  color-scheme: dark;
  --p-bg: #09090b; --p-surface: #18181b; --p-ink: #fafafa; --p-muted: #a1a1aa;
  --p-accent: #f2ae30; --p-accent-ink: #09090b; --p-action: #f2ae30; --p-action-ink: #09090b;
  --p-inv-bg: #ecebe7; --p-inv-surface: #e0dfdb; --p-inv-ink: #18181b; --p-inv-muted: #5f5f60;
  --p-inv-accent: #f2ae30; --p-inv-accent-ink: #111111; --p-inv-action: #18181b; --p-inv-action-ink: #ecebe7;
}
html:not([data-theme="dark"]) { color-scheme: light; }
/* el fondo de los marcos del producto: gris neutro de cada tema, sin el verde salvia del kit (pedido del 19-nov-2026).
   Va sobre las variables del kit, no sobre su archivo: html[data-ground] empata con html[data-ground="sage"] y gana por orden */
html[data-ground] { --ground-bg: #dddcd8; --ground-surface: #e6e5e1; --ground-ink: #18181b; --ground-muted: #5f5f60; --ground-accent: #8a8a86; }
html[data-theme="dark"][data-ground] { --ground-bg: #18181b; --ground-surface: #242427; --ground-ink: #fafafa; --ground-muted: #a1a1aa; --ground-accent: #52525b; }
/* Fraunces es ancha: en teléfono el titular de la portada baja un paso para que 40 caracteres quepan en dos líneas */
@media (max-width: 639px) { :root { --ly-scale: .85; } }
