/* ==========================================================================
   Anglicanismo.com — welcome page and resources
   Single stylesheet. Mobile-first. No inline styles anywhere (strict CSP).
   Brand: Anglicanismo purple (#5B2D5E), Rosarivo (the typeface of the logo's
   wordmark) for headings, Vollkorn for text, a warm light paper. Method of
   librodeoracioncomun.com: flat colour, hairline rules, 2px corners, no
   gradients and no shadows on content.
   ========================================================================== */

/* ---- Fonts (self-hosted, SIL OFL) ----
   Vollkorn: text and UI. Rosarivo: headings and the wordmark. Rosarivo carries
   Reserved Font Names, so it ships unmodified (only rewrapped as WOFF2). */
@font-face {
  font-family: "Vollkorn";
  src: url("../fonts/vollkorn-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vollkorn";
  src: url("../fonts/vollkorn-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Vollkorn";
  src: url("../fonts/vollkorn-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rosarivo";
  src: url("../fonts/rosarivo-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched local fallbacks (values from librodeoracioncomun.com's
   build_fonts.py): the swap to the web fonts causes no layout shift. */
@font-face {
  font-family: "Vollkorn Fallback";
  src: local("Georgia");
  font-weight: 400 700;
  size-adjust: 97.46%;
  ascent-override: 97.68%;
  descent-override: 45.25%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Vollkorn Fallback Noto";
  src: local("Noto Serif"), local("NotoSerif-Regular");
  font-weight: 400 700;
  size-adjust: 90.81%;
  ascent-override: 104.84%;
  descent-override: 48.56%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Rosarivo Fallback";
  src: local("Georgia");
  font-weight: 400;
  size-adjust: 106.34%;
  ascent-override: 92.06%;
  descent-override: 39.87%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Rosarivo Fallback Noto";
  src: local("Noto Serif"), local("NotoSerif-Regular");
  font-weight: 400;
  size-adjust: 99.08%;
  ascent-override: 98.81%;
  descent-override: 42.79%;
  line-gap-override: 0%;
}

/* ---- Tokens ---- */
:root {
  /* Warm light paper; the alternate band is the brand cream (#f4f0e9) */
  --color-bg: #fbf9f5;
  --color-bg-alt: #f4f0e9;
  --color-surface: #ffffff;
  --color-ink: #211b20;          /* 16.1:1 on --color-bg */
  --color-ink-muted: #5c5459;    /* 7.0:1 on --color-bg, 6.5:1 on --color-bg-alt */
  --color-line: rgba(33, 27, 32, 0.14);
  --color-line-strong: rgba(33, 27, 32, 0.3);

  /* Brand purple (project norm #5B2D5E) */
  --color-morado: #5b2d5e;       /* 10.1:1 on --color-bg; white on it 10.6:1 */
  --color-morado-deep: #451f48;  /* hover and pressed */
  --color-morado-tint: #efe6ee;
  --color-selection: rgba(91, 45, 94, 0.18);

  /* Content on the flat purple bands */
  --color-on-morado: #ffffff;
  --color-on-morado-muted: rgba(255, 255, 255, 0.86);  /* 8.3:1 on --color-morado */
  --color-on-morado-line: rgba(255, 255, 255, 0.32);
  --color-on-morado-border: rgba(255, 255, 255, 0.82);
  --color-on-morado-hover: rgba(255, 255, 255, 0.12);

  /* Liturgical colour of the season: a thin rule only (never text).
     tiempo.js sets html[data-tiempo]; without JS it stays purple. */
  --color-tiempo: var(--color-morado);

  --font-text: "Vollkorn", "Vollkorn Fallback", "Vollkorn Fallback Noto", Georgia, "Times New Roman", serif;
  --font-display: "Rosarivo", "Rosarivo Fallback", "Rosarivo Fallback Noto", Georgia, "Times New Roman", serif;

  --measure: 38rem;
  --width: 72rem;
  --gutter: 1rem;
  --radius: 2px;

  --focus: var(--color-morado);
}
/* Liturgical colours (decorative rules; values chosen to read on the paper) */
:root[data-tiempo="morado"] { --color-tiempo: #5b2d5e; }
:root[data-tiempo="blanco"] { --color-tiempo: #a8863a; }  /* white feasts: gold */
:root[data-tiempo="rojo"]   { --color-tiempo: #9b1b22; }
:root[data-tiempo="verde"]  { --color-tiempo: #3f6b46; }

/* ---- Base ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
@media (min-width: 40rem) {
  body { font-size: 1.125rem; }
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
cite { font-style: italic; }
strong { font-weight: 600; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.15; }

a { color: var(--color-morado); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
main[tabindex="-1"]:focus { outline: none; }

::selection { background: var(--color-selection); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.saltar {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-morado);
  color: var(--color-on-morado);
  text-decoration: none;
}
.saltar:focus { top: 0.5rem; }

/* Small label above a heading: an italic running head */
.cornisa {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--color-ink-muted);
}

/* ---- Buttons: rectangular, flat, 48px tall ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primario { background: var(--color-morado); border-color: var(--color-morado); color: var(--color-on-morado); }
.btn-primario:hover { background: var(--color-morado-deep); border-color: var(--color-morado-deep); }
.btn-secundario { background: transparent; border-color: var(--color-morado); color: var(--color-morado); }
.btn-secundario:hover { background: var(--color-morado-tint); }
/* Pending (not a link yet): dashed outline, muted text, no pointer */
.btn-apagado {
  background: transparent;
  border: 1px dashed var(--color-line-strong);
  color: var(--color-ink-muted);
  font-weight: 400;
  cursor: default;
}
.btn-chico { min-height: 44px; padding: 0.45rem 1rem; font-size: 0.95rem; }

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.acciones .btn { flex: 1 1 14rem; }

/* A text link with a 44px tap area, for secondary actions */
.enlace {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* ---- Header ---- */
.cabezal {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  box-shadow: 0 1px 0 var(--color-line);
}
.cabezal__fila {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(var(--width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0.5rem var(--gutter);
}
.marca {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  margin-right: auto;
  color: var(--color-morado);
  text-decoration: none;
}
.marca__simbolo { width: 30px; height: 30px; flex: none; }
.marca__texto {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.1;
  white-space: nowrap;
}
.menu { display: none; }
.menu ul { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  white-space: nowrap;
  color: var(--color-ink);
  font-size: 0.98rem;
  text-decoration: none;
}
.menu a:hover,
.menu a[aria-current="page"] { color: var(--color-morado); text-decoration: underline; }
.cabezal .btn-chico { white-space: nowrap; }
/* The menu shows from 46rem; below it, the hero carries an index of the page
   (.hero__indice) and the header keeps only the call to action. */
@media (min-width: 46rem) {
  .menu { display: block; }
}
@media (min-width: 46rem) and (max-width: 63.99rem) {
  .cabezal__fila { gap: 0.5rem; }
  .marca__texto { font-size: 1.05rem; }
  .menu ul { gap: 0; }
  .menu a { padding: 0 0.4rem; font-size: 0.92rem; }
}
/* Very small phones: the wordmark gives way to the call to action */
@media (max-width: 21.5rem) {
  .cabezal__fila { gap: 0.5rem; }
  .marca__texto { font-size: 1.05rem; }
  .cabezal .btn-chico { padding-left: 0.75rem; padding-right: 0.75rem; }
}

/* ---- Sections ---- */
/* Anchors and keyboard focus land below the sticky header */
html { scroll-padding-top: 4.5rem; }

.seccion {
  padding: clamp(3.25rem, 8vw, 5.5rem) var(--gutter);
}
/* Every block starts at the left edge of the 72rem column */
.seccion > * {
  max-width: var(--bloque, var(--width));
  margin-left: max(0px, calc((100% - var(--width)) / 2));
  margin-right: auto;
}
.seccion--papel { background-color: var(--color-bg-alt); }

.encabezado {
  --bloque: 40rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.encabezado h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.25rem + 2.2vw, 2.6rem);
  line-height: 1.12;
  text-wrap: balance;
}
.subtitulo {
  margin: 0.6rem 0 0;
  font-size: 1.02em;
  color: var(--color-ink-muted);
  text-wrap: pretty;
}

/* ---- Purple bands ---- */
.seccion--morada {
  background-color: var(--color-morado);
  color: var(--color-on-morado);
  --focus: var(--color-on-morado);
}
.seccion--morada .cornisa,
.seccion--morada .subtitulo { color: var(--color-on-morado-muted); }
.seccion--morada a:not(.btn) { color: var(--color-on-morado); }
.seccion--morada .btn-primario { background: var(--color-on-morado); border-color: var(--color-on-morado); color: var(--color-morado); }
.seccion--morada .btn-primario:hover { background: var(--color-morado-tint); border-color: var(--color-morado-tint); }
.seccion--morada .btn-secundario { background: transparent; border-color: var(--color-on-morado-border); color: var(--color-on-morado); }
.seccion--morada .btn-secundario:hover { background: var(--color-on-morado-hover); }
.seccion--morada .lista-filete li { border-top-color: var(--color-on-morado-line); }
.seccion--morada .lista-filete__nota { color: var(--color-on-morado-muted); }

/* ---- Hero ---- */
/* Mobile first: title with the symbol beside it, then the text and the two
   calls to action, all inside a 360x640 screen. */
.hero {
  padding: clamp(1.5rem, 6vw, 4.5rem) var(--gutter) clamp(2.25rem, 6vw, 4rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "simbolo" "titulo" "texto";
  row-gap: 1.1rem;
  align-items: center;
  max-width: var(--width);
  margin: 0 auto;
}
.hero__titulo { grid-area: titulo; }
.hero__simbolo { grid-area: simbolo; width: clamp(4.5rem, 20vw, 7rem); height: auto; }
.hero__texto { grid-area: texto; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 1.2rem + 5vw, 4.4rem);
  overflow-wrap: normal;  /* never split the brand name */
  line-height: 1.02;
  color: var(--color-morado);
}
.hero__lema {
  margin: 0.5rem 0 0;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--color-ink-muted);
  text-wrap: balance;
}
/* The thin rule in the colour of the liturgical season */
.filete {
  display: block;
  width: 3.5rem;
  height: 3px;
  margin: 1rem 0 0;
  background: var(--color-tiempo);
}
.hero__propuesta {
  max-width: 32rem;
  margin: 0 0 1.25rem;
  font-size: 1.12rem;
  line-height: 1.5;
  text-wrap: pretty;
}
.hero .acciones { max-width: 36rem; gap: 0.6rem; }
.hero .acciones .btn { flex: 1 1 auto; }
/* The <picture> adds no box: its <img> is the grid item */
.hero__picture { display: contents; }
/* Index of the page under the hero buttons, only while the header menu is hidden */
.hero__indice { margin-top: 1rem; }
.hero__indice .indice-recursos { margin-top: 0; }
@media (min-width: 46rem) {
  .hero__indice { display: none; }
}

@media (min-width: 56rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    grid-template-areas: "titulo simbolo" "texto simbolo";
    column-gap: 4rem;
    row-gap: 1.75rem;
    align-items: end;
  }
  .hero__simbolo { width: 15rem; justify-self: center; align-self: center; }
  .hero__lema { margin-top: 0.8rem; font-size: 1.3rem; }
  .filete { width: 5rem; margin-top: 1.25rem; }
  .hero__texto { align-self: start; }
  .hero__propuesta { font-size: 1.22rem; }
  .hero .acciones { gap: 0.75rem; }
}

/* ---- Pray today (purple band) ---- */
.rezar {
  display: grid;
  gap: 2rem;
  --bloque: 38rem;
}
.rezar__texto p { max-width: var(--measure); text-wrap: pretty; }
.rezar__texto .encabezado { margin-bottom: 1.25rem; }
.rezar__entrada { font-size: 1.15em; line-height: 1.5; }
.rezar .acciones { margin: 1.5rem 0 0.5rem; max-width: 30rem; }
.rezar .acciones .btn { flex: 1 1 10rem; }
.rezar .acciones .btn-primario { flex-basis: 100%; }
.rezar__figura { margin: 0; width: min(100%, 20rem); }
/* The screenshot repeats the "Abrir la oración de hoy" link for the mouse and
   touch only (tabindex="-1" aria-hidden="true" in the HTML) */
.rezar__enlace { display: block; }
.rezar__enlace:hover .rezar__captura { border-color: var(--color-on-morado); }
.rezar__captura {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-on-morado-line);
}
.rezar__figura figcaption {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--color-on-morado-muted);
}
@media (min-width: 52rem) {
  .rezar {
    --bloque: 62rem;
    grid-template-columns: minmax(0, 1fr) 19rem;
    column-gap: 4rem;
    align-items: center;
  }
  .rezar__figura { width: 19rem; }
}

/* ---- Ruled list: a hairline between items instead of bullets ---- */
.lista-filete {
  --bloque: 46rem;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--color-line-strong);
}
.lista-filete li {
  padding: 0.85rem 0 0.95rem;
  border-top: 1px solid var(--color-line-strong);
}
.seccion--morada .lista-filete { border-bottom-color: var(--color-on-morado-line); }
.lista-filete__titulo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
}
.lista-filete__nota {
  display: block;
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.45;
  color: var(--color-ink-muted);
}
.lista-filete__fuente { font-style: italic; }

/* ---- Books ---- */
/* Narrow screens: a catalogue list, small cover on the left, ruled between
   entries. 56rem+: two columns; 72rem+: four matched columns whose rows
   (cover, title, subtitle, summary, details, actions) line up. */
.libros { display: grid; gap: 0; }
.libro {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  column-gap: 1.1rem;
  align-content: start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-ink);
}
.libro > * { grid-column: 2; }
.libro__portada {
  grid-column: 1;
  grid-row: 1 / span 5;
  width: 100%;
  border: 1px solid var(--color-line);
}
.libro__titulo { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.15; }
.libro__subtitulo { margin: 0.35rem 0 0.6rem; font-style: italic; line-height: 1.4; color: var(--color-ink-muted); }
.libro__resumen { margin: 0 0 0.6rem; line-height: 1.5; }
.libro__titulo + .libro__resumen { margin-top: 0.5rem; }
.libro__datos p { margin: 0; font-size: 0.92rem; line-height: 1.45; color: var(--color-ink-muted); }
.libro__acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.25rem;
  margin-top: 1rem;
}
.libro__acciones .btn { flex: 0 1 auto; white-space: nowrap; }
/* Small phones: the actions take the full width under the cover */
@media (max-width: 29.99rem) {
  .libro__acciones { grid-column: 1 / -1; }
  .libro__acciones .btn { flex: 1 1 100%; }
}
@media (min-width: 56rem) {
  .libros { --bloque: var(--width); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
}
@media (min-width: 72rem) {
  .libros { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2rem; }
  @supports (grid-template-rows: subgrid) {
    .libro {
      grid-template-columns: none;
      grid-template-rows: subgrid;
      grid-row: span 6;
      row-gap: 0;
    }
    .libro > *,
    .libro__portada { grid-column: auto; grid-row: auto; }
    /* Covers of different trim sizes sit on one baseline */
    .libro__portada { align-self: end; width: 10.5rem; margin-bottom: 1.25rem; }
    .libro__acciones { align-self: end; }
    /* Empty rows (no details on the welcome page) collapse */
    .libro__datos:empty { display: none; }
  }
}

/* ---- Resources preview and social ---- */
.recursos-avance { --bloque: 46rem; }
.recursos-avance .acciones { margin-top: 1.75rem; max-width: 22rem; }

/* Short ruled lists (resources preview, social): one column on phones and
   tablets, three across the full width from 56rem. */
@media (min-width: 56rem) {
  .recursos-avance { --bloque: var(--width); }
  .lista-filete--columnas {
    --bloque: var(--width);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 2rem;
    border-bottom: 0;
  }
  .lista-filete--columnas li { padding-bottom: 0.5rem; }
  /* Titles of one and two lines start on the same line */
  .lista-filete--columnas .lista-filete__titulo { align-items: flex-start; padding-top: 0.6rem; }
}

/* ---- Team (/quienes-somos/) ---- */
.equipo {
  --bloque: 46rem;
  display: grid;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}
.equipo li {
  padding: 1.25rem 0 1.4rem;
  border-top: 1px solid var(--color-ink);
}
.equipo h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; }
.equipo__cargo { margin: 0.3rem 0 0.6rem; font-style: italic; color: var(--color-ink-muted); }
.equipo__bio { margin: 0; line-height: 1.55; text-wrap: pretty; }
@media (min-width: 56rem) {
  .equipo { --bloque: 62rem; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
}

/* ---- Inner page heading (/recursos/) ---- */
.portadilla {
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--color-line);
}
.portadilla > * {
  max-width: 44rem;
  margin-left: max(0px, calc((100% - var(--width)) / 2));
  margin-right: auto;
}
.portadilla h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.3rem + 4vw, 3.6rem);
  line-height: 1.05;
  color: var(--color-morado);
}
.portadilla .filete { margin-bottom: 1.25rem; }
.portadilla__intro { margin-top: 0; margin-bottom: 0; font-size: 1.12rem; line-height: 1.5; text-wrap: pretty; }
/* In-page index of the resources page */
.indice-recursos { margin-top: 1.25rem; margin-bottom: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.indice-recursos a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- Footer ---- */
.pie {
  padding: 2.75rem var(--gutter) 2rem;
  text-align: center;
  border-top: 1px solid var(--color-line);
}
/* The brand sign-off: the symbol with the name and motto set as real text
   (the full logo's small lettering is unreadable at footer size) */
.pie__marca { margin: 0 0 1.75rem; }
.pie__simbolo { width: 4.5rem; height: 4.5rem; margin: 0 auto 0.6rem; }
.pie__nombre {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--color-morado);
}
.pie__lema { margin: 0.2rem 0 0; font-size: 0.95rem; font-style: italic; color: var(--color-ink-muted); }
.pie__intro {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-ink-muted);
}
.pie__cr {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin: 0.6rem 0 1.5rem;
  padding: 0.25rem 0;
  color: var(--color-ink-muted);
  text-decoration: none;
}
.pie__logo { max-width: 100%; width: auto; height: 2.4rem; }
.pie__url { font-size: 0.95rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.pie__cr:hover .pie__url { color: var(--color-ink); text-decoration-thickness: 2px; }
.pie__enlaces {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}
.pie__enlaces a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: 0.95rem; }
.pie__legal {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--color-ink-muted);
}

/* ---- 404 ---- */
.error {
  min-height: 60vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 4rem var(--gutter);
  text-align: center;
}
.error h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 3vw, 3rem);
  color: var(--color-morado);
}
.error p { max-width: var(--measure); margin-bottom: 0.5rem; }
.error .acciones { justify-content: center; width: min(100%, 30rem); }

/* ---- Preferences ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-contrast: more) {
  :root {
    --color-line: rgba(33, 27, 32, 0.45);
    --color-line-strong: rgba(33, 27, 32, 0.7);
    --color-ink-muted: #3d363b;
    --color-on-morado-muted: var(--color-on-morado);
  }
}
@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
  .filete { background: CanvasText; }
  /* Brand marks keep their colours on a light plate, in light and dark modes */
  .marca__simbolo,
  .hero__simbolo,
  .pie__simbolo,
  .pie__logo {
    forced-color-adjust: none;
    background: #fbf9f5;
    padding: 2px;
  }
}
@media print {
  :root {
    --color-on-morado: var(--color-ink);
    --color-on-morado-muted: var(--color-ink-muted);
    --color-on-morado-line: var(--color-line-strong);
    --color-on-morado-border: var(--color-line-strong);
  }
  .cabezal, .saltar { display: none !important; }
  body,
  .seccion--morada { background: var(--color-surface); }
}
