/* Story editorial canvas — magazine-calm reading. Photography always
   renders smaller than the viewport; serif type carries hierarchy.
   All TMJ tokens; no gradients, no heavy shadows. */
.narrow { max-width: 700px; }

.wide {
  width: min(100% - 48px, 1120px);
  margin-inline: auto;
}

.e-head {
  background: var(--color-bg);
  padding: var(--space-9) 0 var(--space-7);
  text-align: center;
}

.e-head h1 {
  font-size: var(--text-hero);
  line-height: 1.12;
  margin: 0 0 var(--space-3);
}

.e-intro {
  font-size: var(--text-lede);
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

.e-meta {
  margin: 0 0 var(--space-4);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-secondary);
}

.e-prose { margin: var(--space-5) 0; }

.e-prose p {
  font-size: var(--text-body);
  line-height: 1.8;
  margin: 0 0 var(--space-5);
}

.e-prose.lead > p:first-child::first-letter {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.74em;
  line-height: 0.9;
  float: left;
  margin: var(--space-1) var(--space-2) 0 0;
  color: var(--tmj-terracotta);
}

.e-h2 {
  font-size: var(--text-h2);
  margin: var(--space-8) 0 var(--space-4);
}

.e-rule {
  border: 0;
  border-top: 2px solid var(--tmj-terracotta);
  margin: var(--space-7) auto;
  max-width: 200px;
}

.e-quote {
  margin: var(--space-7) 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  border-left: 3px solid var(--tmj-terracotta);
}

.e-quote p {
  font-family: var(--font-heading);
  font-size: var(--text-pullquote);
  line-height: 1.5;
  color: var(--color-primary);
  margin: 0 0 var(--space-2);
}

.e-quote cite { font-style: normal; font-size: var(--text-small); color: var(--color-text-secondary); }

/* Visuals never exceed the viewport: intrinsic ratio, capped height. */
.e-fig { margin: var(--space-7) 0; }

.e-fig img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  height: auto;
  margin-inline: auto;
  border-radius: var(--radius-lg);
}

.e-fig figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  text-align: center;
}

.e-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  border: 2px dashed var(--color-secondary);
  border-radius: var(--radius-md);
  background: var(--color-bg-teal);
  color: var(--color-text-secondary);
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  padding: var(--space-4);
}

.e-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
  margin: var(--space-7) 0;
}

.e-split--45 { grid-template-columns: 45fr 55fr; }
.e-split--55 { grid-template-columns: 55fr 45fr; }

.e-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
  align-items: start;
}

.e-split.flip > .e-split-media { order: 2; }

.e-split-media img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  height: auto;
  margin-inline: auto;
  border-radius: var(--radius-lg);
}

.e-split-text p {
  font-size: var(--text-body);
  line-height: 1.75;
  margin: 0 0 var(--space-4);
}

.e-split-text p:first-child { margin-top: var(--space-1); }

/* Reading-room layout: quiet text measure left, sticky photo rail right.
   Same Off White ground, same type — only the structure is new. */
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-7);
  align-items: start;
  margin: var(--space-7) auto;
}

.story-main { min-width: 0; }

.story-main > .container {
  width: 100%;
  margin-inline: 0;
}

.story-main > :first-child .e-prose { margin-top: 0; }

.story-side {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

.side-fig {
  margin: 0;
  background: var(--tmj-sand);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
}

.side-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.e-gal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.e-gal-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.e-related {
  background: var(--color-bg-secondary);
  padding: var(--space-8) 0;
  margin-top: var(--space-7);
}

.e-related h2 { margin-top: 0; font-size: var(--text-h2); }

.e-rel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.e-rel-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.e-rel-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

.e-rel-card span {
  font-weight: 700;
  color: var(--color-primary);
}

@media (max-width: 767px) {
  .wide { width: calc(100% - 32px); }
  .e-split { grid-template-columns: 1fr; }
  .e-split.flip > .e-split-media { order: 0; }
  .e-rel-grid { grid-template-columns: 1fr; }
  .e-fig img, .e-split-media img { max-height: 60vh; }
  .story-layout { grid-template-columns: 1fr; }
  .story-side {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: var(--space-2);
  }
  .story-side::-webkit-scrollbar { display: none; }
  .story-side .side-fig { flex: 0 0 78vw; scroll-snap-align: start; }
}
