/* ==========================================================================
   BASE — Reset, typography foundation, global defaults
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--parchment);
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Headings
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   Body text
   -------------------------------------------------------------------------- */

p {
  line-height: 1.7;
  color: var(--ink);
}

p + p {
  margin-top: var(--space-sm);
}

a {
  color: var(--red);
  text-decoration: underline;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.75;
}

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

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Utility: eyebrow / label text
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.65);
}

/* --------------------------------------------------------------------------
   Utility: section padding
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--space-2xl);
}

.section--sm {
  padding-block: var(--space-xl);
}

.section--lg {
  padding-block: var(--space-3xl);
}

/* --------------------------------------------------------------------------
   Utility: container
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.container--narrow {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* --------------------------------------------------------------------------
   Utility: text colour helpers
   -------------------------------------------------------------------------- */

.text-ash  { color: var(--ash); }
.text-ink  { color: var(--ink); }
.text-red  { color: var(--red); }
.text-white { color: var(--white); }

/* --------------------------------------------------------------------------
   Utility: background helpers
   -------------------------------------------------------------------------- */

.bg-parchment  { background-color: var(--parchment); }
.bg-midnight   { background-color: var(--midnight); color: var(--white); }
.bg-cobalt     { background-color: var(--cobalt);   color: var(--white); }
.bg-red        { background-color: var(--red);      color: var(--white); }
.bg-white      { background-color: var(--white); }

/* --------------------------------------------------------------------------
   Utility: text alignment
   -------------------------------------------------------------------------- */

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* --------------------------------------------------------------------------
   Metadata / caption text
   -------------------------------------------------------------------------- */

.meta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ash);
}

/* --------------------------------------------------------------------------
   Horizontal rule
   -------------------------------------------------------------------------- */

hr {
  border: none;
  border-top: 1.5px solid var(--parchment-dk);
  margin-block: var(--space-lg);
}
