/* ============================================================
   base.css — element defaults built on the design tokens
   ============================================================ */

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  letter-spacing: 0.002em;
}

/* Headings use the editorial display serif */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--heading-1);
  font-weight: 500;
}

h2 {
  font-size: var(--heading-2);
}

h3 {
  font-size: var(--heading-3);
}

h4 {
  font-family: var(--font-body);
  font-size: var(--heading-4);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  font-size: var(--text-body);
}

strong {
  font-weight: 600;
}

/* Body-copy links: distinguishable without relying on colour alone */
.prose a,
a.text-link {
  color: var(--color-accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color var(--dur) var(--ease);
}

.prose a:hover,
a.text-link:hover {
  color: var(--color-accent-stronger);
  text-decoration-thickness: 2px;
}

/* Default anchor styling (for links added later in the editor) */
a:not([class]) {
  color: var(--color-accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:not([class]):hover {
  color: var(--color-accent-stronger);
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Selection */
::selection {
  background: var(--color-accent-soft);
  color: var(--color-text-primary);
}

/* Eyebrow / kicker label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}

.eyebrow--onink {
  color: var(--color-rose);
}

/* Lead paragraph */
.lead {
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* Prose blocks (readable body content) */
.prose > * + * {
  margin-top: var(--space-4);
}

.prose p {
  color: var(--color-text-secondary);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100%;
  z-index: 200;
  background: var(--color-text-primary);
  color: var(--color-bg-primary);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: var(--space-3);
}
