/* Reading surfaces and the common site directory. */
main:has(.article-grid) .collection-header,
.article-header,
.legacy-header {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(38px, 5vw, 74px);
}
main:has(.article-grid) .collection-header { text-align: start; }
main:has(.article-grid) .collection-header .eyebrow,
.article-header .eyebrow,
.legacy-header .eyebrow { color: var(--accent); }
main:has(.article-grid) .collection-header h1,
.article-header h1,
.legacy-header h1 {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 65px);
  line-height: 1.08;
  letter-spacing: -.055em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
main:has(.article-grid) .collection-header p:not(.eyebrow) {
  margin: 16px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.6;
}
main:has(.article-grid) .collection-header + .section {
  padding-block: clamp(32px, 4.5vw, 70px) clamp(56px, 7vw, 100px);
}
.article-grid { gap: clamp(18px, 2vw, 30px); }
.article-card { border-color: var(--rule); border-radius: 18px; }
.article-card:hover { border-color: var(--accent); box-shadow: none; transform: none; }
.article-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.article-cover { aspect-ratio: 1200 / 630; background: #f7ede5; }
.article-card:hover .article-cover img { transform: none; }
.article-copy { padding: clamp(18px, 1.8vw, 28px); }
.article-meta { font-size: 10px; color: var(--accent); }
.article-copy h3 { font-size: clamp(21px, 1.8vw, 27px); color: var(--ink); line-height: 1.25; margin-bottom: 22px; }
.article-copy .text-link, .article-header .text-link { font-size: 14px; color: var(--accent); }
.article-header .text-link { margin-bottom: 16px; }
.article-header .eyebrow { margin: 0 0 12px; }
.article-date { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.article-updated { margin-top: 4px; }
.article-hero-cover { margin: 24px 0 0; border-radius: 16px; }

.article-layout, .legacy-content .narrow-container, .legacy-header .narrow-container { max-width: 760px; }
.article-layout, .legacy-content { padding-block: clamp(32px, 3.8vw, 58px) clamp(48px, 6vw, 90px); }
.prose { color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.8; }
.prose p { color: inherit; margin-block: 1em; }
.prose :is(h2, h3, h4, h5, h6, dt, strong) { color: var(--ink); }
.prose h2 { font-size: clamp(25px, 2.4vw, 34px); line-height: 1.24; margin: 1.7em 0 .55em; }
.prose :is(h3, h4, h5, h6) { font-size: clamp(21px, 1.75vw, 26px); line-height: 1.32; margin: 1.5em 0 .5em; }
.prose > :first-child, .prose > div:first-child > :first-child { margin-top: 0; }
.prose a { color: var(--accent); text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose :is(aside, blockquote) {
  background: #fcf1ee;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  border-radius: 0 14px 14px 0;
  padding: clamp(16px, 2vw, 27px);
}
.prose aside { font-size: 1em; }
.prose blockquote { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; }
.prose table { font-size: .9em; }
.prose :is(th, td) { border-color: var(--rule); }
.prose th { background: #f8f2ec; color: var(--ink); }
.legacy-content .prose > div:has(> div > div > img[src*="/images/references/"]) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 14px;
  margin-block: 24px;
}
.legacy-content .prose > div > div:has(img[src*="/images/references/"]) {
  display: grid;
  place-items: center;
  min-height: 100px;
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
}
.legacy-content .prose img[src*="/images/references/"] {
  width: 100%;
  max-width: 145px;
  max-height: 64px;
  margin: 0;
}

.site-footer, .home-page .site-footer {
  background: #f8f3ef;
  color: var(--ink);
  border-top: 1px solid var(--rule);
  padding-top: clamp(36px, 4.5vw, 64px);
}
.footer-top { gap: 30px 5%; padding-bottom: clamp(30px, 4vw, 56px); }
.footer-top > * { min-width: 0; }
.footer-brand > p, .footer-mini, .footer-location { color: var(--muted); }
.footer-brand > p { font-size: 16px; line-height: 1.6; }
.footer-mini { font-size: 12px; line-height: 1.65; }
.footer-column h2 { font-size: 15px; line-height: 1.4; margin-bottom: 12px; }
.footer-column > a {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding-block: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.footer-column > a:hover, .footer-bottom :is(a, button):hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-location { font-size: 13px; line-height: 1.6; margin-top: 15px; }
.footer-bottom { align-items: center; border-color: var(--rule); color: var(--muted); padding-block: 16px 42px; }
.footer-bottom small, .footer-bottom > div, .footer-bottom button { font-size: 12px; }
.footer-bottom :is(a, button) { padding-block: 6px; }

@media (min-width: 850px) {
  main:has(.article-grid) .collection-header .container {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: end;
    column-gap: clamp(38px, 5vw, 80px);
  }
  main:has(.article-grid) .collection-header .eyebrow { grid-column: 1 / -1; }
  .article-header .narrow-container:has(.article-hero-cover) {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    align-content: center;
    align-items: center;
    column-gap: clamp(40px, 5vw, 84px);
    max-width: var(--max-width);
  }
  .article-header .narrow-container > :not(.article-hero-cover) { grid-column: 1; }
  .article-header .article-hero-cover { grid-area: 1 / 2 / span 5 / 3; margin: 0; }
}

@media (max-width: 700px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { display: block; grid-column: 1 / -1; }
  .footer-brand > p { margin: 12px 0 6px; max-width: 42ch; }
  .footer-column:last-child { grid-column: 1 / -1; }
  .footer-bottom > div { margin-top: 6px; gap: 4px 18px; }
}
@media print {
  .article-header, .legacy-header { padding: 0; background: none; }
  .article-header .article-hero-cover { display: none; }
  .article-layout, .legacy-content { padding-block: 12pt; }
  .prose { color: #111; font-size: 12pt; }
}
