@media screen {
  body[data-edition] #main .edition-welcome .welcome-copy {
    container-type: inline-size;
  }

  body[data-edition] #main .edition-welcome h1 {
    font-size: clamp(1.25rem, 7.9cqi, 2.65rem);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -.03em;
    white-space: normal;
    text-wrap: balance;
  }

  body[data-edition] #main .edition-welcome h1 em {
    margin-inline-end: .06em;
  }

  body[data-themed-reader] #main .edition-welcome h1 {
    font-size: clamp(1.4rem, 9.25cqi, 3.5rem);
  }

  body[data-edition] #main .welcome-actions .button.primary {
    min-width: 124px;
    padding-inline: 18px;
    justify-content: center;
  }

  body[data-edition] #main .welcome-actions .welcome-portrait {
    object-position: center;
  }

  .about-photo .about-portrait {
    object-position: center 35%;
  }
}

@media screen and (max-width: 759px) {
  body[data-edition="thanksgiving"] #main .library:not(.public-preview-library) .category-picker select {
    padding-inline-start: 12px;
  }

  body[data-edition] #main .library:not(.public-preview-library) .results-count {
    padding-inline-start: 13px;
    line-height: 1.35;
  }

  body[data-themed-reader] #main .results-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "chapter saved" "count clear";
    gap: 4px 12px;
    margin: 0 0 15px;
  }

  body[data-themed-reader] #main .edition-chapter-picker {
    grid-area: chapter;
    max-width: none;
  }

  body[data-themed-reader] #main .edition-chapter-picker summary {
    padding-inline-start: 12px;
  }

  body[data-themed-reader] #main .results-toolbar .results-count {
    grid-area: count;
    display: block;
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    color: var(--muted);
    font-size: .83rem;
  }

  body[data-themed-reader] #main .results-toolbar .favorite-filter {
    grid-area: saved;
    justify-self: end;
  }

  body[data-themed-reader] #main .results-toolbar #clear-filters {
    grid-area: clear;
    justify-self: end;
    min-height: 36px;
  }
}

@media screen and (max-width: 700px) {
  body[data-edition] #main .edition-welcome .welcome-copy {
    gap: 10px;
  }

  body[data-edition] #main .edition-welcome h1 {
    margin-block: 0;
  }

  body[data-edition] #main .welcome-actions {
    margin-block: 4px 0;
  }
}

@media screen and (min-width: 760px) {
  body[data-edition] #main .welcome-actions .button.primary {
    min-width: 146px;
  }
}
