:root {
  /* Color */
  --amc-abeto: #23403D;
  --amc-abeto-prof: #162A28;
  --amc-hueso: #F2EFE9;
  --amc-grafito: #1E2326;
  --amc-ambar: #D9A441;
  --amc-ambar-tinta: #85590E;
  --amc-glaciar: #8DB8B5;
  --amc-niebla: #D5DAD6;
  --amc-alba: #E8CDBE;

  /* Semánticos (modo claro) */
  --bg: var(--amc-hueso);
  --bg-alt: var(--amc-niebla);
  --surface-inverse: var(--amc-abeto);
  --text: var(--amc-grafito);
  --text-muted: #4B5A58;           /* 6.9:1 sobre Hueso */
  --text-inverse: var(--amc-hueso);
  --brand: var(--amc-abeto);
  --accent: var(--amc-ambar);       /* solo sobre fondos oscuros */
  --accent-text: var(--amc-ambar-tinta); /* acento legible sobre fondos claros */
  --line: rgba(30, 35, 38, .16);
  --focus: var(--amc-ambar-tinta);

  /* Tipografía */
  --font-display: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --font-text: "Newsreader", "Georgia", "Times New Roman", serif;
  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-base: 1.125rem; --fs-lg: 1.375rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --fs-2xl: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
  --fs-3xl: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  --fs-4xl: clamp(2.75rem, 1.4rem + 5vw, 5.5rem);
  --lh-tight: 1.08; --lh-snug: 1.25; --lh-body: 1.6;

  /* Espaciado (base 4 px) */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem; --sp-9: 7rem;

  /* Forma: ángulos secos como las montañas del logotipo */
  --radius-0: 0; --radius-1: 2px; --radius-2: 4px;
  --measure: 62ch; --container: 1240px; --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.2, .6, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: var(--amc-abeto-prof); --bg-alt: var(--amc-abeto); --text: var(--amc-hueso);
    --text-muted: #B9C5C2; --brand: var(--amc-hueso); --accent-text: var(--amc-ambar);
    --line: rgba(242, 239, 233, .18); --focus: var(--amc-ambar);
  }
}
:root[data-theme="dark"] {
  --bg: var(--amc-abeto-prof); --bg-alt: var(--amc-abeto); --text: var(--amc-hueso);
  --text-muted: #B9C5C2; --brand: var(--amc-hueso); --accent-text: var(--amc-ambar);
  --line: rgba(242, 239, 233, .18); --focus: var(--amc-ambar);
}
/* Atmósferas por serie: cambian solo el acento, nunca la estructura */
[data-serie="paisaje"]    { --serie: var(--amc-glaciar); }
[data-serie="astropaisaje"] { --serie: var(--amc-abeto-prof); }
[data-serie="bodas"]      { --serie: var(--amc-alba); }
