/* The customer's words: one midnight panel across the container, the words whole in Quote's large form, and the
   person as the film shows them in a square at the panel's other side, cut so the sign behind them stands whole. A
   story whose film or photographs do not show the person has the words alone, in the reading column's own place on
   the panel, so the eye reads straight down from the text into the customer's voice. Below 1200 px the frame stands
   over the words; who says them follows the words at every width. On a phone the panel runs from edge to edge of
   the screen. */
.story-words-panel { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: var(--radius-lg);
  background: var(--surface-inverse); scroll-margin-top: var(--space-8); }
.story-words-quote { align-self: center; padding: var(--space-7) var(--space-8); }
@media (min-width: 1200px) {
  .story-words-panel:not(:has(> .story-words-photo)) { grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure)) minmax(0, 1fr); }
  .story-words-panel:not(:has(> .story-words-photo)) > .story-words-quote { grid-column: 2; padding-inline: 0; }
}
.story-words-quote p { color: var(--ink-on-dark); }
.story-words-quote figcaption { color: var(--ink-on-dark-secondary); }
.story-words-quote .quote-name { color: var(--ink-on-dark); font-weight: 600; }
.story-words-panel:has(> .story-words-photo) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.story-words-photo { position: relative; align-self: stretch; aspect-ratio: 1; }
.story-words-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--focus, 50% 30%); }

@media (max-width: 1199px) {
  .story-words-panel:has(> .story-words-photo) { grid-template-columns: minmax(0, 1fr); }
  .story-words-photo { order: -1; aspect-ratio: 16 / 9; }
  .story-words-quote { padding: var(--space-6) var(--space-6) var(--space-7); }
}
@media (max-width: 599px) {
  .story-read > .story-words-panel { margin-inline: calc(-1 * var(--gutter)); }
  .story-words-panel { border-radius: 0; }
  .story-words-photo { aspect-ratio: 4 / 3; }
  .story-words-photo img { object-position: var(--focus-phone, var(--focus, 50% 30%)); }
  .story-words-quote { padding: var(--space-5) var(--gutter) var(--space-7); }
}
@media (forced-colors: active) { .story-words-panel { border: 1px solid CanvasText; } }
/* The story, one section of the page: a centred reading column (.story-read: the kit's Prose at its measure, in
   primary ink, a part's heading in Panel) between two margins. A reader reads down one column from the first part to
   the last. What is no running text is set apart across the container (.story-apart): the customer's words on
   midnight, a part's photograph, points that each open on a head, as cells, and the solution beside a call of the
   story's use on a stage (Split) where the story gives one. Another voice's words (Quote, light and large) stand in
   the column under a hairline. A block, and a part's heading in the text, stands one step (--space-7) under what
   is before it. The text opens on its first paragraph in Large from 600 px. A story is as long as its words, so
   nothing of it waits behind a fold but a cell's further words. */
.story-read { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure)) minmax(0, 1fr); row-gap: var(--space-7); }
.story-read > * { grid-column: 2; min-width: 0; margin: 0; }
.story-read > .story-apart { grid-column: 1 / -1; }
.story-prose { max-width: none; color: var(--ink-primary); }
.story-prose > h2 { margin-top: var(--space-7); scroll-margin-top: var(--space-8); }
.story-prose > h2:first-child { margin-top: 0; }
@media (min-width: 600px) {
  .story-read > .story-prose:first-child > h2:first-child + p { font: var(--t-large); letter-spacing: var(--t-large-tracking); text-wrap: pretty; }
}
.story-frame img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; border-radius: var(--radius-lg);
  background: var(--surface-sunken); object-fit: cover; object-position: var(--focus, 50% 40%); }
.story-frame figcaption { max-width: var(--measure); margin-top: var(--space-3); color: var(--ink-secondary); font: var(--t-small); text-wrap: pretty; }
/* The solution beside its call: Split at the container's width, the solution's own heading and text as its words
   and one call of the story's use on one of the page's brush grounds as its stage. A solution longer than the stage
   runs on beside it while the stage stays in view (Split's own). */
.story-solution { width: 100%; }
.story-solution > .stage { align-self: start; }
.story-solution .story-prose > h2:first-child { margin-top: 0; }

/* A second voice (a partner's words): Quote on the light page, large, in the reading column under a hairline */
.story-read > .story-voice { padding-top: var(--space-6); border-top: 1px solid var(--border-strong); }


@media (max-width: 599px) {
  .story-frame img { aspect-ratio: 3 / 2; object-position: var(--focus-phone, var(--focus, 50% 40%)); }
}
