/* A quieter editorial gateway using the existing Esotech/paper tokens. */
.editorial-preview .shell { padding-inline: 0; }
.editorial-preview .blog-hero { min-height: 0; background: var(--surface-deep); }
.editorial-preview .blog-hero::before { display: none; }
.editorial-preview .blog-hero__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 0; padding-block: clamp(9rem, 13vw, 12rem) clamp(4rem, 7vw, 7rem); gap: clamp(3rem, 6vw, 6rem); }
.editorial-preview .blog-hero h1 { max-width: 12ch; font-size: clamp(3rem, 5.4vw, 5.7rem); font-weight: 600; line-height: 1.02; letter-spacing: -.05em; }
.editorial-preview .blog-hero__copy > p:not(.blog-kicker) { max-width: 46ch; font-size: 1.1rem; line-height: 1.7; }
.editorial-preview .blog-hero__route { min-height: 2.75rem; }
.editorial-feature { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); color: var(--ink-strong); border: 1px solid var(--rule); text-decoration: none; background: var(--surface-raised); }
.editorial-feature > img,
.editorial-feature > picture > img { display: block; width: 100%; height: 100%; min-height: 23rem; object-fit: cover; object-position: 46% 30%; }
.editorial-feature__copy { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.5rem, 3vw, 2.5rem); }
.editorial-feature__copy > span { color: var(--brand-blue-bright); font: 500 .72rem/1.5 var(--font-data); }
.editorial-feature h2 { font-family: var(--font-heading); font-size: clamp(1.6rem, 2.1vw, 2.2rem); font-weight: 550; line-height: 1.14; letter-spacing: -.035em; margin-block: var(--space-5); }
.editorial-feature p { margin-bottom: var(--space-6); color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }
.editorial-feature strong { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 2.75rem; gap: var(--space-3); margin-top: auto; border-top: 1px solid var(--rule); color: var(--ink-strong); font-size: .85rem; font-weight: 500; white-space: nowrap; }
.editorial-feature b { color: var(--brand-blue-bright); transition: transform 180ms var(--ease-out); }
.editorial-feature:hover h2 { color: var(--brand-blue-bright); }
.editorial-feature:hover b { transform: translate(2px, -2px); }
.editorial-preview .blog-directory { padding-top: clamp(3.5rem, 6vw, 6rem); }
.editorial-preview .directory-head h2 { max-width: 28ch; font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.1; letter-spacing: -.04em; }
.editorial-preview .directory-filters__grid button { min-height: 0; padding: var(--space-5); }
.editorial-preview .directory-search input { min-width: 0; }
.editorial-preview .archive-latest__label { color: var(--blog-paper-soft); }
.editorial-preview .archive-row__copy h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.17; letter-spacing: -.025em; }
.editorial-preview .archive-summary__count { font-size: clamp(3rem, 5vw, 5rem); }
.editorial-preview main :where(h1, h2, h3) { min-width: 0; overflow-wrap: anywhere; }
.editorial-preview main :where(a, button, input):focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.editorial-preview #directory { scroll-margin-top: 7rem; }

@media (max-width: 65rem) {
  .editorial-preview .blog-hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .editorial-preview .blog-hero h1 { font-size: clamp(3rem, 7vw, 5rem); }
  .editorial-feature { max-width: 45rem; }
  .editorial-feature > img,
  .editorial-feature > picture > img { max-height: 26rem; min-height: 0; }
  .editorial-feature h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
}

@media (max-width: 42rem) {
  .editorial-preview .blog-hero__grid { padding-top: 8.5rem; padding-bottom: var(--space-8); }
  .editorial-preview .blog-hero h1 { font-size: clamp(2.65rem, 12vw, 4.5rem); }
  .editorial-preview .blog-hero__copy > p:not(.blog-kicker) { font-size: 1.05rem; }
  .editorial-feature { grid-template-columns: minmax(0, 1fr); }
  .editorial-feature > img,
  .editorial-feature > picture > img { height: 17rem; object-position: 50% 26%; }
  .editorial-feature__copy { padding: var(--space-5); }
  .editorial-feature h2 { max-width: 21ch; font-size: 1.8rem; }
  .editorial-preview .directory-filters__grid button { padding: var(--space-4); }
  .editorial-preview .directory-search input { font-size: 1rem; }
  .editorial-preview .archive-row__copy h3 { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-feature b { transition: none; }
}

/* Editorial prose, page header, and archive entries */
.sites-page-header { padding: 9rem 0 4rem; }
.sites-page-header .blog-hero__copy { max-width: 60rem; }
.sites-page-header h1 { font-size: clamp(2.25rem, 4.5vw, 4.5rem); line-height: 1.1; }
.blog-hero__copy h1 { overflow-wrap: anywhere; }
.sites-reading { background: var(--blog-paper, #eaf0f4); color: var(--blog-paper-ink, #182331); padding: clamp(2rem, 5vw, 5rem) max(1.25rem, calc((100% - 48rem) / 2)); }
.sites-reading .sites-cover { display: block; width: auto; max-width: 100%; height: auto; max-height: 32rem; margin: 0 auto 3rem; object-fit: contain; }
.sites-prose { font-size: 1.1rem; line-height: 1.8; overflow-wrap: anywhere; }
.sites-prose img { max-width: 100%; height: auto; }
.sites-prose pre { overflow-x: auto; padding: 1rem; background: var(--blog-paper-deep, #dce5ec); }
.sites-prose table { display: block; overflow-x: auto; max-width: 100%; }
.sites-prose a, .sites-topics-nav a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.sites-prose h2, .sites-prose h3 { font-family: var(--font-header, sans-serif); margin-top: 2rem; }
.sites-topics-nav { display: flex; gap: .75rem 1.5rem; flex-wrap: wrap; padding-top: 2rem; }
.sites-archive { background: var(--blog-paper, #eaf0f4); color: var(--blog-paper-ink, #182331); padding: clamp(2rem, 5vw, 5rem) 0; }
.sites-topics { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-block: 1.5rem 2rem; }
.sites-search { display: grid; gap: .5rem; max-width: 36rem; margin-bottom: 2rem; }
.sites-search > span { display: flex; gap: .5rem; }
.sites-search input { flex: 1 1 auto; min-width: 0; padding: .85rem; font: inherit; background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 0; }
.sites-search button { padding: .85rem 1rem; font: inherit; color: inherit; background: transparent; border: 1px solid currentColor; cursor: pointer; }
.sites-entry { display: flex; align-items: start; gap: clamp(1rem, 3vw, 2.5rem); border-top: 1px solid var(--blog-paper-rule, #bec9d2); padding-block: 1.75rem; content-visibility: auto; contain-intrinsic-size: auto 220px; }
.sites-entry[hidden] { display: none; }
.sites-entry__number { font: .8rem monospace; padding-top: .4rem; }
.sites-entry > a { flex: 0 0 10rem; color: inherit; }
.sites-entry > a img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.sites-entry__copy { min-width: 0; max-width: 52rem; overflow-wrap: anywhere; }
.sites-entry__copy h3 { font-family: var(--font-header, sans-serif); font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.35; margin: .5rem 0; }
.sites-entry__copy h3 a { color: inherit; text-decoration: none; }
.sites-entry__copy h3 a:hover { text-decoration: underline; }
.sites-entry__copy p { line-height: 1.6; }
.sites-entry__copy time, .sites-entry__copy small { font-size: .8rem; }
@media (max-width: 40rem) { .sites-entry > a { flex-basis: 5rem; } .sites-entry__number { display: none; } }
