/* The approved logo keeps its own stroke weights and follows the scene ink. */
.brand-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: inherit;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: 160px;
  height: auto;
  aspect-ratio: 714.525281 / 315.64;
  overflow: visible;
}

/* Motion is confined to the artwork; the link and its hit area stay still. */
.brand-motion { opacity: 0; pointer-events: none; }
.brand-still { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .brand-motion { display: none !important; }
  .brand-still { opacity: 1 !important; }
}

/* Keep the B above the header rule while its thin lower loop crosses below. */
.site-header { overflow: visible; }
.site-header .brand-link {
  align-self: flex-start;
  margin-top: 4px;
}
.site-header .brand-logo { width: 224px; }

.header-cord {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  fill: currentColor;
}

.footer-logo { width: 230px; }

@media (max-width: 900px) {
  .site-header .brand-link { margin-top: 2px; }
  .site-header .brand-logo { width: 192px; }
  .edition { top: 104px; }
  .footer-logo { width: 200px; }
}

@media (max-width: 600px) {
  .site-header { gap: 16px; }
  .site-header .brand-logo { width: min(192px, calc(88vw - 122px)); }
  .footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 25px 18px;
  }
  .footer-logo { width: min(176px, 100%); }
  .footer-top .brand-link { min-width: 0; }
  .footer-top .back-top {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 360px) {
  .site-header .brand-link { margin-top: 8px; }
  .site-header .brand-logo { width: min(176px, calc(88vw - 122px)); }
  .edition { top: 100px; }
}

/* Keep the overhang clear of the story labels on very short phones. */
@media (max-width: 600px) and (max-height: 650px) {
  .site-header .brand-link { margin-top: 5px; }
  .site-header .brand-logo { width: min(180px, calc(88vw - 122px)); }
  .edition { top: 90px; }
}

@media print {
  .header-cord { display: none; }
  .brand-motion { display: none !important; }
  .brand-still { opacity: 1 !important; }
}
