:root {
  --ink: #202b27;
  --paper: #f5f4ee;
  --panel: #e4eae1;
  --muted: #4b5c53;
  --rule: #b6c3b9;
  --link: #376253;
  --signal: #376253;
  --control-rule: #66776c;
  --chart-track: #d3ded5;
  --on-ink-muted: #e4eae1;
  --display: var(--serif);
  --wide: min(100% - 96px, 1240px);
}

:root[data-theme=dark] {
  --bg: #182622;
  --fg: #eff1e7;
  --panel: #24352e;
  --muted: #b7c8bc;
  --rule: #566e61;
  --link: #bfd2be;
  --signal: #bfd2be;
  --control-rule: #859c8f;
  --chart-track: #394e43;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #182622;
    --fg: #eff1e7;
    --panel: #24352e;
    --muted: #b7c8bc;
    --rule: #566e61;
    --link: #bfd2be;
    --signal: #bfd2be;
    --control-rule: #859c8f;
    --chart-track: #394e43;
  }
  :root:not([data-theme]) .mark-light { display: none; }
  :root:not([data-theme]) .mark-dark { display: block; }
}

body { font-size: 1rem; }
h1, h2, h3 { font-weight: 560; letter-spacing: -.041em; line-height: 1.1; }
.mark img { width: 100%; height: auto; }
.mark .mark-dark { display: none; }
:root[data-theme=dark] .mark-light { display: none; }
:root[data-theme=dark] .mark-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .mark .mark-dark { display: block; }
}

.utility, .eyebrow, .kicker, .cap {
  font-size: .8125rem;
  font-weight: 610;
  letter-spacing: .035em;
}
.eyebrow::before, .edition::before { content: none; }
.utility { min-height: 44px; }
.utility .edition { letter-spacing: .015em; text-transform: none; }
.utility-actions { text-transform: none; letter-spacing: 0; }
.utility-actions :is(a, button, summary) { min-height: 44px; align-content: center; }
.utility-actions { gap: clamp(9px, 2vw, 22px); }
.utility-actions .theme-caption { display: inline; }
.mast {
  display: grid;
  justify-content: center;
  justify-items: center;
  gap: 2px;
  padding: clamp(13px, 2.6vw, 32px) 0 clamp(16px, 2.3vw, 30px);
}
.mark { width: clamp(220px, 34vw, 462px); }
.mast-context { border: 0; padding: 0; text-align: center; }
.strap { font: 520 .875rem/1.35 var(--sans); letter-spacing: 0; color: var(--muted); }
.rail-nav { border-color: var(--rule); justify-content: center; font-size: .875rem; }
.rail-nav .nav-archive { margin-left: 0; }
.research-nav { color: var(--link); }

.hero, .dossier .hero, .index-edition .hero {
  margin: clamp(16px, 2vw, 26px) 0;
  padding: clamp(16px, 3vw, 40px);
  background: var(--panel);
  border: 0;
  color: var(--fg);
  gap: clamp(14px, 2vw, 30px);
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
}
.hero .hero-copy, .hero figure, .dossier .hero .hero-copy, .index-edition .hero .hero-copy,
.dossier .hero figure, .index-edition .hero figure {
  grid-column: auto;
  padding: 0;
  border: 0;
}
.hero h1, .dossier .hero h1, .index-edition .hero h1 {
  font: 560 clamp(2.1rem, 4.65vw, 4.35rem)/1.07 var(--serif);
  max-width: 20ch;
  letter-spacing: -.043em;
  word-spacing: normal;
  margin-block: .2em;
  text-wrap: balance;
}
.hero .kicker, .dossier .hero .kicker { color: var(--link); }
.hero .hero-deck, .dossier .hero .hero-deck { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.18rem); }
.hero figure img, .dossier .hero figure img, .index-edition .hero figure img { filter: none; height: auto; }
.article-cover img, .card img { height: auto; }
.hero figure.cover-original img, .article-cover.cover-original img { aspect-ratio: auto; }
.hero figure.oval-lead img { border-radius: 49% / 44%; }
.hero figure .cap, .dossier .hero figure .cap {
  position: static;
  background: transparent;
  color: var(--muted);
  padding: 8px 0 0;
  text-align: start;
}
.read-link { font-size: .9rem; font-weight: 630; border-bottom-width: 1px; }
.section, .footer { border-top: 1px solid var(--rule); }
.type-art, .type-art.alt, .type-art.red { background: var(--panel); color: var(--fg); }
.type-art b { font-weight: 550; text-transform: none; }
.type-art::after { height: 1px; }
.project, .research-landing, .special-head { background: var(--panel); color: var(--fg); border-top: 1px solid var(--rule); }
.project:not(.paper) :is(.secondary, .kicker, .cap), .research-landing :is(.secondary, .kicker, .cap) { color: var(--muted); }
.research-landing h1 {
  font: 560 clamp(2.25rem, 6vw, 5.2rem)/1.04 var(--serif);
  letter-spacing: -.048em;
  margin-block: 10px 12px;
}
.special-head img { filter: none; }
.article-head h1, .publication[data-format=research] .article-head h1, .publication[data-format=data] .article-head h1 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -.05em;
  word-spacing: normal;
}
.article-copy { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: min(100%, 66ch); }
.cap, .meta, .article-toc, .read-item p:last-child, .draft-label, .footer, .card .secondary { font-size: .875rem; }
.cap { line-height: 1.47; letter-spacing: 0; }
.article-cover .cap, .hero figure .cap { font-weight: 500; }
.meta .date-label, .share-status, .status-text, .field, .research-panel .research-version { font-size: .875rem; }
.filters input, .filters select { font-size: 1rem; }
.footer a { display: inline-block; padding-block: .3rem; }
.article-copy :is(p, li) { text-wrap: pretty; }
.article-copy blockquote { border-inline-start: 0; padding-inline-start: 0; max-width: 46ch; }
.publication[data-format=essay] .article-copy blockquote { border-top-width: 1px; }
.article-copy .footnotes { font-size: max(.875rem, .85em); }
.article-copy :is(table, pre), .commute-form, .research-chart { font-variant-numeric: lining-nums tabular-nums; }
.meta .draft-label { border-color: var(--link); color: var(--link); }
.aside, .publication[data-format=research] .article-head, .publication[data-format=data] .article-head, .research-panel {
  border-top: 1px solid var(--rule);
}
.research-method, .mechanism-intro > p:last-of-type { font-size: 1rem; }
.mechanism {
  color-scheme: inherit;
  background: var(--panel);
  color: var(--fg);
  border-top: 1px solid var(--rule);
}
.mechanism :is(.mechanism-intro > p:last-of-type, .mechanism-output span, .mechanism-note) { color: var(--muted); }
.mechanism :focus-visible { outline-color: var(--link); }
.mechanism input[type=range] { accent-color: var(--link); }
.mechanism-output strong[data-loss=true] { color: var(--link); }
.mechanism-output, .commute-form fieldset, .commute-results :is(th,td) { border-color: var(--rule); }
.commute-form input { color: var(--fg); background: var(--bg); border-color: var(--control-rule); }
.commute-form label, .commute-results table, .mechanism-note { font-size: .875rem; }
.commute-form input { font-size: 1rem; }
.commute-results { margin-top: 1.2rem; }
.commute-results :is(td, th:not(:first-child)) { text-align: end; }
.commute-threshold { margin-top: .75rem; }
.research-landing {
  background: transparent;
  padding: clamp(24px, 3.8vw, 52px) 0;
  margin: 0;
  border: 0;
}
.research-panel {
  width: 100%;
  max-width: none;
  padding: clamp(20px, 3vw, 38px) 0;
  background: transparent;
}
.research-panel .research-sort, .research-panel .action { min-height: 44px; font-size: .875rem; }
.research-panel .research-method { margin-top: 1rem; }
.research-chart { font-size: .9375rem; }
.research-landing > p:last-child { color: var(--muted); }
@media (min-width: 900px) {
  .research-panel {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 1.25rem clamp(30px, 5vw, 84px);
  }
  .research-panel header { grid-column: 1 / -1; }
  .research-panel .research-method, .research-dataset { margin: 0; }
  .research-dataset { grid-column: 2; }
}

@media (max-width: 1000px) { :root { --wide: calc(100% - 54px); } }
@media (max-width: 767px) {
  :root { --wide: calc(100% - 32px); }
  .utility { font-size: .8125rem; flex-wrap: wrap; gap: 0 11px; }
  .utility-actions { flex-wrap: wrap; }
  .strap { max-width: none; font-size: .8125rem; }
  .mobile-nav { grid-template-columns: minmax(0, 1fr) auto auto; border-color: var(--rule); }
  .mobile-nav :is(.research-nav, .nav-archive) { padding: 11px 8px; font-size: .875rem; font-weight: 630; text-decoration: none; }
  .mobile-nav :is(.research-nav, .nav-archive):hover { text-decoration: underline; }
  .mobile-nav summary { padding-inline: 5px; }
  .hero, .dossier .hero, .index-edition .hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero h1, .dossier .hero h1, .index-edition .hero h1 {
    font-size: clamp(2rem, 8.6vw, 3.45rem);
    letter-spacing: -.04em;
  }
  .article-head h1 { font-size: clamp(2.25rem, 8.6vw, 3.75rem); }
  .publication[data-format=essay] .article-head h1 {
    font-weight: 550;
    font-size: clamp(2.125rem, 8.7vw, 3.75rem);
    line-height: 1.13;
    letter-spacing: -.036em;
    text-wrap: balance;
  }
  .publication[data-format=essay] .article-copy > p:first-child::first-letter {
    float: none;
    font: inherit;
    color: inherit;
    margin: 0;
  }
  .article-copy { line-height: 1.7; }
  .commute-results table { font-size: .875rem; }
}
@media (max-width: 420px) {
  .utility { gap: 0; }
  .utility .edition { width: 100%; padding-top: 5px; }
  .utility-actions { position: relative; width: 100%; justify-content: space-between; }
  .utility-profiles { position: static; }
  .utility-profiles .profile-links {
    inset-inline: 0;
    margin-inline: auto;
    width: max-content;
    min-width: min(9rem, 100%);
    max-width: 100%;
  }
}
