/* Essay shared layout — clean editorial */

.essay-wrap {
  padding: var(--sect-y) var(--pad-x);
  max-width: 1080px;
  margin: 0 auto;
}

.essay-body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg);
  max-width: 70ch;
  margin: 0 auto;
  /* override editorial.css .essay-body grid layout used elsewhere */
  display: block;
  grid-column: auto;
  gap: 0;
}

/* Section number label · matches the V5 manifest PDF aesthetic */
.essay-body .essay-section-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-soft, #888);
  margin: clamp(48px, 5vw, 72px) 0 14px;
  padding-top: clamp(20px, 2vw, 28px);
  border-top: 1px solid var(--line, rgba(0,0,0,0.18));
}
.essay-body .essay-section-num + h2 { margin-top: 0; }

.essay-body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.6vw, 38px);
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0 0 18px;
  text-wrap: balance;
}

.essay-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin: 36px 0 12px;
}

/* Numbered manifesto sections */
.essay-body--numbered { counter-reset: phr-section; }
.essay-body--numbered h3 {
  counter-increment: phr-section;
  display: grid;
  grid-template-columns: clamp(56px, 7vw, 88px) 1fr;
  gap: clamp(14px, 1.6vw, 24px);
  align-items: baseline;
  margin: clamp(48px, 5vw, 72px) 0 14px;
  padding-top: clamp(20px, 2vw, 28px);
  border-top: 1px solid var(--line, #2a2a2a);
}
.essay-body--numbered h3::before {
  content: counter(phr-section, decimal-leading-zero) " //";
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(11px, 1.05vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-soft, #b8b1a3);
  line-height: 1.6;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .essay-body--numbered h3 {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-top: 18px;
  }
}

.essay-body h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-soft, #888);
  margin: 28px 0 10px;
  font-weight: 500;
}

.essay-body p {
  margin: 0 0 22px;
  text-wrap: pretty;
}

.essay-body p strong { font-weight: 700; }
.essay-body em { font-style: italic; }
.essay-body a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* lede paragraph — slightly larger first line */
.essay-lede {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin: 0 0 36px;
  color: var(--fg);
}

.essay-body blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.012em;
  padding: 4px 0 4px 24px;
  margin: 28px 0;
  border-left: 2px solid var(--fg);
  color: var(--fg);
}

.essay-body ul,
.essay-body ol {
  margin: 0 0 18px 1.4em;
}

.essay-body li {
  margin-bottom: 6px;
}

/* fragment divider — fine, centered hairline */
.essay-body hr.frag {
  border: 0;
  height: 1px;
  background: var(--line, rgba(0,0,0,0.18));
  width: 64px;
  margin: 44px auto;
  opacity: 0.7;
}

/* final word — quiet pull-quote at the bottom of body */
.essay-final {
  margin: 56px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line, rgba(0,0,0,0.18));
  text-align: left;
}

.essay-final-mark {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-soft, #888);
  margin-bottom: 10px;
}

.essay-final p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

/* SHARE FOOTER — clean, sober */
.essay-share {
  max-width: 70ch;
  margin: 56px auto 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line, rgba(0,0,0,0.18));
  text-align: center;
}

.essay-share-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-soft, #888);
  margin-bottom: 14px;
}

.essay-share-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.essay-share-list a {
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--line, rgba(0,0,0,0.22));
  background: transparent;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.essay-share-list a:hover {
  border-color: #f1ede4;
  color: #f1ede4;
}

.essay-share-nav {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft, #888);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.essay-share-nav a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

.essay-share-nav a:hover {
  border-bottom-color: #f1ede4;
  color: #f1ede4;
}

.essay-share-nav .dot {
  opacity: 0.5;
}
