/* Essays — magazine reading layout.
   One narrow reading column; photos break out wider than the text; a pull quote and an end mark;
   About the Author closes every essay. Builds on style.css tokens. */
:root { --font-read: "Source Serif 4", Georgia, "Times New Roman", serif; --font-headline: "Instrument Serif", Georgia, serif; --measure: 36rem; }

.essay { padding-block: clamp(40px, 7vw, 88px) 0; }

/* Head */
.essay-head { max-width: 50rem; margin: 0 auto; display: grid; gap: 18px; text-align: center; justify-items: center; }
.essay-head .label a { color: inherit; }
.essay-head h1 { font-family: var(--font-headline); font-weight: 400; font-size: clamp(3.2rem, 9vw, 6.5rem); line-height: 0.95; letter-spacing: -0.015em; }
.dek { font-family: var(--font-headline); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.3; color: var(--muted); max-width: 34rem; }
.byline { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); width: min(100%, 34rem); }
.byline span { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.byline strong { color: var(--ink); font-weight: 400; }

/* Body */
.essay-body { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 1.5em; }
.essay-body > p { max-width: var(--measure); width: 100%; margin: 0 auto; font-family: var(--font-read); font-size: clamp(1.12rem, 1.6vw, 1.25rem); line-height: 1.75; color: var(--ink); }
.essay-body > p:first-of-type::first-letter {
  font-family: var(--font-headline); float: left; font-size: 5.4em; line-height: 0.8; padding: 0.06em 0.1em 0 0; color: var(--accent);
}
.essay-body > p.last::after { content: " ■"; color: var(--accent); font-size: 0.8em; }

/* Photos break out of the text column */
.essay-body figure { margin: 1em auto; width: min(100%, 62rem); display: grid; gap: 10px; }
.essay-body figure img { width: 100%; height: auto; border-radius: 4px; }
.essay-body figcaption { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted); max-width: var(--measure); }
.essay-body figure.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.essay-body figure.pair figcaption { grid-column: 1 / -1; }

/* Pull quote: repeats a line from the essay */
.pull { max-width: 44rem; width: 100%; margin: 0.6em auto; padding-block: 28px; border-block: 1px solid var(--line); text-align: center; }
.pull p { font-family: var(--font-headline); font-style: italic; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; color: var(--ink); text-wrap: balance; }

.source-note { max-width: var(--measure); width: 100%; margin: 0 auto; font-size: 0.95rem; color: var(--muted); }
.source-note a { color: var(--accent); }

/* About the Author */
.author { margin-top: clamp(56px, 8vw, 96px); background: var(--surface); }
.author .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: end; max-width: 52rem; }
.author img { width: clamp(110px, 18vw, 170px); height: auto; display: block; align-self: end; }
.author-text { display: grid; gap: 12px; padding-block: 36px; }
.author-text h2 { font-family: var(--font-headline); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.4rem); letter-spacing: 0; }
.author-text p { font-family: var(--font-read); font-size: 1.05rem; line-height: 1.65; max-width: 34rem; }
.author .btn-row { margin-top: 4px; }

@media (max-width: 640px) {
  .essay-body figure.pair { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .author .wrap { grid-template-columns: minmax(0, 1fr); }
  .author img { order: 2; justify-self: center; }
  .author-text { padding-bottom: 8px; }
}
