/* Slot Machines and the Feeling of Religious Awe — editorial article */

.essay-page {
  --paper: #fbfaf7;
  --ink: #1c1a17;
  --ink-soft: #4a453e;
  --rule: #e4dfd6;
  --inset-bg: #f3efe7;
  --accent: #9b1c2c;
  --measure: 700px;
  --gutter: 20px;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-head: "Newsreader", Georgia, "Times New Roman", 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 {
  padding: 56px var(--gutter) 112px;
}

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

/* Heading */

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

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

.essay__cherry {
  display: block;
  width: 56px;
  height: 56px;
  margin: 28px auto 0;
}

/* Sections and headings */

.essay__section + .essay__section {
  margin-top: 64px;
}

.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.25em;
  hanging-punctuation: first;
}

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

/* Drop cap: desktop only, normal first letter on mobile */

@media (min-width: 768px) {
  .essay__lead::first-letter {
    float: left;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 4.6em;
    line-height: 0.82;
    padding: 0.08em 0.1em 0 0;
    color: var(--accent);
  }
}

/* Figures */

.essay__figure {
  margin: 40px 0 0;
}


.essay__figure + p {
  margin-top: 40px;
}

.essay__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: var(--inset-bg);
}

.essay__figure figcaption {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink-soft);
}

/* Concentration / attention inset */

.essay__inset {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--inset-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
}

.essay__inset dl {
  margin: 0;
  display: grid;
  gap: 20px;
}

.essay__term dt {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
}

.essay__term dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (min-width: 560px) {
  .essay__inset dl {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

/* Closing space */

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

/* Desktop type scale */

@media (min-width: 768px) {
  .essay-page { font-size: 18px; }
  .essay-page { padding-top: 88px; }
  .essay__header { margin-bottom: 72px; }
  .essay__section + .essay__section { margin-top: 80px; }
  .essay__figure { margin-top: 48px; }
  .essay__figure + p { margin-top: 48px; }
}

/* Optional fade-in for figures, added by article.js */

.essay-js .essay__figure img.is-pending {
  opacity: 0;
}

.essay-js .essay__figure img {
  transition: opacity 300ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .essay-js .essay__figure img { transition: none; }
}
