/* 0.3.9 — one quiet reading scale, independent of title length.
   The approved homepage masthead, photo crop, fonts and colours are unchanged. */
:root {
  --ihb-reading-size: clamp(1.1875rem, 1rem + .2vw, 1.25rem);
  --ihb-title-size: clamp(2.25rem, 1.5rem + 1.8vw, 3.25rem);
  --ihb-heading-size: clamp(1.75rem, 1.5rem + .4vw, 2rem);
  --ihb-subheading-size: clamp(1.375rem, 1.25rem + .2vw, 1.5rem);
}

.article-hero h1,
.article-hero--without-image h1,
.system-main .page-intro h1,
.system-main .author-portrait h1,
.system-main .page-404 h1 {
  max-width: 24ch;
  font-size: var(--ihb-title-size);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.018em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.article-body,
.block-specimen {
  width: min(100%, 780px);
  font-size: var(--ihb-reading-size);
  line-height: 1.65;
}
.article-body > p,
.block-specimen > p { margin-bottom: 1.2em; }
.article-body .article-lead {
  max-width: 100%;
  margin-bottom: 1.5em;
  font-size: clamp(1.375rem, 1.1rem + .5vw, 1.625rem);
  line-height: 1.5;
}
.article-body h2,
.block-specimen h2,
.block-specimen .ihb-dossier h2 {
  margin: 1.75em 0 .65em;
  font-size: var(--ihb-heading-size);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.012em;
}
.article-layout { padding-block: clamp(3rem, 4vw, 4rem); }
.article-body h3,
.block-specimen h3,
.block-specimen .ihb-dossier h3 {
  margin: 1.6em 0 .6em;
  font-size: var(--ihb-subheading-size);
  font-weight: 400;
  line-height: 1.25;
}
.article-body h4,
.block-specimen h4,
.block-specimen .ihb-dossier h4 { font-size: 1.25rem; line-height: 1.3; }
.article-body blockquote {
  font-size: clamp(1.25rem, 1.1rem + .3vw, 1.5rem);
  line-height: 1.55;
}
.block-specimen .ihb-dossier__part-body > p {
  font-size: var(--ihb-reading-size);
  line-height: 1.65;
}

.system-main .system-section h2,
.system-main .empty-state h2,
.section-heading h2,
.about h2,
.search-dialog h2 {
  font-size: var(--ihb-heading-size);
  font-weight: 400;
  line-height: 1.2;
}
.system-main .reading-entry h2,
.system-main .reading-entry h3,
.article-after__links strong,
.story-card h3,
.correspondence-card h3 {
  font-size: clamp(1.5rem, 1.25rem + .5vw, 1.875rem);
  font-weight: 400;
  line-height: 1.2;
}
.path-list__identity strong { font-size: clamp(1.5rem, 1.25rem + .5vw, 1.875rem); }
.correspondence-link p { font-size: 1.5rem; }
.origin-manifesto blockquote,
.origin-manifesto blockquote.origin-manifesto__testimony {
  font-size: clamp(1.25rem, 1.1rem + .4vw, 1.625rem);
  line-height: 1.5;
}
.section-heading { margin-bottom: clamp(2rem, 3vw, 3rem); }
.hero h2 {
  font-size: clamp(2rem, 1.75rem + .65vw, 2.5rem);
  line-height: 1.15;
}
.hero__lead { font-size: 1.125rem; line-height: 1.6; }
.system-main .page-intro { padding-top: 2.5rem; padding-bottom: 2rem; }
.system-main .page-intro__lead { font-size: 1.0625rem; line-height: 1.65; }
.system-main .system-section { padding-top: 2.5rem; padding-bottom: 3rem; }
.system-main .reading-entry__byline { font-size: .8125rem; }

/* A shorter title should not leave an oversized empty title panel. */
@media (min-width: 841px) {
  .article-hero,
  .article-hero__image { min-height: 520px; }
  .article-hero__title { padding-top: 5.5rem; padding-bottom: 3rem; }
  .article-hero--without-image { min-height: 0; }
  .article-hero--without-image .article-hero__title { min-height: 0; padding-block: 3rem; }
}

/* Authors share the category reading list; their own introductions remain. */
.discovery-page--author .author-portrait {
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
}
.discovery-page--author .author-portrait figure { min-height: 0; }
.discovery-page--author .author-portrait img { max-height: 520px; object-position: center 30%; }
.discovery-page--author .author-portrait__copy { padding: clamp(2rem, 3vw, 3rem); }
.discovery-page--author .author-portrait p:not(.section-label) { font-size: 1.0625rem; line-height: 1.65; }
.discovery-page--author .corpus-count { margin-top: 1.25rem; padding-top: 1rem; }
.discovery-page--author .corpus-count strong { font-size: 2.75rem; }

@media (max-width: 700px) {
  .discovery-page--author .author-portrait { grid-template-columns: 1fr; }
  .discovery-page--author .author-portrait figure { height: 290px; }
  .discovery-page--author .author-portrait img { object-position: center 22%; }
}
@media (max-width: 600px) {
  :root { --ihb-reading-size: 1.125rem; }
  .system-main .page-intro { padding-top: 1.75rem; }
  .discovery-page--author > .filter-band { display: none; }
  .article-body h2, .block-specimen h2 { margin-top: 1.5em; }
}
