/* LessWrong's font pairing: ET Book headings, a Palatino-based reading stack,
   and Calibri/Gill Sans metadata. Warnock Pro requires a separate web license;
   use it when installed locally, otherwise use LessWrong's system fallbacks. */
@font-face {
  font-family: 'ET Book';
  src: url('fonts/et-book-roman.woff') format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --font-body: 'Warnock Pro', Palatino, 'Palatino Linotype', 'Palatino LT STD', 'Book Antiqua', Georgia, serif;
  --font-heading: 'ET Book', var(--font-body);
  --font-ui: Calibri, 'Gill Sans Nova', 'Gill Sans', 'Gill Sans MT', 'Myriad Pro', Myriad, 'Liberation Sans', 'Nimbus Sans L', Tahoma, Geneva, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html { font-size: 18px; }

body {
  font-family: var(--font-body);
  line-height: 1.6;
}

.hd-info h1,
section h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: normal;
}

.hd-info h1 { font-size: 2rem; }

section h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  text-transform: none;
}

.hd-info .meta,
.news-date,
.pub-links,
.exp-date,
.award-year,
.edu-date,
footer {
  font-family: var(--font-ui);
}

.about p { font-size: 1rem; }

/* Allow the larger type to wrap naturally on narrow screens. */
.news-item { grid-template-columns: 6rem minmax(0, 1fr); }
.exp-header { flex-wrap: wrap; }
.hd-info { min-width: 0; }
.hd-info .meta a { overflow-wrap: anywhere; }

@media (max-width: 480px) {
  .news-item { grid-template-columns: 5rem minmax(0, 1fr); }
}
