/* The People and Pastimes Behind the Reels — editorial article */

.essay-page {
  --paper: #fbf8f0;
  --ink: #26241f;
  --ink-soft: #4d4840;
  --rule: #e3dbc9;
  --accent: #6e2232;
  --gold: #8a6a24;
  --measure: 720px;
  --wide: 1000px;
  --gutter: 20px;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-head: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.essay-page *,
.essay-page *::before,
.essay-page *::after { box-sizing: border-box; }


.essay-page {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

.essay-page img { max-width: 100%; }

.essay-page {
  padding: 56px var(--gutter) 120px;
  overflow-x: clip;
}

.essay {
  max-width: var(--measure);
  margin: 0 auto;
}

/* Heading */

.essay__header {
  margin-bottom: 36px;
  text-align: center;
}

.essay__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.2rem, 1.3rem + 3.8vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Sections */

.essay__section + .essay__section,
.figure--wide + .essay__section { margin-top: 72px; }

.essay h2 {
  margin: 0 0 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.95rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.essay p { margin: 0 0 1.3em; }
.essay p:last-child { margin-bottom: 0; }

.essay__section--last { padding-bottom: 40px; }

/* Figures */

.figure { margin: 40px 0; }

.figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.figure figcaption {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Opening illustration may extend beyond the reading column on desktop */
.figure--wide {
  width: min(var(--wide), calc(100vw - 2 * var(--gutter)));
  margin: 0 0 0 50%;
  transform: translateX(-50%);
}

.figure--wide figcaption {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

.figure--closing {
  max-width: 200px;
  margin: 56px auto 0;
}

.figure--closing img { border-radius: 0; }

/* Paired illustrations */

.pair {
  display: grid;
  gap: 20px;
}

.essay .pair__label {
  margin: 8px 0 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

@media (min-width: 600px) {
  .pair { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 599px) {
  .pair__item { max-width: 340px; margin: 0 auto; width: 100%; }
}

/* Bonus-round frames */

.frames {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.frames__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.frames__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 0.75rem;
}

@media (min-width: 620px) {
  .frames { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 619px) {
  .frames__item { max-width: 340px; margin: 0 auto; width: 100%; }
}

/* Survival section: narrow cabinet strip beside the text on wider screens */

.essay__split-figure {
  margin: 36px auto 0;
  max-width: 480px;
}

.essay__split-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

@media (min-width: 760px) {
  .essay__split {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) 150px;
    gap: 44px;
    align-items: start;
  }
  .essay__split-figure { margin: 8px 0 0; max-width: none; }
}

/* Pull quote */

.pullquote {
  margin: 72px 0 0;
  padding: 6px 0 6px 26px;
  border-left: 2px solid var(--accent);
}

.pullquote + .essay__section { margin-top: 72px; }

.essay .pullquote p {
  margin: 0;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35em;
  line-height: 1.45;
}

/* Desktop type scale */

@media (min-width: 768px) {
  .essay-page { font-size: 18px; }
  .essay-page { padding-top: 88px; }
  .essay__header { margin-bottom: 44px; }
  .essay__section + .essay__section,
  .figure--wide + .essay__section { margin-top: 88px; }
  .figure { margin: 48px 0; }
  .figure--wide { margin: 0 0 0 50%; }
  .pullquote { margin-top: 88px; }
  .pullquote + .essay__section { margin-top: 88px; }
}
