.editorial-page {
  --content-panel: var(--surface);
  --content-copy: #cbc5bc;
  --content-quote: #e7e0d5;
}

.editorial-intro { padding: 100px 0 78px; }
.editorial-intro h1 { max-width: 990px; margin-top: 30px; font-size: clamp(58px, 7.2vw, 96px); font-weight: 400; line-height: 1.02; letter-spacing: -.065em; text-wrap: balance; }
.editorial-description { max-width: 480px; margin-top: 30px; color: var(--muted); font-size: 17px; line-height: 1.7; }

/* Company */
.team-intro h1 { max-width: 920px; }
.team-intro-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; }
.team-intro .editorial-description { max-width: 500px; }
.team-provenance { margin: 0 0 4px; font-size: 23px; letter-spacing: -.6px; white-space: nowrap; }
.team-provenance > span:first-child { display: block; margin-bottom: 15px; color: var(--muted); font: 10px/1.6 var(--mono); letter-spacing: .055em; text-transform: uppercase; }
.team-provenance .team-provenance-divider { margin-inline: 14px; color: var(--muted); font-size: 18px; }
.team-profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px 0 104px; border-top: 1px solid var(--line); }
.team-profile { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.team-portrait { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: grayscale(1); background: var(--content-panel); border: 1px solid var(--line); }
.team-profile-copy { padding-top: 27px; }
.team-profile h2 { font-size: 30px; font-weight: 400; line-height: 1.2; letter-spacing: -.045em; }
.team-profile p { margin-top: 15px; max-width: 380px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.team-contact { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 50px; padding: 76px 0 100px; border-top: 1px solid var(--line); }
.team-contact .overline { grid-column: 1 / -1; }
.team-contact h2 { max-width: 730px; font-size: clamp(38px, 4.9vw, 64px); font-weight: 400; line-height: 1.1; letter-spacing: -.055em; text-wrap: balance; }
.team-contact .hb-button { margin-bottom: 4px; }

/* Research index */
.blog-index { padding-bottom: 120px; }
.blog-index .editorial-description { max-width: 490px; }
.blog-section-heading { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.blog-section-heading > span { color: var(--muted); font: 11px/1.5 var(--mono); }
.blog-list-entry { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 62px; padding: 42px 0; border-bottom: 1px solid var(--line); }
.blog-entry-image { overflow: hidden; background: var(--content-panel); border: 1px solid var(--line); }
.blog-entry-image img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.blog-list-entry:hover .blog-entry-image img { transform: scale(1.025); }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--muted); font: 10px/1.7 var(--mono); letter-spacing: .035em; text-transform: uppercase; }
.blog-list-entry .post-meta { margin-bottom: 24px; }
.blog-list-entry .post-meta span { color: var(--ink); }
.blog-list-entry h2 { max-width: 550px; font-size: clamp(28px, 3vw, 40px); font-weight: 400; line-height: 1.16; letter-spacing: -.045em; text-wrap: balance; }
.blog-list-entry p { max-width: 450px; margin-top: 21px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.blog-list-entry .quiet-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 30px; }
.blog-list-entry:hover .quiet-link { text-decoration: underline; text-underline-offset: 5px; }

/* Engineering notes */
.blog-main { padding-top: 46px; padding-bottom: 110px; }
.blog-back { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font: 11px/1.5 var(--mono); }
.blog-back > span { font-size: 18px; }
.blog-back:hover { color: var(--ink); }
.post-header { margin: 68px 0 68px; padding-bottom: 52px; border-bottom: 1px solid var(--line); }
.post-header h1 { max-width: 1020px; margin-top: 26px; font-size: clamp(42px, 5.6vw, 76px); font-weight: 400; line-height: 1.08; letter-spacing: -.055em; text-wrap: balance; }
.post-subtitle { margin-top: 28px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.post-reading-grid { display: grid; grid-template-columns: 180px minmax(0, 730px); gap: clamp(45px, 6vw, 86px); max-width: 1080px; margin-inline: auto; }
.post-contents nav { position: sticky; top: 115px; }
.post-contents .overline { color: var(--muted); margin-bottom: 24px; font-size: 10px; }
.post-contents ol { list-style: none; margin: 0; padding: 0; }
.post-contents li + li { margin-top: 20px; }
.post-contents a { display: flex; align-items: baseline; gap: 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.post-contents a span { color: var(--accent); font: 10px/1.6 var(--mono); }
.post-contents a:hover { color: var(--ink); }
.post-body { min-width: 0; color: var(--content-copy); font-size: 16px; line-height: 1.85; overflow-wrap: break-word; }
.post-body p { margin: 0 0 25px; }
.post-body > p:first-child { color: var(--ink); font-size: 18px; line-height: 1.85; }
.post-body h2 { margin: 68px 0 29px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink); font-size: 34px; font-weight: 400; line-height: 1.2; letter-spacing: -.045em; scroll-margin-top: 110px; }
.section-number { display: none; }
.post-body h3 { margin: 36px 0 16px; color: var(--ink); font-size: 22px; font-weight: 500; line-height: 1.4; letter-spacing: -.03em; }
.post-body h2 + h3 { margin-top: 0; }
.post-body strong { color: var(--ink); font-weight: 500; }
.post-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 4px; }
.post-body a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.post-body p > em:only-child { display: block; margin: 32px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); color: var(--content-quote); font-size: 21px; font-style: normal; line-height: 1.65; }
.post-body pre { max-width: 100%; overflow-x: auto; margin: 26px 0; padding: 20px; background: var(--content-panel); border: 1px solid var(--line); font: 12px/1.8 var(--mono); }
.post-body pre code { font: inherit; white-space: pre; overflow-wrap: normal; }
.post-equation { max-width: 100%; overflow-x: auto; margin: 30px 0; padding: 10px 0; color: var(--ink); font-size: 14px; }
.post-equation .katex-display { margin: 0; padding: 3px 0; text-align: left; }
.post-equation .katex-display > .katex { white-space: nowrap; text-align: left; }
.post-body p .katex { font-size: 1.08em; }
.post-body figure { width: min(100%, 590px); margin: 36px auto; }
.post-body figure img { display: block; width: 100%; height: auto; }
/* Vector diagrams carry their own light labels and translucent surfaces. */
.post-body figure:not(.post-screenshot):not(.post-video) img { padding: 0; background: transparent; border: 0; }
.post-body figure.post-screenshot, .post-body figure.post-video { width: 100%; }
.post-body .post-screenshot a { display: block; cursor: zoom-in; }
.post-body .post-screenshot img { background: var(--content-panel); border: 1px solid var(--line); }
.post-body .post-video video { display: block; width: 100%; height: auto; background: var(--content-panel); border: 1px solid var(--line); }
.post-body figcaption { padding-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.post-body figcaption span { color: var(--ink); font: 10px/1.7 var(--mono); margin-right: 4px; }
.post-body .post-cta { margin: 50px 0 0; padding: 25px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); font-size: 25px; line-height: 1.5; letter-spacing: -.035em; }
.post-body .post-cta a { white-space: nowrap; }
.post-table { overflow-x: auto; margin: 30px 0; border: 1px solid var(--line); }
.post-table:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.post-table table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.post-table th, .post-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.post-table th:first-child, .post-table td:first-child { text-align: left; }
.post-table th { background: var(--content-panel); color: var(--ink); font: 10px/1.8 var(--mono); letter-spacing: .025em; text-transform: uppercase; }
.post-table td:not(:first-child) { font-family: var(--mono); font-size: 12px; }
.post-table td:last-child { color: var(--ink); }
.post-table tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 1100px) {
  .editorial-intro { padding-top: 76px; }
  .team-profiles { gap: 36px; }
  .team-provenance { font-size: 22px; }
  .blog-list-entry { gap: 36px; }
  .post-reading-grid { grid-template-columns: 150px minmax(0, 1fr); gap: 40px; }
  .post-contents a { font-size: 11px; }
}
@media (max-width: 760px) {
  .editorial-intro { padding: 64px 0 50px; }
  .editorial-intro h1 { margin-top: 26px; font-size: clamp(47px, 8.3vw, 64px); }
  .editorial-description { margin-top: 26px; font-size: 16px; max-width: 460px; }
  .team-intro-bottom { align-items: flex-start; flex-direction: column; gap: 30px; }
  .team-provenance { font-size: 24px; margin: 0; }
  .team-provenance > span:first-child { margin-bottom: 11px; }
  .team-profiles { gap: 26px; padding: 32px 0 72px; }
  .team-profile h2 { font-size: 26px; }
  .team-profile p { font-size: 14px; margin-top: 12px; }
  .team-contact { grid-template-columns: 1fr; justify-items: start; gap: 25px; padding: 52px 0 72px; }
  .team-contact h2 { max-width: 530px; font-size: 44px; }
  .team-contact .hb-button { margin-top: 4px; }
  .blog-index { padding-bottom: 76px; }
  .blog-list-entry { grid-template-columns: 1fr; gap: 30px; padding: 28px 0 36px; }
  .blog-list-entry h2 { max-width: 570px; font-size: 34px; }
  .blog-list-entry p { font-size: 15px; margin-top: 18px; }
  .blog-list-entry .quiet-link { margin-top: 24px; }
  .blog-entry-image img { aspect-ratio: 16 / 9; }
  .post-meta { font-size: 10px; gap: 8px 18px; }
  .blog-main { padding-top: 32px; padding-bottom: 72px; }
  .post-header { margin: 44px 0 42px; padding-bottom: 32px; }
  .post-header h1 { font-size: 47px; margin-top: 24px; }
  .post-subtitle { margin-top: 24px; font-size: 16px; }
  .post-reading-grid { display: block; max-width: 650px; }
  .post-contents { display: none; }
  .post-body { font-size: 16px; }
  .post-body > p:first-child { font-size: 18px; }
  .post-body h2 { font-size: 31px; margin-top: 52px; }
  .post-body h3 { font-size: 21px; }
}
@media (max-width: 480px) {
  .editorial-intro { padding-top: 46px; }
  .editorial-intro h1 { font-size: clamp(40px, 11vw, 52px); margin-top: 24px; }
  .editorial-description { font-size: 15px; line-height: 1.75; }
  .team-profiles { grid-template-columns: 1fr; gap: 43px; }
  .team-profile-copy { padding-top: 23px; }
  .team-profile p { max-width: 330px; }
  .team-contact h2 { font-size: 39px; }
  .blog-list-entry { gap: 26px; }
  .blog-list-entry h2 { font-size: 30px; }
  .blog-list-entry .post-meta { margin-bottom: 20px; }
  .blog-list-entry p { font-size: 14px; }
  .blog-list-entry .quiet-link { font-size: 12px; }
  .blog-back { font-size: 10px; }
  .post-header { margin-top: 36px; }
  .post-header h1 { font-size: 38px; line-height: 1.1; }
  .post-subtitle { font-size: 15px; }
  .post-body { font-size: 15px; line-height: 1.85; }
  .post-body > p:first-child { font-size: 17px; }
  .post-body h2 { font-size: 29px; margin-top: 48px; }
  .post-body h3 { font-size: 21px; }
  .post-body figure { margin-block: 29px; }
  .post-body figcaption { font-size: 11px; }
  .post-body p > em:only-child { font-size: 21px; padding-left: 18px; }
  .post-equation { font-size: 12px; }
  .post-body .post-cta { font-size: 23px; }
  .post-table th, .post-table td { padding: 12px 10px; }
  .post-table th { font-size: 9px; }
  .post-table td:not(:first-child) { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .blog-entry-image img { transition: none; } }
@media print {
  body.editorial-page { --paper: #fff; --ink: #111; --muted: #555; --line: #ccc; --content-panel: #f4f4f4; --content-copy: #111; --content-quote: #111; background: white; color: #111; }
  .editorial-page .hb-header, .editorial-page .hb-footer, .blog-back, .post-contents { display: none; }
  .blog-main { width: 100%; padding: 0; }
  .post-header { margin-top: 0; }
  .post-header h1 { font-size: 40px; }
  .post-reading-grid { display: block; max-width: none; }
  .post-body { font-size: 11pt; }
  .post-body figure, .post-table, .post-equation { break-inside: avoid; }
}
