/* ==========================================================================
   Proper Tools — Commons Oath page
   Civic-liturgical typography.
   ========================================================================== */

.oath-page.section-card {
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.985), rgba(255,255,255,0.968)),
    radial-gradient(circle at top center, rgba(76,125,74,0.032), transparent 48%);
  border-left: 3px solid rgba(76,125,74,0.22);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.05),
    0 1px 0 rgba(255,255,255,0.92) inset;
  padding-top: var(--sp-5);
}

.essay.oath-text {
  max-width: 66ch;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.14rem;
  line-height: 1.72;
  color: rgba(17,17,17,0.96);
}

/* ---------- Kicker ---------- */

.oath-text .oath-kicker {
  font-size: var(--fs-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.50);
  margin-bottom: var(--sp-1);
}

/* ---------- Title ---------- */

.oath-text h1 {
  font-family: "Doves Headline", Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 var(--sp-1);
  max-width: none;
}

/* ---------- Subtitle (lede) ----------
   Matches .fx-subtitle role: the first <p> in the article.
   Gets the drop cap via .oath-text > p:first-of-type::first-letter below.
*/

.oath-text .oath-subtitle {
  font-size: var(--fs-md);
  font-style: italic;
  color: rgba(0,0,0,0.74);
  margin-top: 0;
  margin-bottom: var(--sp-1);
  line-height: 1.4;
}

.oath-text .oath-subtitle-secondary {
  font-size: 1.02rem;
  font-style: italic;
  color: rgba(0,0,0,0.68);
  margin-top: 0;
  margin-bottom: var(--sp-1);
  line-height: 1.55;
  max-width: 44ch;
}

/* Drop cap on the subtitle — mirrors .fx-memoir > p:first-of-type::first-letter.
   The :first-of-type trick: kicker is a <div>, h1 is <h1>, so the
   first <p> child of .oath-text is the subtitle. */

.oath-text > p:first-of-type::first-letter {
  float: left;
  font-family: "Doves Headline", Georgia, serif;
  font-size: 3.8em;
  line-height: 0.84;
  padding-right: 0.08em;
  padding-top: 0.06em;
  color: rgba(76,125,74,0.92);
}

/* ---------- Meta block ---------- */

.oath-text .oath-meta {
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-5);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--fs-sm);
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.56);
}

.oath-text .oath-dedication-note {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.44);
}

/* ---------- Epigraph ---------- */

.oath-text .oath-epigraph {
  margin: var(--sp-5) 0;
  padding: var(--sp-2) var(--sp-3);
  border-left: 2px solid rgba(76,125,74,0.24);
  background: rgba(76,125,74,0.035);
  color: rgba(0,0,0,0.80);
}

.oath-text .oath-epigraph p {
  margin: 0;
  font-style: italic;
  font-size: 1.08rem;
}

/* ---------- Oath body: stanzas ---------- */

.oath-body {
  margin-top: var(--sp-5);
}

.oath-stanza {
  margin: 0;
}

.oath-stanza + .oath-stanza {
  margin-top: 1.9em;
}

.oath-text .oath-stanza p {
  margin: 0;
  padding: 0;
  max-width: none;
  text-wrap: pretty;
}

/* ---------- Divider (fleuron) ---------- */

.oath-text hr {
  margin: var(--sp-8) 0 var(--sp-5);
  border: none;
  border-top: 1px solid rgba(76,125,74,0.16);
  position: relative;
}

.oath-text hr::after {
  content: "✢";
  position: relative;
  top: -0.88em;
  display: block;
  width: 2ch;
  margin: 0 auto;
  text-align: center;
  background: var(--pt-paper);
  color: rgba(76,125,74,0.55);
  font-size: 0.9rem;
}

/* ---------- Coda ---------- */

.oath-coda {
  text-align: center;
  margin-top: var(--sp-3);
  color: rgba(0,0,0,0.66);
  font-style: italic;
  font-size: 1rem;
}

.oath-coda > p {
  margin: 0 0 var(--sp-3);
}

.oath-license {
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px solid rgba(76,125,74,0.12);
  font-style: normal;
  font-size: var(--fs-sm);
  color: rgba(0,0,0,0.56);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.oath-license p {
  margin: 0.3em 0;
}

.oath-license .note {
  font-size: var(--fs-xs);
  color: rgba(0,0,0,0.48);
  font-style: italic;
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  .essay.oath-text {
    font-size: 1.06rem;
    line-height: 1.68;
  }

  .oath-text h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .oath-text > p:first-of-type::first-letter {
    font-size: 3.2em;
  }

  .oath-subtitle-secondary {
    max-width: none;
  }

  .oath-stanza + .oath-stanza {
    margin-top: 1.7em;
  }
}
