/* Readable architecture photographs and prose from laptops to wide PC screens. */
@media (min-width: 900px) {
  :root {
    --page-max: 2480px;
    --page-gutter: clamp(32px, 4vw, 96px);
    --text-body: clamp(18px, calc(15px + .25vw), 25px);
    --text-small: clamp(14px, calc(12px + .14vw), 18px);
    --text-label: clamp(15px, calc(12px + .18vw), 19px);
    --heading-section: clamp(30px, calc(18px + 1.1vw), 52px);
    --heading-card: clamp(24px, calc(18px + .45vw), 38px);
  }

  body { font-size: var(--text-body); }

  /* Bounded gutters stop padding from eating the content on a 4K display. */
  .wrap, .header-inner, footer, .stat-strip {
    width: min(calc(100% - 2 * var(--page-gutter)), var(--page-max));
    max-width: var(--page-max);
    margin-inline: auto;
    padding-left: 0;
    padding-right: 0;
  }
  .header-inner { min-height: 108px; gap: 28px; }
  .brand { font-size: clamp(13px, .8vw, 19px); }
  .brand-icon { font-size: clamp(40px, 2.6vw, 66px); }
  header nav { font-size: var(--text-label); gap: clamp(14px, 1.2vw, 34px); }
  .language { font-size: var(--text-small); }
  footer { font-size: var(--text-small); }
  footer .brand { font-size: var(--text-label); }
  .page-navigation { font-size: var(--text-label); gap: 1.6em; }
  .page-navigation a { min-height: 44px; display: inline-flex; align-items: center; }
  .breadcrumbs { font-size: var(--text-small); flex-wrap: wrap; }

  .editorial-hero, .cover-content { min-height: clamp(660px, 70vh, 1080px); }
  .editorial-hero h1 { font-size: clamp(44px, 4vw, 100px); max-width: 1500px; }
  .cover-description { font-size: var(--text-body); max-width: 46em; line-height: 1.95; }
  .eyebrow, .editorial-hero .eyebrow, .cover-topline, .cover-bottom {
    font-size: var(--text-small);
  }
  .button, .text-link, .section-heading > a { font-size: var(--text-label); }
  .button { padding: .75em 1.3em; }
  .stat-strip b { font-size: var(--text-small); }
  .stat-strip span { font-size: var(--text-body); }
  .section { padding-block: clamp(60px, 5vw, 112px); }
  .section-heading h2, .reading h2, .essay-body h2,
  .document-feature h2, .context-entry-grid h2,
  .historical-context-entry > h2, .lineage-visual > h2 {
    font-size: var(--heading-section);
  }
  .page-heading h1 { font-size: clamp(42px, 3.4vw, 88px); }
  .intro, .hero-subtitle, .page-heading > p:not(.eyebrow) { font-size: var(--text-body); }

  .cards { gap: clamp(28px, 2vw, 60px); }
  .featured-cards { gap: clamp(52px, 4vw, 100px) clamp(30px, 2.2vw, 68px); }
  .building-card h3, .article-cards h3, .entry-grid h2,
  .context-entry-grid h3, .people-list h2, .bibliography h2,
  .photo-register h2 { font-size: var(--heading-card); }
  .building-card > p:not(.location), .index-photo-criticism p, .building-stories p,
  .article-cards p, .entry-grid p, .context-entry-grid p,
  .statement p:not(.eyebrow), .idea-row p, .people-list article > p {
    font-size: var(--text-body);
    line-height: 1.95;
    max-width: none;
  }
  .card-top, .building-card .location, .tags span, .card-bottom,
  .index-photo-criticism a,
  .article-cards article > a, .context-entry-grid a,
  .results-bar, .filters label, .results-bar button,
  input[type=search], select { font-size: var(--text-small); }
  .card-photo img, .essay-photo img, .index-quoted-photo img {
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
  }
  .detail-photo {
    width: min(calc(100% - 2 * var(--page-gutter)), var(--page-max));
    max-width: var(--page-max);
  }
  .detail-photo img { max-height: 85vh; aspect-ratio: auto; object-fit: contain; }

  .detail-grid { grid-template-columns: clamp(250px, 24%, 420px) minmax(0, 1fr); gap: clamp(36px, 4vw, 96px); }
  .reading, .reading-wide { max-width: none; min-width: 0; }
  .reading p, .reading li, .essay-body p, .essay-body li,
  .bibliography p, .research-notebook .research-claim {
    font-size: var(--text-body);
    line-height: 2;
  }
  .reading p, .essay-body p { max-inline-size: 50em; }
  html[lang=en] .reading p, html[lang=en] .essay-body p { max-inline-size: 78ch; }
  .essay-layout { grid-template-columns: clamp(220px, 20%, 340px) minmax(0, 1fr); gap: clamp(40px, 4vw, 100px); }
  .essay-toc { font-size: var(--text-small); }
  .essay-body .eyebrow, .sources-list > li { font-size: var(--text-label); }
  dt, dd { font-size: var(--text-label); }
  .research-note h3, .building-stories h3 { font-size: var(--heading-card); }
  .research-note p, .sources-list > li > p,
  .section-evidence .sources-list li, .section-evidence .sources-list p,
  .source-kind, .research-notebook details, .lineage-steps p,
  .lineage-heading, .lineage-visual details, .photo-register p,
  .photo-register dl { font-size: var(--text-small); }
  .small, .translation-note, .source-locator, .research-notebook .small { font-size: var(--text-small) !important; }
  .research-notebook { max-width: min(100%, 1600px); }
  .building-overview h2 { font-size: var(--heading-card); }
  .building-overview dt, .building-overview p { font-size: var(--text-small); }
  .building-overview dd { font-size: var(--text-body); }
  .photo-reading-text h3, .idea-row h2, .lineage-steps h3 { font-size: var(--heading-card); }

  .research-image-gallery.comparison-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-trio > figure:first-child { grid-column: 1 / -1; }
  .comparison-trio img { max-height: 680px; }
  .essay-source-photo img { max-height: 85vh; }
  .photo-register > article { grid-template-columns: minmax(360px, .8fr) minmax(0, 1.2fr); }
  .photo-register img { height: auto; max-height: 70vh; object-fit: contain; }
  .document-thumbnails img { height: clamp(220px, 16vw, 400px); }
  .document-thumbnails a, .document-excerpt p, .reader-toolbar label,
  .reader-toolbar a, .reader-toolbar button, .reader-toolbar select { font-size: var(--text-small); }
  .housing-comparison, .coverage-list, table { font-size: var(--text-small); }
}

.building-key-points ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.building-key-points li { border-left: 2px solid #d7d8d0; padding-left: 1.2rem; }
.building-key-points li p { margin: 0 0 .5rem; }
.building-key-points li a { font-size: var(--text-small, 1rem); }

@media (min-width: 1800px) {
  .research-image-gallery.comparison-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .comparison-trio > figure:first-child { grid-column: auto; }
}

@media (min-width: 900px) and (max-width: 1180px) {
  .header-inner { flex-wrap: wrap; }
  header nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding-block: .5em; }
  .language { margin-left: auto; }
  .photo-register > article { grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); }
}

@media (max-width: 899px) {
  body, .reading p, .reading li, .essay-body p,
  .building-card > p:not(.location), .index-photo-criticism p, .article-cards p { font-size: 16px; }
  .small, .translation-note { font-size: 13px !important; }
  .section-evidence .sources-list li, .section-evidence .sources-list p { font-size: 13px; }
}
