:root {
  --bg: #fdfcfa;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --rule: #e4e1dc;
  --measure: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --fg: #e8e6e3;
    --muted: #9a9a9a;
    --rule: #2e2e2e;
  }
}

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

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

body {
  margin: 0 auto;
  max-width: var(--measure);
  padding: 120px 32px 120px;
  background: var(--bg);
  color: var(--fg);
  font-family: "Tiempos Text", Charter, "Charter BT", Georgia, "Times New Roman", serif;
  font-size: 17.5px;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:visited { color: inherit; }

a:hover,
a:focus-visible { text-decoration: underline; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Masthead ---------------------------------------------------------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 40px;
}

h1 {
  margin: 0;
  font-size: 1em;
  font-weight: 400;
}

.masthead-nav {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.masthead-nav ul {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang {
  margin: 0;
  color: var(--muted);
  font-size: 0.82em;
  letter-spacing: 0.04em;
}

.lang a { color: var(--muted); }

.lang a[aria-current="true"] {
  color: var(--fg);
}

/* Intro and bio ------------------------------------------------------ */

.intro { margin: 0; }

.more {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.more:hover,
.more:focus-visible { text-decoration: underline; }

.bio > p { margin: 1.2em 0 0; }

/* Sections ----------------------------------------------------------- */

section { margin-top: 56px; }

h2 {
  margin: 0 0 16px;
  font-size: 0.78em;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

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

.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 14px;
}

.row:first-child { margin-top: 0; }

.row-main { min-width: 0; }

.row-title { display: block; }

.row-sub {
  display: block;
  color: var(--muted);
  font-size: 0.88em;
  line-height: 1.45;
}

.row-date {
  flex: none;
  color: var(--muted);
  font-size: 0.82em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Small screens ------------------------------------------------------ */

@media (max-width: 640px) {
  body {
    padding: 64px 24px 80px;
    font-size: 16.5px;
  }

  section { margin-top: 44px; }

  .row {
    flex-direction: column;
    gap: 2px;
  }

  .row-date { white-space: normal; }
}

/* Print -------------------------------------------------------------- */

@media print {
  :root {
    --bg: #fff;
    --fg: #000;
    --muted: #000;
    --rule: #999;
  }

  body {
    max-width: none;
    padding: 0;
    font-size: 10.5pt;
    line-height: 1.35;
  }

  a,
  a:visited { text-decoration: none; }

  .lang,
  .more,
  noscript { display: none !important; }

  .bio[hidden] { display: block !important; }

  .masthead { margin-bottom: 16px; }

  section {
    margin-top: 20px;
    break-inside: avoid;
  }

  h2 { margin-bottom: 8px; }

  .row {
    margin-top: 7px;
    break-inside: avoid;
  }
}
