@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  src: url('SourceSerif4-Variable.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 200 900;
  src: url('SourceSerif4-Italic-Variable.woff2') format('woff2');
  font-display: swap;
}

:root {
  --bg: #ecfcff;
  --text: #222;
  --text-light: #555;
  --accent: #8b1a1a;
  --accent-hover: #a82020;
  --link: #1a4a7a;
  --link-visited: #6a3060;
  --rule: #ccc;
  --max-width: 900px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-optical-sizing: auto;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 3rem 1.5rem;
}

#page {
  max-width: var(--max-width);
  margin: 0 auto;
}

h1 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.8rem 0 0.8rem 0;
}

p {
  margin-bottom: 0.4rem;
}

a {
  text-decoration: none;
  color: var(--link);
}
a:visited {
  color: var(--link-visited);
}
a:hover {
  text-decoration: underline;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 1.5rem 0;
}

/* Header block */
.contact {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

/* Announcement box */
.announcement {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.5;
}
.announcement b {
  font-style: normal;
}

/* Paper entries */
.paper {
  margin-bottom: 1.4rem;
  /* Title text inherits body line-height (1.6) for comfortable wrapping */
}
.paper br {
  display: none;
  /* Spacing is handled entirely by block margins, not br tags */
}
.paper > a {
  font-weight: 600;
}

/* Meta lines (Slides, Online Appendix, Notes, etc.) */
.paper .meta {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.45;
  margin-top: 0.25rem; /* gap after title — must exceed title wrap gap */
}
.paper .meta + br + .meta {
  margin-top: 0.12rem; /* consecutive meta: tighter, but still > meta wrap gap */
}
.paper .meta a {
  color: var(--link);
}
.paper .meta a:visited {
  color: var(--link-visited);
}

/* Award lines */
.paper .award {
  display: block;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.45;
  margin-top: 0.2rem; /* gap after meta — visible break */
}
.paper .award + br + .award {
  margin-top: 0.1rem; /* consecutive awards: tighter, but still > award wrap gap */
}

/* Abstract */
.paper .abstract {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-top: 0.4rem; /* clear separation before abstract */
}

/* Responsive */
@media (max-width: 600px) {
  html { font-size: 17px; }
  body { padding: 1.5rem 1rem; }
  h1 { font-size: 1.8rem; }
}

/* ---- Data pages only ---- */

/* Body text at the same weight as the abstracts above */
.note {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 0.6rem;
  max-width: 42em;
}

/* File entries: structurally the same as .paper */
.file {
  margin-bottom: 1.1rem;
}
.file > a {
  font-weight: 600;
}
.file .meta {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.45;
  margin-top: 0.25rem;
  max-width: 42em;
}
