/* Palmyra Academic Press — canonical design tokens
 *
 * Single source of truth. The OJS theme and the imprint site both import this
 * file; neither may fork the values. Rationale, the Palmyra cues each colour
 * encodes, and the measured contrast table are in brand/BRAND.md.
 *
 * After editing any colour here, run:  python brand/check_contrast.py
 */

:root {
  /* --- Colour ---------------------------------------------------------- */
  --pal-limestone:     #F7F3EA;  /* page ground — warm limestone, never #fff */
  --pal-card:          #FFFFFF;
  --pal-sand:          #EFE8DA;  /* muted band, table stripe, sidebar */
  --pal-border:        #DCD2BF;  /* decorative hairline */
  --pal-border-strong: #998A68;  /* input borders — 3.06:1, meets WCAG 1.4.11 */

  --pal-ink:           #1F1A14;  /* body text, 15.59:1 on limestone */
  --pal-ink-muted:     #5F564A;  /* metadata, captions, DOI lines, 6.50:1 */

  --pal-palm:          #1F4634;  /* primary — date palm, 9.56:1 */
  --pal-palm-deep:     #163427;  /* hover / active */
  --pal-stone:         #6E6151;  /* secondary — colonnade stone */
  --pal-brass:         #8A5A18;  /* accent, CTA only — 5.33:1 */
  --pal-brass-light:   #B8842F;  /* brass on dark surfaces only */
  --pal-crimson:       #8B2F2A;  /* destructive, retraction notice */

  --pal-on-primary:    #FFFFFF;
  --pal-on-accent:     #FFFFFF;

  /* --- Type ------------------------------------------------------------ */
  /* Self-hosted. No CDN call: a journal must render behind a firewall, and a
   * third-party font request is a GDPR question we should not have to answer. */
  --pal-font-inscription: "Cinzel", "Trajan Pro", Georgia, serif;
  --pal-font-display:     "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --pal-font-body:        "Crimson Pro", Georgia, "Times New Roman", serif;
  --pal-font-ui:          "Atkinson Hyperlegible", -apple-system, "Segoe UI", sans-serif;

  /* 1.25 major third on a 16px base */
  --pal-text-xs:   0.75rem;   /* 12 */
  --pal-text-sm:   0.875rem;  /* 14 */
  --pal-text-base: 1rem;      /* 16 */
  --pal-text-lg:   1.25rem;   /* 20 */
  --pal-text-xl:   1.5625rem; /* 25 */
  --pal-text-2xl:  1.9375rem; /* 31 */
  --pal-text-3xl:  2.4375rem; /* 39 */
  --pal-text-4xl:  3.0625rem; /* 49 */

  --pal-leading-body: 1.65;
  --pal-leading-tight: 1.2;
  --pal-measure: 68ch;        /* article body: 65–75 characters */
  --pal-measure-page: 82ch;   /* the whole prose COLUMN: the measure plus its
                                 furniture, so headings, metadata and rules share
                                 the body's left edge instead of running full
                                 width beside a narrow text block */

  /* --- Space, shape, motion -------------------------------------------- */
  --pal-space-1: 0.5rem;
  --pal-space-2: 1rem;
  --pal-space-3: 1.5rem;
  --pal-space-4: 2rem;
  --pal-space-6: 3rem;
  --pal-space-8: 4rem;

  --pal-radius: 2px;          /* stone is cut, not moulded */
  --pal-rule: 1px solid var(--pal-border);
  --pal-shadow-overlay: 0 1px 2px rgba(31, 26, 20, 0.08);

  --pal-transition: 180ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  :root { --pal-transition: 0ms; }
}
