@font-face {
  font-family: 'Newsreader';
  src: url('assets/fonts/newsreader-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('assets/fonts/source-serif-4-latin.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/geist-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Shared with the CGS website. */
  --bg: #f5f4ef;
  --surface: #ecebe6;
  --text: #151515;
  --muted: #65615b;
  --border: #d6d3cc;
  --accent: #365e36;
  --headline: 'Newsreader', Georgia, 'Times New Roman', serif;
  --body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-synthesis: none;
  font-optical-sizing: auto;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; font-size: 17px; line-height: 1.7; }
::selection { background: #dce7d9; }
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
.page { width: min(100% - 64px, 860px); margin-inline: auto; padding: 31px 0 29px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 10; padding: 8px 14px; background: var(--bg); font-family: var(--sans); }
.skip-link:focus { top: 12px; }

/* Original newspaper rules, with stronger section divisions and more space. */
.masthead { text-align: center; padding-bottom: 34px; border-bottom: 2px solid var(--text); }
h1 { margin: 36px 0 5px; font: 600 clamp(54px, 8vw, 76px)/1.03 var(--headline); letter-spacing: -.045em; }
.masthead-deck { font: 400 19px/1.5 var(--headline); color: var(--muted); }
.section-nav { display: flex; justify-content: center; align-items: center; gap: 23px; padding: 14px 0; border-top: 6px double var(--text); border-bottom: 2px solid var(--text); font: 16px/1.5 'Times New Roman', Times, 'Liberation Serif', serif; }
.section-nav a { color: var(--text); text-decoration: none; }
.section-nav a:hover { color: var(--accent); text-decoration: underline; }
.section-nav > span { color: var(--muted); }

.introduction { display: grid; grid-template-columns: minmax(0, 1fr) 182.4px; gap: 51px; padding: 44px 0 0; align-items: start; }
.intro-copy h2 { margin-bottom: 12px; font: 500 34px/1.1 var(--headline); letter-spacing: -.025em; }
.intro-copy p + p { margin-top: 13px; }
.intro-copy p { text-wrap: pretty; }
.portrait { margin-top: 7px; padding: 5px; border: 1px solid var(--border); }
.portrait img { width: 100%; aspect-ratio: 38 / 45; object-fit: cover; }
.contact-links { display: flex; flex-wrap: wrap; gap: 9px 22px; list-style: none; margin: 19px 0 0; padding: 0; font: 12px/1.7 var(--sans); }
.contact-links a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact-links a:hover { text-decoration-thickness: 2px; }

.section { margin-top: 60px; padding-top: 25px; border-top: 2px solid var(--text); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.section-heading h2 { font: 500 31px/1.2 var(--headline); letter-spacing: -.027em; }
.section-note { color: var(--muted); font: 11px/1.5 var(--sans); }
.news-list { list-style: none; padding: 0; margin: 26px 0 0; }
.news-list li { display: grid; grid-template-columns: 97px minmax(0, 1fr); gap: 22px; }
.news-list time { padding-top: 6px; color: var(--muted); font: 12px/1.6 var(--sans); white-space: nowrap; }
.news-list p { font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.news-list li + li { margin-top: 15px; }

.publication { margin-top: 30px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.publication + .publication { margin-top: 32px; }
.publication summary { display: grid; grid-template-columns: 32px minmax(0, 1fr) 24px; gap: 18px; align-items: start; padding: 23px 5px 24px 0; cursor: pointer; list-style: none; }
.publication summary::-webkit-details-marker { display: none; }
.publication summary::marker { content: ''; }
.paper-index { margin-top: 1px; font: 12px/1.6 var(--sans); color: var(--muted); }
.paper-kicker { display: block; margin-bottom: 10px; font: 10px/1.6 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.paper-year { margin-left: 9px; color: var(--muted); }
.paper-heading h3 { font: 500 28px/1.13 var(--headline); letter-spacing: -.017em; text-wrap: pretty; }
.paper-subtitle { display: block; }
.paper-authors { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.author-me { color: var(--text); }
.author-separator { padding-inline: 7px; }
.paper-venue { font: 11px/1.6 var(--sans); }
.disclosure-icon { position: relative; width: 24px; height: 24px; margin-top: 31px; color: var(--accent); }
.disclosure-icon::before, .disclosure-icon::after { content: ''; position: absolute; inset: 11px 5px auto; height: 1px; background: currentColor; }
.disclosure-icon::after { transform: rotate(90deg); transition: transform .18s ease; }
details[open] .disclosure-icon::after { transform: rotate(0deg); }
.publication summary:hover h3 { color: var(--accent); }
.publication summary:hover .disclosure-icon { background: var(--surface); }
.paper-body { margin: 0 47px 0 50px; padding: 21px 0 25px; border-top: 1px solid var(--border); font-size: 16px; line-height: 1.75; }
.paper-body p + p { margin-top: 13px; }
.paper-body .paper-standfirst { font: 500 23px/1.35 var(--headline); letter-spacing: -.01em; }
.paper-links { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 21px; font: 12px/1.6 var(--sans); }
.paper-links a { text-decoration: none; }
.paper-links a:hover { text-decoration: underline; }
.paper-links a span { margin-left: 5px; }
.paper-links .project-link { border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.footer { display: flex; justify-content: space-between; gap: 12px 24px; margin-top: 64px; padding-top: 19px; border-top: 3px double var(--border); font: 10px/1.7 var(--sans); color: var(--muted); }
.footer > span > span { padding-inline: 5px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 640px) {
  .page { width: calc(100% - 40px); padding-top: 21px; }
  .masthead { padding-bottom: 28px; }
  h1 { margin-top: 30px; }
  .masthead-deck { font-size: 17px; }
  .section-nav { gap: 18px; padding-block: 13px; font-size: 15px; }
  .introduction { grid-template-columns: minmax(0, 1fr) 134.4px; gap: 23px; padding-top: 36px; }
  .intro-copy h2 { font-size: 31px; }
  .intro-copy { display: contents; }
  .intro-copy h2 { grid-column: 1; align-self: end; margin-bottom: 0; }
  .intro-copy p { grid-column: 1 / -1; }
  .intro-copy p + p { margin-top: -10px; }
  .portrait { grid-column: 2; grid-row: 1; width: 134.4px; margin-top: 0; padding: 4px; }
  .portrait img { aspect-ratio: 1; }
  .contact-links { grid-column: 1 / -1; margin-top: -5px; }
  .section { margin-top: 48px; padding-top: 23px; }
  .section-heading { flex-wrap: wrap; gap: 6px 14px; }
  .section-heading h2 { font-size: 29px; }
  .news-list li { grid-template-columns: 77px minmax(0, 1fr); gap: 13px; }
  .news-list time { font-size: 11px; }
  .publication summary { grid-template-columns: 22px minmax(0, 1fr) 19px; gap: 10px; padding-block: 21px; }
  .paper-heading h3 { font-size: 25px; line-height: 1.15; }
  .paper-kicker { font-size: 9px; letter-spacing: .025em; }
  .paper-year { margin-left: 4px; }
  .paper-authors { font-size: 13px; }
  .disclosure-icon { width: 19px; }
  .paper-body { margin-inline: 32px 0; }
  .paper-body .paper-standfirst { font-size: 22px; }
  .footer { flex-wrap: wrap; margin-top: 48px; }
}
@media (max-width: 360px) {
  .section-nav { gap: 10px; }
  .news-list li { grid-template-columns: 1fr; gap: 7px; }
  .paper-year { display: inline-block; }
  .paper-authors .author-separator { padding-inline: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .page { width: 100%; padding: 0; }
  .section-nav, .disclosure-icon, .section-note, .skip-link { display: none; }
  .publication-details::details-content { content-visibility: visible; }
  .paper-body { display: block; }
  .publication { break-inside: avoid; }
}
