/* Reading text shares one scale across the rail and the standalone articles.
   rem respects the reader's preferred browser font size. */
.storytelling-v4,
.blog-site-v4 {
  --v4-copy-size: 1.375rem;
  --v4-note-size: 1rem;
  --v4-copy-leading: 1.4;
  --v4-copy-face: Georgia, 'Times New Roman', serif;
}
@media (max-width: 359px) {
  .storytelling-v4, .blog-site-v4 { --v4-copy-size: 1.25rem; }
}
@media (min-width: 1200px) {
  .storytelling-v4, .blog-site-v4 {
    --v4-copy-size: 1.5rem;
    --v4-note-size: 1.125rem;
  }
}

/* Desktop-site requests on a phone use the initial fit-to-screen ratio.
   Leave native zoom and the user's base font size intact. */
.v4-virtual-phone :is(.storytelling-v4, .blog-site-v4) {
  --v4-copy-size: calc(1.375rem * var(--v4-phone-scale));
  --v4-note-size: calc(1rem * var(--v4-phone-scale));
}
.v4-virtual-phone-narrow :is(.storytelling-v4, .blog-site-v4) {
  --v4-copy-size: calc(1.25rem * var(--v4-phone-scale));
}

.storytelling-v4 { --v4-scene-title: var(--v18-display-size); }
@media (width < 600px) {
  .storytelling-v4 { --v4-scene-title: 2.3125rem; }
}
@media (width < 600px) {
  .storytelling-v4, .blog-site-v4 {
    --v4-scene-title: clamp(1.8125rem, calc(1rem + 4.3vw), 2.125rem);
  }
  .blog-site-v4 .blog-article h1 { font-size: calc(.95 * var(--v4-scene-title)); }
  .blog-site-v4 .blog-article h2 { font-size: clamp(1.5rem, 6.4vw, 1.75rem); }
}
@media (width < 600px) {
  .storytelling-v4 :is(#requests, #method) { --v4-copy-size: 1.25rem; }
}
.v4-virtual-phone :is(.storytelling-v4, .blog-site-v4) {
  --v4-scene-title: calc(2rem * var(--v4-phone-scale));
}
.v4-virtual-phone .storytelling-v4 :is(#requests, #method) {
  --v4-copy-size: calc(1.25rem * var(--v4-phone-scale));
}
.storytelling-v4 #main :is(#requests-title, #method-title, #reviews-title, #start-title, #about-title, #blog-title, #contacts-title) {
  font-size: var(--v4-scene-title);
  line-height: 1.03;
}
.storytelling-v4 #main :is(#requests-title, #method-title) > span { color: inherit; }

@media (min-width: 1101px) {
  .storytelling-v4 #main > :is(#requests, #method, #reviews, #start, #about, #contacts)
    > :is(.v17-content, .story-contact-layout) {
    width: min(100%, clamp(1280px, 62vw, 1536px));
    max-width: none;
    margin-inline: auto;
  }
}

/* Captions and service information inherit this role without shrinking
   neighbouring quotes, offer terms or the article itself. */
.storytelling-v4 :where(.v17-eyebrow, .story-reviews-head > p, .v4-review-context,
    .story-review-number, .story-review-original, .v17-limit, .v4-blog-author,
    .story-contact-channel, .story-site-footer),
.blog-site-v4 :where(.blog-author, .blog-related li small, .blog-back) {
  --v4-text-size: var(--v4-note-size);
  --v4-text-leading: 1.5;
}
.storytelling-v4 #start .v17-footer p {
  --v4-text-size: calc(.625rem * var(--v4-phone-scale, 1));
  --v4-text-leading: 1.4;
  margin: 0;
}

/* The section IDs keep this rule ahead of the edition-specific scene styles.
   Section headings, article titles, the hero slogan and the price have their
   own hierarchy. Marks, illustrations and image-button labels keep their scale. */
.storytelling-v4 #main > :is(#top, #requests, #method, #reviews, #start, #about, #blog, #contacts, #campfire)
  :is(p:not(.v17-price), blockquote, summary, details li, .v17-situations h3, .v3-process h3,
      .story-review-number, .story-review-label,
      .story-review-original, .v4-blog-author, .blog-pagination > *,
      .story-contact-channel-name, .story-contact-copy, .story-contact-fallback,
      .story-contact-fallback input, .story-footer-bottom a),
.storytelling-v4 :is(.story-photo-dialog, .v18-review-dialog) :is(p, button),
.blog-site-v4 #main :is(p, .blog-back, .blog-related li small, .blog-write, .blog-conditions) {
  font-family: var(--v4-copy-face);
  font-size: var(--v4-text-size, var(--v4-copy-size));
  line-height: var(--v4-text-leading, var(--v4-copy-leading));
}

.storytelling-v4 #main #about .v3-about-extra > details {
  margin: 0;
  padding-block: 0;
}
@media (min-width: 600px) {
  .storytelling-v4 #about .v3-about-extra:not(:has(> details[open])) > details {
    grid-row: 1;
    align-self: stretch;
    display: grid;
    grid-template-rows: 1fr 0;
  }
}
.storytelling-v4 #main #about .v3-about-extra > details > summary {
  min-height: 2.6em;
  padding: .5em 0;
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
}
@media (max-width: 359px) {
  .storytelling-v4 { --v4-summary-gap: .3em; --v4-summary-icon: 1.15em; }
}
.v4-virtual-phone-narrow .storytelling-v4 { --v4-summary-gap: .3em; --v4-summary-icon: 1.15em; }
.storytelling-v4 #main #about summary { gap: var(--v4-summary-gap, 16px); }
.storytelling-v4 #main #about .v4-accordion-toggle {
  flex-basis: var(--v4-summary-icon, 1.55em);
  width: var(--v4-summary-icon, 1.55em);
}

/* On a wide layout viewport fitted to a physical phone, keep the article's
   headings proportionate to its text as well. */
.v4-virtual-phone .blog-site-v4 .blog-main {
  width: calc(100% - 40 * var(--v4-phone-unit));
}
.v4-virtual-phone .blog-site-v4 .blog-article {
  max-width: none;
  font-size: var(--v4-copy-size);
}
.v4-virtual-phone .blog-site-v4 .blog-article h1 { font-size: calc(.95 * var(--v4-scene-title)); }
.v4-virtual-phone .blog-site-v4 .blog-article h2 { font-size: calc(.78 * var(--v4-scene-title)); }
.v4-virtual-phone .blog-site-v4 .blog-related li a span,
.v4-virtual-phone .blog-site-v4 .blog-meeting-facts strong { font-size: 1.15em; }
