:root {
  --ink: #25292c;
  --line: rgba(37, 41, 44, .15);
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; color: var(--ink); background: transparent; }
.apple-sheet {
  position: absolute;
  top: 0;
  left: 0;
  width: 1200px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: stretch;
  transform-origin: top left;
}
.desc-text, .iframe-box {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
}
.desc-text { padding: 14px; }
.desc-text h2 { margin: 0 0 8px; font-size: 32px; line-height: 1.1; }
.desc-text p, .desc-text li { font-size: 18px; line-height: 1.35; color: rgba(37,41,44,.72); }
.desc-text p { margin: 0 0 7px; }
.desc-text ul { margin: 7px 0 12px; padding-left: 20px; }
.desc-text li { margin-bottom: 3px; }
.iframe-box { min-height: 420px; padding: 12px; display: flex; background: rgba(248,250,252,.88); }
.iframe-box iframe { display: block; flex: 1; width: 100%; height: auto; border: 0; border-radius: 10px; background: #fff; }

/* Phone stories: description above the live illustration. */
@media (max-width: 620px) {
  html.legend-story,
  html.legend-story body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .legend-story .apple-sheet {
    position: relative;
    inset: auto;
    display: flex;
    width: 100%;
    min-height: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 8px;
    transform: none;
  }

  .legend-story .desc-text {
    width: 100%;
    margin: 0;
    padding: 14px;
  }

  .legend-story .desc-text h2 { font-size: 25px; }
  .legend-story .desc-text p,
  .legend-story .desc-text li {
    font-size: 16px;
    line-height: 1.42;
  }

  .legend-story .iframe-box {
    display: block;
    width: 100%;
    min-height: 330px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    overflow: hidden;
  }

  .legend-story .iframe-box iframe {
    display: block;
    width: 100%;
    height: 330px;
    min-height: 330px;
    border-radius: 12px;
  }
}
