/* DARK DEAD R109 — proportion and legibility over the approved R108 design. */
@media screen {
  .site-shell > .header .nav a {
    font-size: clamp(.75rem, .9vw, .875rem);
    font-weight: 700;
    letter-spacing: .025em;
  }

  .dd-letter-layout .dd-hero-action {
    min-height: 56px;
    padding-inline: 23px;
    gap: 20px;
  }
  .dd-letter-layout .dd-hero-action strong {
    font-size: .90625rem;
    line-height: 1.25;
  }
  .dd-letter-layout .dd-hero-premise {
    font-size: 1.3125rem;
  }

  .site-shell main .btn:where(:not(#dd-reader .btn, .dd-reader-entry .btn, .game-toolbar .btn, .game-wrap .btn)) {
    font-size: .84375rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .065em;
    min-height: 54px;
    padding: 14px 23px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  .site-shell main .btn.small:where(:not(#dd-reader .btn, .game-toolbar .btn, .game-wrap .btn)) {
    font-size: .78125rem;
    min-height: 48px;
    padding: 12px 18px;
  }

  .franchise-home .franchise-card .card-body {
    padding-block: 16px;
    padding-inline: 10px;
  }
  .franchise-home .franchise-card h3 {
    font-size: clamp(.875rem, 1.1vw, 1.25rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .055em;
  }
  .franchise-home .franchise-card p {
    font-size: clamp(.78125rem, .92vw, .875rem);
    line-height: 1.5;
    letter-spacing: .025em;
  }
  .franchise-home .franchise-card .card-link,
  .franchise-home .figure-card .text-link {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .065em;
  }
  .franchise-home .figure-card .figure-caption p {
    font-size: clamp(.8125rem, .95vw, .9375rem);
    line-height: 1.5;
  }

  /* Reuse the existing breadcrumb rule; the reader nests it one level deeper. */
  #dd-reader > .breadcrumbs { position: relative; }
  #dd-reader > .breadcrumbs::after {
    content: '';
    position: absolute;
    left: var(--space, 20px);
    right: var(--space, 20px);
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, #c4a06400, #c4a064 8%, #d3b973 50%, #c4a064 92%, #c4a06400);
    pointer-events: none;
  }
  #dd-reader .dd-reader-resume .btn {
    font-size: .8125rem;
    font-weight: 700;
    min-height: 50px;
    white-space: normal;
    text-align: center;
  }
}

@container entry-cover (max-height: 584px) {
  .dd-letter-layout .dd-hero-layout .dd-hero-premise {
    font-size: clamp(16px, 3.7cqh, 21px);
  }
  .dd-letter-layout .dd-hero-layout .dd-hero-action {
    min-height: clamp(48px, 9cqh, 56px);
  }
}

@media screen and (max-width: 1250px) and (min-width: 1101px) {
  .site-shell > .header .nav { gap: 9px; }
  .dd-letter-layout .dd-hero-layout .dd-hero-actions { gap: 10px; }
  .dd-letter-layout .dd-hero-layout .dd-hero-action { padding-inline: 15px; gap: 16px; }
}
@media screen and (max-width: 1100px) {
  .site-shell > .header .nav a {
    font-size: .875rem;
    min-height: 46px;
    padding: 12px 8px;
  }
  .site-shell > .header .nav .menu-buy { white-space: normal; }
}
@media screen and (max-width: 760px) {
  .dd-letter-layout .mobile-hero .dd-hero-premise { font-size: 1.1875rem; }
  .dd-letter-layout .mobile-hero .dd-hero-action {
    min-height: 52px;
    padding-inline: 15px;
    gap: 10px;
  }
  .dd-letter-layout .mobile-hero .dd-hero-action strong { font-size: .875rem; }
  .franchise-home .franchise-card h3 { font-size: .9375rem; }
  .franchise-home .franchise-card p { font-size: .78125rem; }
  .site-shell main .btn:where(:not(#dd-reader .btn, .dd-reader-entry .btn, .game-toolbar .btn, .game-wrap .btn)) {
    font-size: .8125rem;
    padding: 13px 17px;
    min-height: 52px;
    gap: 12px;
  }
  .site-shell main .collab-strip .btn {
    padding-inline: 10px;
    gap: 8px;
    letter-spacing: .035em;
  }
  .site-shell main .shop-message .book-shop-actions .btn {
    font-size: .8125rem;
    padding: 12px 9px;
    gap: 6px;
    min-height: 56px;
  }
}
@media screen and (max-width: 640px) {
  .site-shell > .header .nav.open { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 350px) {
  .site-shell > .header { gap: 6px; }
  .site-shell > .header .brand { font-size: 24px; }
}
@media screen and (forced-colors: active) {
  #dd-reader > .breadcrumbs::after { background: CanvasText; }
}
