/* Slots as Reward Conditioners — editorial article */

.essay-page {
  --paper: #fcfaf5;
  --ink: #26241f;
  --ink-soft: #4d4840;
  --rule: #e3ddd1;
  --panel: #f4efe4;
  --accent: #a3262c;
  --measure: 720px;
  --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 img { max-width: 100%; }

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

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

/* Headings */

.essay__header { margin-bottom: 56px; }

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

.essay__section + .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.25em; }
.essay p:last-child { margin-bottom: 0; }

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

/* Figures */

.figure { margin: 40px 0; }
.essay__section > .figure:last-child { margin-bottom: 0; }

.figure img {
  display: block;
  width: 100%;
  height: auto;
}

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

.figure--small { max-width: 480px; }

.figure--accent {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* Pull quote */

.pullquote {
  margin: 36px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
}

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

/* Reward schedule rows */

.schedule__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.schedule__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.schedule__legend img {
  display: inline-block;
  width: 18px;
  height: 18px;
}

.schedule__row {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}

.schedule__row:last-of-type { border-bottom: 1px solid var(--rule); }

.essay .schedule__label {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Payout three-part illustration */

.payout__panels {
  display: grid;
  gap: 16px;
}

.payout__panel {
  margin: 0;
}

.payout__panel img {
  border-radius: 4px;
}

.essay .payout__label {
  margin: 8px 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

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

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

/* Historical calculation panel */

.calc {
  margin: 36px 0;
  padding: 22px 24px;
  background: var(--panel);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
}

.essay .calc__title {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink-soft);
}

.calc__rows { margin: 0; }

.calc__rows div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}

.calc__rows dt { font-weight: 600; }

.calc__rows dd { margin: 0; }

.calc__rows dt::after {
  content: " =";
  font-weight: 400;
  color: var(--ink-soft);
}

.essay .calc__note {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Desktop type scale */

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