/* Design tokens. Colours, type and spacing live here only.
   Neutral "archive" theme by default; families override via data-theme on <html>. */

:root {
  color-scheme: light;

  /* Paper & ink */
  --paper: #f6f0e1;
  --paper-deep: #ece3cc;
  --paper-edge: #dccfae;
  --ink: #2b2118;
  --ink-soft: #5a4a3a;
  --ink-faint: #6b5b46;      /* ≥4.5:1 on --paper and --paper-deep */
  --rule: #b9a886;

  /* Accents (neutral archive theme) */
  --accent: #5b3a29;         /* links, primary ornament */
  --accent-2: #7a4a2e;       /* secondary text accent */
  --accent-3: #b08d57;       /* ornament only, not for text */
  --accent-4: #6b6a3a;

  /* Type */
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --step--1: clamp(0.88rem, 0.85rem + 0.15vw, 0.95rem);
  --step-0: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  --step-1: clamp(1.3rem, 1.2rem + 0.5vw, 1.55rem);
  --step-2: clamp(1.65rem, 1.45rem + 1vw, 2.2rem);
  --step-3: clamp(2.2rem, 1.8rem + 2vw, 3.2rem);
  --step-4: clamp(2.8rem, 2.1rem + 3.5vw, 4.5rem);

  --leading: 1.6;
  --measure: 62ch;

  /* Space */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --page-max: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 2px;
  --band: 2rem;              /* ornamental tile band height */
}

/* Sicilia: Caltagirone majolica blue, saffron, terracotta, olive. */
[data-theme="sicilia"] {
  --accent: #1f4e79;
  --accent-2: #a8432a;
  --accent-3: #d4a017;
  --accent-4: #6b7a3a;
}
