/* ------------------------------------------------------------------
   jean-sebastienfontaine.com
   One stylesheet for the whole site. No frameworks, no dependencies.
   Fonts are served from your own server (see /fonts), so this page
   makes no requests to anyone else.
   ------------------------------------------------------------------ */

/* ---------- fonts ---------- */

/* Source Serif 4 — body text, headings, paper titles. Variable weight. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('fonts/source-serif-4.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('fonts/source-serif-4-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('fonts/source-serif-4-italic.woff2') format('woff2');
}

/* Inter — navigation, labels, citation metadata. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-ext-400.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-ext-600.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- design tokens ---------- */

:root {
  --ink:       #1e2140;   /* main text                                */
  --ink-soft:  #5f6480;   /* authors, journals, dates                 */
  --ink-faint: #8b90a6;   /* footer                                   */
  --accent:    #2c698d;   /* links — your original blue               */
  --rule:      #e6ebeb;   /* hairlines                                */
  --rule-firm: #cbdcdc;   /* section rules, slightly teal             */
  --page:      #fdfdfc;   /* a hair off pure white, easier on the eye */

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
           Roboto, 'Helvetica Neue', Arial, sans-serif;

  --measure: 44rem;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0 2rem;
  background: var(--page);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;      /* 18px */
  line-height: 1.72;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4.5rem 0 5rem;
}

p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 0.12s ease;
}
a:hover, a:focus-visible { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- masthead ---------- */

header.site { margin-bottom: 3.5rem; }

.site-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.site-role {
  margin: 0.55rem 0 0;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
}

nav.site {
  margin-top: 1.9rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule-firm);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}

nav.site a { color: var(--ink-soft); }
nav.site a:hover { color: var(--accent); }
nav.site a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- about page ---------- */

.intro {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

/* The portrait, and the photo hiding behind it.
   A hidden checkbox drives the swap — no JavaScript involved. */

.photo-toggle { display: none; }

.photo-swap {
  flex: 0 0 auto;
  display: block;
  cursor: pointer;
  border-radius: 50%;
}
.photo-swap:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }

.photo-swap img {
  display: block;
  width: 158px;
  height: 158px;
  border-radius: 50%;
  object-fit: cover;
}

.photo-swap .photo-a { object-position: center center; }
.photo-swap .photo-b { display: none; object-position: 42% 42%; }

.photo-toggle:checked + .photo-swap .photo-a { display: none; }
.photo-toggle:checked + .photo-swap .photo-b { display: block; }

/* Text for screen readers only — visible to assistive software, not on screen */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.intro > div { max-width: 34rem; }

.links {
  margin: 3rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-family: var(--sans);
  font-size: 0.94rem;
}
.links li { margin: 0; }

/* ---------- research / policy pages ---------- */

.lede {
  margin: 0 0 1rem;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.65;
}

/* ---------- sections ---------- */

h2.section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4em 1em;
  margin: 4rem 0 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule-firm);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.to-top {
  font-weight: 600;
  white-space: nowrap;
}

h2.section:first-of-type { margin-top: 1rem; }
p.lede + h2.section { margin-top: 2.75rem; }

h3.subhead {
  margin: 2.5rem 0 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

ul.papers { margin: 0; padding: 0; list-style: none; }

.paper {
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.paper:last-child { border-bottom: none; }

.paper .title {
  display: block;
  font-family: var(--serif);
  font-size: 1.135rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

/* A linked title stays a title: it takes the text colour, and only
   reveals itself as a link on hover. Keeps long lists calm. */
.paper .title a {
  color: inherit;
  text-decoration: none;
}
.paper .title a:hover,
.paper .title a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.paper .meta {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.paper .venue { font-style: italic; }

.paper .status {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

.paper .actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-family: var(--sans);
  font-size: 0.855rem;
  letter-spacing: 0.005em;
}

/* the compact Bank of Canada listing */
.compact .paper .actions { margin-top: 0.3rem; font-size: 0.82rem; }
.compact { margin-top: 0.4rem; }
.compact .paper { padding: 0.85rem 0; border-bottom: none; }
.compact .paper .title { font-size: 1.05rem; font-weight: 500; }
.compact .paper .meta { margin-top: 0.15rem; font-size: 0.875rem; }

/* ---------- contact ---------- */

.portrait-figure {
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.portrait-figure img {
  display: block;
  width: 100%;
  max-width: 26rem;   /* kept modest — it is a photograph, not a hero image */
  height: auto;
  border-radius: 2px;
}
.portrait-figure figcaption {
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.contact p { margin: 0 0 1.1rem; }

/* ---------- footer ---------- */

footer.site {
  margin-top: 5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------------
   Phones and narrow windows — the part the old site never had.
   ------------------------------------------------------------------ */

@media (max-width: 44rem) {
  body { padding: 0 1.35rem; font-size: 1.0625rem; }
  .wrap { padding: 2.75rem 0 3.5rem; }

  header.site { margin-bottom: 2.5rem; }
  .site-name { font-size: 1.72rem; }
  nav.site { margin-top: 1.5rem; gap: 1.5rem; }

  .intro { flex-direction: column; gap: 1.5rem; }
  .photo-swap img { width: 124px; height: 124px; }

  .links { gap: 1.3rem; }
  h2.section { margin-top: 3rem; }
  .paper { padding: 1.45rem 0; }
  .paper .title { font-size: 1.08rem; }
}

/* Readers who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ------------------------------------------------------------------
   Conference series page
   Added August 2026. Nothing above this line was changed.
   ------------------------------------------------------------------ */

/* A sentence describing an entry. Serif, so it reads as prose rather
   than as metadata. */
.blurb {
  display: block;
  margin-top: 0.5rem;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* The four figures above the chart. */
ul.stats {
  margin: 1.7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem 1.5rem;
}
ul.stats li { margin: 0; }

.stat-n {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.stat-l {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* The chart is drawn in the page as SVG — it stays sharp at any size,
   costs no extra file, and picks up the colours above automatically.
   To update it, change the bar heights and the labels in the HTML. */
figure.chart { margin: 2.6rem 0 0; }
figure.chart svg { display: block; width: 100%; height: auto; }

.chart-title {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.chart-legend {
  margin: 0.55rem 0 1rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.key-item { display: inline-block; margin-right: 1.6rem; }
.key {
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  margin-right: 0.42rem;
  vertical-align: -0.02rem;
  border-radius: 2px;
}
.key-solid { background: var(--accent); }
.key-open {
  background-color: #eef4f7;
  background-image: repeating-linear-gradient(
    45deg, var(--accent) 0 2px, #eef4f7 2px 6px);
}

.chart-note {
  margin-top: 1rem;
  max-width: 38rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

figure.chart .grid line { stroke: var(--rule); stroke-width: 1; }
figure.chart .axis      { stroke: var(--rule-firm); stroke-width: 1; }
figure.chart .bar       { fill: var(--accent); }
figure.chart .bar-open  { fill: url(#hatch); stroke: var(--accent); stroke-width: 1; }
figure.chart .hatch-bg  { fill: #eef4f7; }
figure.chart .hatch-line { stroke: var(--accent); }

/* Reference lines — the two journals the cohort averages are compared against. */
figure.chart .ref line {
  stroke: var(--ink-faint);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}
/* Anchored to the right edge so they grow inward — they can never be
   clipped, whatever the font size. */
figure.chart .ref text {
  font-size: 10px;
  fill: var(--ink-faint);
  text-anchor: end;
}

figure.chart text { font-family: var(--sans); fill: var(--ink-soft); }
figure.chart .ylab text { font-size: 11px; text-anchor: end; }
figure.chart .val  text { font-size: 12px; font-weight: 600; text-anchor: middle;
                          fill: var(--ink); }
figure.chart .xlab text { font-size: 12px; text-anchor: middle; fill: var(--ink); }
figure.chart .xlab .xyear { font-size: 11px; font-weight: 400; fill: var(--ink-soft); }

@media (max-width: 44rem) {
  ul.stats { grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
  .stat-n  { font-size: 1.5rem; }
  .blurb   { font-size: 0.99rem; }
  .key-item { margin-right: 0; display: block; margin-bottom: 0.3rem; }
  /* The chart shrinks with the screen, so the smallest labels need a nudge
     to stay readable. 12px is the widest that still fits the right margin. */
  figure.chart .ref text { font-size: 12px; }
}

/* ---------- contents list ---------- */

/* A short index of the sections on long pages. Plain links — clicking one
   scrolls to that section. Nothing here needs JavaScript. */
nav.contents {
  margin: 0 0 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.88rem;
}
p.lede + nav.contents { margin-top: 1.9rem; }

.contents-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

nav.contents ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}
nav.contents li { margin: 0; }
nav.contents a { color: var(--ink-soft); }
nav.contents a:hover, nav.contents a:focus-visible { color: var(--accent); }

/* The section a visitor has just jumped to, so the landing is obvious. */
h2.section:target { color: var(--accent); border-bottom-color: var(--accent); }

/* Leave a little air above a heading that has been scrolled to, rather than
   pinning it to the very top edge of the window. */
h2.section { scroll-margin-top: 1.6rem; }

nav.contents + h2.section { margin-top: 2.5rem; }

@media (max-width: 44rem) {
  nav.contents ul { gap: 0.35rem 1.1rem; }
  nav.contents { font-size: 0.86rem; }
}

/* A one-line gloss under a paper — the author's own summary, not a quotation
   from the paper, so it is set in italic rather than in quote marks. */
.blurb.gloss { font-style: italic; }

.site-name a { color: inherit; text-decoration: none; }
main h1 { font-size: 2rem; line-height: 1.2; }
.call-link { display:inline-block; padding:.7rem 1rem; background:var(--accent); color:white; border-radius:3px; }
nav.site { font-size:1rem; }
main a { overflow-wrap:anywhere; }
figure.chart { overflow-x:auto; }
figure.chart svg { min-width:600px; }

/* Conference visual refinement */
:root {
  --accent: #285f80;
  --ink: #202d3b;
  --ink-soft: #556575;
  --rule: #dfe6eb;
  --rule-firm: #c6d3dc;
}

.wrap {
  padding-top: 3.5rem;
}

header.site {
  padding-top: 1.25rem;
  border-top: 3px solid var(--accent);
  margin-bottom: 2.75rem;
}

.site-name {
  font-size: clamp(1.9rem, 4.5vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
}

nav.site {
  margin-top: 1.4rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  gap: 0.65rem 1.65rem;
  font-size: 0.94rem;
  line-height: 1.6;
}

nav.site a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

main h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.lede {
  max-width: 40rem;
  font-size: 1.15rem;
  line-height: 1.7;
}

h2.section {
  margin-top: 2.75rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

h2#next-conference {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  letter-spacing: -0.015em;
  color: var(--ink);
}

p.meta, .paper .meta {
  color: var(--accent);
  font-size: 0.94rem;
  line-height: 1.65;
}

.call-link {
  padding: 0.65rem 1.05rem;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
}

.call-link:hover, .call-link:focus-visible {
  background: #1e4b66;
  color: white;
}

.paper {
  padding: 1.8rem 0;
}

.paper .title {
  font-size: 1.25rem;
}

.paper .actions {
  margin-top: 0.7rem;
}

figure.chart {
  margin: 2.5rem 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}

@media (max-width: 44rem) {
  body { padding: 0 1.25rem; }
  .wrap { padding-top: 1.75rem; }
  header.site { margin-bottom: 2rem; }
  nav.site { column-gap: 1.2rem; font-size: 0.9rem; }
  .lede { font-size: 1.08rem; }
}

/* Site footer: organizers, contact, disclaimer.
   ink-soft rather than ink-faint so the small text stays legible. */
footer.site {
  margin-top: 4rem;
  border-top: 1px solid var(--rule-firm);
  color: var(--ink-soft);
  line-height: 1.6;
}
footer.site p { margin: 0 0 0.7rem; }
footer.site a { overflow-wrap: anywhere; }

/* Logo row: under the overview on the home page, in the footer on the
   other pages. The seals are round and the Bank of Canada logo is a wide
   wordmark, so the seals are set taller to balance them, as on the call
   for papers letterhead. */
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}
.logos a { display: block; }
.logos img { display: block; width: auto; height: 3.75rem; }
.logos img.wordmark { height: 2.25rem; }

main .logos { margin: 2rem 0 3.5rem; }
main .logos img { height: 4.25rem; }
main .logos img.wordmark { height: 2.5rem; }

footer.site .logos { margin-bottom: 1.4rem; }

@media (max-width: 44rem) {
  .logos { column-gap: 1.5rem; }
  main .logos img { height: 3.75rem; }
  main .logos img.wordmark { height: 2.25rem; }
}

/* ------------------------------------------------------------------
   Visual refresh (December 2026)
   ------------------------------------------------------------------ */

/* Section headings: larger and darker than the original small labels. */
h2.section {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* Home page: the next conference in a tinted panel. */
.next {
  padding: 1.6rem 1.9rem 1.8rem;
  background: #eef3f6;
  border-top: 3px solid var(--accent);
  border-radius: 0 0 4px 4px;
}
.next h2.section { margin-top: 0; }
.next h2.section { padding-bottom: 0; border-bottom: none; }
.next .theme { margin: 0.35rem 0 0; }

/* Dates, venue and deadline side by side; keynote speakers on their own row. */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2.6rem;
  margin: 1.4rem 0 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule-firm);
}
.facts .wide { flex-basis: 100%; }
.facts dt {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.facts dd { margin: 0.15rem 0 0; font-size: 1rem; line-height: 1.5; }

.next-links { margin: 0; }

/* Past conferences: the year in the left margin, so the list reads
   like a timeline. Above the title when there is no room. */
.paper { position: relative; }
.paper .year {
  position: absolute;
  top: 1.62rem;
  left: -7rem;
  width: 5.5rem;
  text-align: right;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent);
}

@media (max-width: 62rem) {
  .paper .year {
    position: static;
    display: block;
    width: auto;
    margin-bottom: 0.2rem;
    text-align: left;
    font-family: var(--sans);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 44rem) {
  .next { padding: 1.3rem 1.15rem 1.5rem; }
  .facts { flex-direction: column; gap: 0.9rem; }
}

/* ------------------------------------------------------------------
   Design review fixes (December 2026)
   ------------------------------------------------------------------ */

:root { --ink-faint: #66737f; }   /* chart reference labels; meets AA contrast */

/* Smaller site name, so the page title leads on inner pages. */
.site-name { font-size: clamp(1.75rem, 3.8vw, 2.1rem); }

/* Links inside sentences get a faint underline (not colour alone). */
main p a:not(.call-link),
footer.site p a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--rule-firm);
}
main p a:not(.call-link):hover, main p a:not(.call-link):focus-visible,
footer.site p a:hover, footer.site p a:focus-visible { text-decoration-color: currentColor; }

.call-link:hover, .call-link:focus-visible { text-decoration: none; }
nav.site a:hover, nav.site a:focus-visible {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
  text-decoration-color: var(--rule-firm);
}

/* Blue is for links and the margin years; date lines are grey. */
p.meta, .paper .meta { font-family: var(--sans); color: var(--ink-soft); }
.paper .venue { font-family: var(--serif); font-size: 1.04em; }

/* Section headings in serif, between page title and body text. */
h2.section {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
main > h2.section:first-of-type { margin-top: 2.75rem; }
main > h1 + h2.section:first-of-type { margin-top: 1.75rem; }

/* Home panel details. */
h2#next-conference { line-height: 1.25; text-wrap: balance; }
.next h2.section { margin-bottom: 0.4rem; }
.facts dd + dd { margin-top: 0.3rem; }

.paper .year { top: 1.77rem; }

/* Publications: four key figures in a 2 x 2 grid. */
ul.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Charts scroll sideways on narrow screens; shadows show there is more. */
figure.chart { overflow-x: visible; }
.chart-scroll {
  overflow-x: auto;
  background:
    linear-gradient(to left, rgba(253,253,252,0), var(--page) 70%) left / 2rem 100% no-repeat local,
    linear-gradient(to right, rgba(253,253,252,0), var(--page) 70%) right / 2rem 100% no-repeat local,
    linear-gradient(to right, rgba(32,45,59,0.14), rgba(32,45,59,0)) left / 0.75rem 100% no-repeat scroll,
    linear-gradient(to left, rgba(32,45,59,0.14), rgba(32,45,59,0)) right / 0.75rem 100% no-repeat scroll;
}

main ul:not([class]) li + li { margin-top: 0.35rem; }

@media (max-width: 44rem) {
  nav.site {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    column-gap: 2rem;
    row-gap: 0;
  }
  nav.site a { padding: 0.4rem 0; }
  .paper { padding: 1.45rem 0; }
  .paper .title { font-size: 1.08rem; }
  .paper .actions a { padding: 0.45rem 0; margin: -0.45rem 0; }
  main ul:not([class]) { padding-left: 1.4rem; }
}
