/* Page transitions are opacity-only. Avoid blur/scale transforms because they
   force the full page to re-rasterize and create visible shake during routing. */
main {
  opacity: 1;
  will-change: opacity;
}

@media (prefers-reduced-motion: reduce) {
  main {
    will-change: auto;
  }
}

/* Homepage lead image: crop every source photo into one consistent portrait
   frame instead of letting the source image decide the homepage layout. */
.feature-image.has-photo {
  align-self: center;
  aspect-ratio: 4 / 5;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  display: block;
  height: auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: min(100%, 520px);
}

.feature-image.has-photo .feature-photo {
  display: block;
  height: 100%;
  inset: 0;
  max-height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
}

@media (min-width: 1051px) {
  .home-feature {
    grid-template-columns: minmax(0, 390px) minmax(0, 460px);
    justify-content: center;
  }

  .home-feature .feature-visual {
    align-self: stretch;
    padding: 0;
    transform: none;
  }

  .feature-image.has-photo {
    align-self: stretch;
    aspect-ratio: auto;
    flex: 1 1 auto;
    height: auto;
    width: 100%;
  }
}

/* Article gallery: reserve one stable frame before images load and while the
   slideshow changes. Photos are letterboxed against black, so neither a slow
   image nor a different aspect ratio can move the article text below it. */
.article-gallery-track {
  aspect-ratio: 16 / 9;
  background: var(--bg);
  height: auto;
  min-height: 0;
}

.article-hero-image {
  height: 100% !important;
  inset: 0;
  position: absolute;
}

.article-hero-image img {
  max-height: 100%;
}

.footer-legal {
  align-items: center;
  color: #8c8c8c;
  display: inline-flex;
  font-size: inherit;
  gap: 0.6em;
  text-transform: uppercase;
}

.copyright {
  font-size: 12px;
}

.footer-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
}

.footer-meta p {
  margin: 0;
}

.footer-separator {
  color: #8c8c8c;
}

.footer-partner {
  align-items: center;
  color: #8c8c8c;
  display: flex;
  font-size: 12px;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: flex-end;
  margin-left: auto;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-partner a,
.footer-partner img {
  display: block;
}

.footer-partner img {
  height: 76px;
  object-fit: contain;
  width: auto;
}

.footer-legal a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  border-color: var(--footerText);
  color: var(--footerText);
}

/* Legal pages keep the site's monochrome editorial look while making long
   statutory text comfortable to scan on large and small screens. */
.legal-page {
  max-width: 920px;
  padding-bottom: 96px;
  padding-top: 54px;
}

.legal-page > h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(48px, 8vw, 104px);
  letter-spacing: -0.055em;
  line-height: 0.9;
  margin: 0 0 52px;
  overflow-wrap: anywhere;
}

.legal-content {
  border-top: 1.5px solid var(--ink);
  max-width: 780px;
  padding-top: 34px;
}

.legal-content section + section {
  border-top: 1px solid #343434;
  margin-top: 36px;
  padding-top: 32px;
}

.legal-content h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 18px;
}

.legal-content h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  line-height: 1.2;
  margin: 28px 0 12px;
}

.legal-content p,
.legal-content li,
.legal-content address {
  font-size: 17px;
  line-height: 1.7;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content address {
  font-style: normal;
  margin-bottom: 20px;
}

.legal-content ul {
  margin: 0 0 20px;
  padding-left: 24px;
}

.legal-content a {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.legal-content .legal-note {
  color: var(--muted);
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
    line-height: 1.5;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-legal {
    gap: 0.55em;
  }

  .copyright {
    font-size: 10px;
  }

  .footer-meta {
    gap: 0.55em;
  }

  .footer-partner {
    font-size: 10px;
    justify-content: flex-start;
    margin-left: 0;
  }

  .footer-partner img {
    height: 60px;
  }

  .legal-page {
    padding-bottom: 62px;
    padding-top: 34px;
  }

  .legal-page > h1 {
    font-size: clamp(42px, 14vw, 68px);
    margin-bottom: 34px;
  }

  .legal-content {
    padding-top: 26px;
  }

  .legal-content section + section {
    margin-top: 28px;
    padding-top: 26px;
  }

  .legal-content h2 {
    font-size: 22px;
  }

  .legal-content h3 {
    font-size: 18px;
  }

  .legal-content p,
  .legal-content li,
  .legal-content address {
    font-size: 15px;
    line-height: 1.65;
  }

  .nav-row {
    height: 58px;
  }

  .nav-inner {
    padding: 0 8px;
  }

  .nav-links {
    gap: 2px;
    font-size: 15.5px;
  }

  .nav-links a {
    padding: 6px 10px;
  }

  .button {
    font-size: 19px;
    padding: 8px 20px;
  }

  .eyebrow {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .home-feature {
    row-gap: 12px;
    padding-top: 22px;
    padding-bottom: 28px;
  }

  .feature-copy {
    padding: 0;
  }

  .feature-copy h2 {
    font-size: 30px;
    line-height: 1.02;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
  }

  .feature-copy p {
    font-size: 16.5px;
    line-height: 1.55;
    margin-bottom: 2px;
  }

  .feature-meta {
    font-size: 12.5px;
    margin-bottom: 14px;
  }

  .feature-visual {
    align-items: center;
    margin: 0;
    width: 100%;
  }

  .feature-image.has-photo {
    align-self: center;
    height: auto;
    margin-inline: auto;
    min-height: 0;
    max-width: 100%;
    width: 100%;
  }

  .feature-image.has-photo .feature-photo {
    height: 100%;
    max-width: none;
    width: 100%;
  }

  .latest-button-mobile {
    margin-top: 6px;
  }

  .home-about {
    padding: 34px 0 44px;
  }

  .home-about h1 {
    font-size: 38px;
    letter-spacing: -2px;
    line-height: 0.98;
  }

  .home-about-copy > p {
    font-size: 15.5px;
    line-height: 1.6;
    margin-top: 14px;
  }

  .listing-header {
    gap: 18px;
  }

  .section-title {
    font-size: 40px;
    letter-spacing: -2px;
  }

  .listing-header p {
    font-size: 15.5px;
    line-height: 1.5;
  }

  .article-card h2 {
    font-size: 27px;
    line-height: 1.05;
  }

  .article-card p,
  .article-card .card-subtitle {
    font-size: 16px;
    line-height: 1.5;
  }

  .read-more {
    font-size: 15px;
  }

  .article-page {
    padding-top: 30px;
  }

  .article-category {
    font-size: 15px;
  }

  .article-title {
    font-size: 40px;
    letter-spacing: -2px;
    line-height: 1;
  }

  .byline {
    font-size: 14px;
    margin: 12px 0;
  }

  .caption,
  .gallery-status {
    font-size: 12.5px;
  }

  .article-body,
  .article-body p,
  .article-body li {
    font-size: 16px;
    line-height: 1.62;
  }

  .artist-bio h2 {
    font-size: 24px;
  }

  .artist-bio p {
    font-size: 15px;
    line-height: 1.55;
  }

  .hero {
    padding: 36px 0;
  }

  .hero h1 {
    font-size: 42px;
    letter-spacing: -2px;
    line-height: 1;
  }

  .hero p,
  .contact-box {
    font-size: 16px;
  }

  .copyright,
  .site-footer {
    font-size: 10px;
  }
}
