/* ============================================================
   base.css — tokens, reset, typography
   George Giotsas — author site
   ============================================================ */

:root {
  /* Palette */
  --ink: #271433;
  --plum: #270a47;          /* brand purple, kept from original site */
  --plum-deep: #1a0730;
  --lilac: #b9a6d9;
  --gold: #c89b3c;
  --gold-soft: #e6cf9a;
  --paper: #faf7f1;
  --paper-dim: #f1ebe0;
  --white: #ffffff;

  /* Type */
  --font-display: "GFS Didot", "Times New Roman", serif;
  --font-body: "Commissioner", "Segoe UI", sans-serif;

  /* Scale */
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.1rem;
  --step-4: 2.9rem;
  --step-5: 4rem;

  /* Layout */
  --content-width: 72rem;
  --gutter: 1.5rem;
  --radius: 10px;

  --shadow-card: 0 10px 30px rgba(39, 10, 71, 0.12);
  --shadow-spine: 6px 0 14px rgba(26, 7, 48, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--plum);
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

@media (max-width: 40rem) {
  h1 { font-size: var(--step-4); }
  h2 { font-size: var(--step-2); }
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--plum);
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: var(--step-1);
  max-width: 46ch;
}

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