/* Keyed Books: /letter. Long-form reading layout on top of the one-pager system. */

.letter-page .wrap {
  max-width: 680px;
}

.masthead-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

/* ---------- Hero ---------- */

.letter-kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 var(--space-lg);
}

.letter-hero h1 {
  max-width: 18ch;
  font-size: clamp(1.9rem, 4.6vw + 1rem, 3.6rem);
}

.letter-hero .sub {
  max-width: 38ch;
}

/* ---------- Body copy ---------- */

.letter-section {
  padding: clamp(32px, 6vw, 56px) 0;
}

.letter-section .wrap > p,
.letter-section .wrap > h2,
.letter-section .wrap > h3,
.letter-section .wrap > blockquote {
  max-width: 64ch;
}

.letter-section p {
  font-size: 1.12rem;
  line-height: 1.68;
  margin: 0 0 1.25em;
  color: var(--ink);
}

.letter-section p:last-child { margin-bottom: 0; }

.letter-section h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw + 1rem, 2.3rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-lg);
  color: var(--ink);
}

.letter-section h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.3;
  margin: var(--space-xl) 0 var(--space-sm);
  color: var(--ink);
}

.letter-section h2 + h3 { margin-top: 0; }

/* ---------- Pull quotes: her voice ---------- */

.pull {
  margin: var(--space-xl) 0 0;
  padding: var(--space-sm) 0 var(--space-sm) var(--space-lg);
  border-left: 2px solid var(--green);
}

.pull p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 var(--space-sm);
}

.pull cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.pull + h3 { margin-top: var(--space-xl); }

/* ---------- Steps inside the letter ---------- */

.letter-section.mechanism .steps {
  margin-top: var(--space-sm);
}

.letter-section .steps p {
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 56ch;
  margin: 0;
}

.letter-section .steps strong {
  font-weight: 700;
}

/* ---------- Offer inside the letter ---------- */

.letter-section.offer .line-item {
  margin-top: var(--space-lg);
}

.letter-section.offer .offer-detail {
  max-width: 52ch;
}

/* ---------- Inline CTA line ---------- */

.letter-cta-inline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.45;
  margin-top: var(--space-xl) !important;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--rule);
}

.letter-cta-inline a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--tan);
  text-underline-offset: 3px;
}

.letter-cta-inline a:hover { text-decoration-color: currentColor; }

/* ---------- Fit block ---------- */

.letter-section.fit .fit-col p:last-child {
  max-width: 48ch;
}

/* ---------- Ask + sign-off + P.S. ---------- */

.letter-page .ask h2 { max-width: 22ch; }

.letter-page .ask-note a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--tan);
  text-underline-offset: 3px;
}

.signoff {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.35;
  margin: var(--space-2xl) 0 0;
  color: var(--ink);
}

.signoff span {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.ps {
  margin: var(--space-xl) 0 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--rule);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 60ch;
}

.ps strong { font-weight: 700; }

.ps a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--tan);
  text-underline-offset: 3px;
}

.ps a:hover { text-decoration-color: currentColor; }

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  .letter-section p { font-size: 1.15rem; }
  .pull { margin-left: -2px; }
}
