/* ─── Prose ───────────────────────────────────────────────────────────────── */
body {
  font-size: var(--text-base);
  line-height: 1.65;
}

p {
  margin-bottom: 1.25rem;
  line-height: 1.65;
  color: var(--dark-gray);
}

p:last-child {
  margin-bottom: 0;
}

/*
  Lead paragraph — the opening paragraph of a page, set slightly larger than
  body copy. Two ways in:

    1. Explicitly, with a kramdown IAL on the line right after the paragraph:
         Some opening sentence.
         {: .lede}

    2. Automatically on sketch pages: the paragraph directly after the
       sketch-info box is the sketch's opening line, so it gets the treatment
       without contributors needing to remember the IAL.
*/
.lede,
.sketch-info + p {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--near-black);
  margin-bottom: 1.4rem;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  color: var(--dark-gray);
}

/* :where() zeroes out this rule's specificity, so any component class
   elsewhere (.navbar-brand, .home-section-box, .sketch-tag, etc.) wins
   automatically — including against the :visited/:hover pseudo-classes
   here, which would otherwise out-specify a lone class. This is what lets
   those components override link styling without !important. */
:where(a, a:visited) {
  color: var(--terra);
  text-underline-offset: 2px;
  text-decoration-color: rgba(192, 81, 49, 0.35);
  border-bottom: none;
}

:where(a:hover, a:visited:hover) {
  color: var(--sunset);
  text-decoration-color: var(--sunset);
}

hr {
  border: none;
  height: 1px;
  background-image: linear-gradient(90deg, transparent 0%, var(--rule-gray) 12%, var(--rule-gray) 88%, transparent 100%);
  opacity: 1;
}


/* ─── Headings ────────────────────────────────────────────────────────────── */
h1 {
  font-family: 'IM Fell English', Georgia, serif;
  font-weight: 400;
  color: var(--black);
  letter-spacing: 0;
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.01em;
  line-height: 0.98;
  font-size: clamp(1.9rem, 3.4vw, 2.35rem);
  margin-top: 2rem;
  margin-bottom: 0.55rem;
}

h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  color: var(--dark-gray);
  letter-spacing: -0.01em;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  color: var(--mid-gray);
  margin-top: 1.25rem;
  margin-bottom: 0.3rem;
}

strong {
  color: var(--black);
  font-weight: 600;
}
