/*
 * Base Styles — typography, global elements, body.
 */

html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* ── Headings ───────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
  font-weight: var(--fw-bold);
  color: var(--color-gray-800);
}

/* Display headings use Bebas Neue */
.h-display,
.hero__title,
.section__title--display {
  font-family: var(--font-display);
  font-weight: var(--fw-regular); /* Bebas only has one weight */
  letter-spacing: var(--tracking-wide);
  line-height: 1.0;
  text-transform: uppercase;
}

/* Section headings use Josefin Sans */
h1, h2, h3,
.h-heading {
  font-family: var(--font-heading);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* Body headings */
h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: var(--tracking-normal);
  text-transform: none;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

/* ── Eyebrow labels ─────────────────────────────────────────────── */

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-verdigris-ink);
}

.eyebrow--light {
  color: var(--color-wisteria);
}

/* ── Body text ──────────────────────────────────────────────────── */

p {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text);
  max-width: var(--measure);
}

.lead {
  font-size: var(--text-lg);
  font-weight: var(--fw-medium);
  line-height: 1.65;
}

.caption {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── Links ──────────────────────────────────────────────────────── */

a {
  color: var(--color-link);
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-link-hover);
}

/* ── Selection ──────────────────────────────────────────────────── */

::selection {
  background: var(--color-wisteria);
  color: var(--color-white);
}

/* ── Horizontal rule ────────────────────────────────────────────── */

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

/* ── Blockquote ─────────────────────────────────────────────────── */

blockquote {
  position: relative;
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-xl);
  font-weight: var(--fw-medium);
  line-height: 1.6;
  color: var(--color-gray-800);
  padding-left: var(--space-8);
  border-left: 3px solid var(--color-accent);
}

/* ── Images ─────────────────────────────────────────────────────── */

img {
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  font-style: italic;
}

/* ── Utility text ───────────────────────────────────────────────── */

.text-white   { color: var(--color-white); }
.text-muted   { color: var(--color-text-muted); }
.text-accent  { color: var(--color-verdigris-ink); }
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

/* Dark section overrides (dark + prussian are both dark backgrounds) */
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark p,
.section--dark .lead,
.section--prussian h1,
.section--prussian h2,
.section--prussian h3,
.section--prussian h4,
.section--prussian p,
.section--prussian .lead {
  color: var(--color-white);
}

.section--dark .eyebrow,
.section--prussian .eyebrow,
.section--dark .text-accent,
.section--prussian .text-accent {
  color: var(--color-verdigris);
}

.section--dark p,
.section--dark .lead,
.section--prussian p,
.section--prussian .lead {
  color: rgba(255, 255, 255, 0.82);
}

/* ── WordPress WYSIWYG content ──────────────────────────────────── */

/* WYSIWYG prose inherits the medium (500) body weight set globally on `body`
 * and `p` — light (300) reads faint on white, so the whole site uses medium. */
.entry-content {
  color: var(--color-text);
}

.entry-content p {
  max-width: var(--measure);
  margin-bottom: var(--space-5);
}

/* No trailing gap after the last paragraph. */
.entry-content > *:last-child {
  margin-bottom: 0;
}

/* Underline prose links so they're distinguishable from the medium (500) body
 * copy by more than color alone (WCAG 1.4.1). */
.entry-content a {
  font-weight: var(--fw-medium);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.entry-content h2 { margin-top: var(--space-8); margin-bottom: var(--space-4); }
.entry-content h3 { margin-top: var(--space-6); margin-bottom: var(--space-3); }
.entry-content ul, .entry-content ol {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: var(--space-2); }

/* WordPress content alignment (images/captions from the editor). Images are
   display:block via the reset, so centering needs margin:auto, not text-align. */
.aligncenter { display: block; margin-inline: auto; }
.alignleft   { float: left;  margin: 0 var(--space-6) var(--space-4) 0; }
.alignright  { float: right; margin: 0 0 var(--space-4) var(--space-6); }
.alignnone   { }
figure.aligncenter, .wp-caption.aligncenter { margin-inline: auto; }
