:root {
  --paper: #f4efe4;
  --sheet: #fbf8f1;
  --ink: #231f1a;
  --muted: #6f665a;
  --rule: #cfc5b2;
  --accent: #7b1e1e;
  --frame: #e6dfd0;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #191714;
    --sheet: #211e1a;
    --ink: #ece4d6;
    --muted: #a99d8b;
    --rule: #3d3730;
    --accent: #d98a7a;
    --frame: #2c2823;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.muted { color: var(--muted); }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 3px 0 -2px var(--ink);
}
.masthead-inner {
  max-width: 920px; margin: 0 auto; padding: 14px 16px 12px;
  display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between;
}
.brand {
  font: 700 24px/1 var(--serif);
  text-decoration: none; letter-spacing: .01em;
}
.search { flex: 1 1 220px; max-width: 320px; }
.search input {
  width: 100%; padding: 8px 2px; font: 15px var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
}
.search input:focus { outline: none; border-bottom-color: var(--ink); }

.crumbs { max-width: 920px; margin: 0 auto; padding: 14px 16px 0; font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { margin: 0 8px; }

main { max-width: 920px; margin: 0 auto; padding: 8px 16px 64px; outline: none; }

h1 { font: 700 clamp(30px, 6vw, 46px)/1.1 var(--serif); margin: 18px 0 6px; }
.kicker { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 24px 0 0; }
.lede { margin: 0 0 28px; color: var(--muted); }
h2.section { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--ink); padding-bottom: 6px; margin: 40px 0 6px; }

/* ---------- welcome note ---------- */
.note {
  font: italic 17px/1.6 var(--serif);
  max-width: 620px; margin: 0 0 8px;
}
.note p { margin: 0 0 10px; }

/* ---------- index lists (states, schools) ---------- */
.index { list-style: none; margin: 0; padding: 0; columns: 2 300px; column-gap: 48px; }
.index li { break-inside: avoid; }
.index a {
  display: flex; align-items: baseline; gap: 6px;
  padding: 7px 0; text-decoration: none;
  font: 17px/1.3 var(--serif);
}
.index a .leader { flex: 1; border-bottom: 1px dotted var(--rule); transform: translateY(-4px); min-width: 16px; }
.index a .count { font: 13px var(--sans); color: var(--muted); white-space: nowrap; }
.index a:hover .label { color: var(--accent); }
.index a:hover .leader { border-bottom-color: var(--accent); }
.letter { font: 700 22px var(--serif); color: var(--accent); margin: 26px 0 0; break-after: avoid; }
.index-group { break-inside: avoid; }
.school-index { columns: 2 300px; column-gap: 48px; }

/* ---------- years ---------- */
.years { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.years a {
  display: block; padding: 16px 14px; text-decoration: none;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.years a:hover { background: var(--sheet); }
.years strong { display: block; font: 700 28px/1 var(--serif); }
.years small { color: var(--muted); font-size: 13px; }
.years a:hover strong { color: var(--accent); }

/* ---------- the class page: portraits ---------- */
.class { display: grid; gap: 40px 28px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 8px; }
.portrait { margin: 0; scroll-margin-top: 90px; }
.frame {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5;
  padding: 0; border: 10px solid var(--sheet); outline: 1px solid var(--rule);
  background: var(--frame); cursor: pointer; overflow: hidden; color: var(--muted);
}
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.15) contrast(1.02); }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.frame.playing { aspect-ratio: 9 / 16; cursor: default; }
.frame .play {
  position: absolute; left: 12px; bottom: 12px;
  font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase;
  background: var(--sheet); color: var(--ink); padding: 6px 10px;
}
.frame .blank {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center;
  font: italic 22px/1.25 var(--serif); color: var(--muted);
}
.frame:hover .play { background: var(--ink); color: var(--sheet); }
figcaption { padding-top: 12px; }
.portrait-name { font: 700 21px/1.2 var(--serif); margin: 0; }
.portrait-note { font: italic 15px/1.4 var(--serif); color: var(--muted); margin: 3px 0 0; }
.portrait-links { margin: 6px 0 0; font-size: 13px; }
.portrait-links a { color: var(--muted); margin-right: 14px; text-decoration: none; border-bottom: 1px solid var(--rule); }
.portrait-links a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- famous row on home ---------- */
.famous { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 32px; }
.famous a { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.famous strong { font: 700 17px var(--serif); display: block; }
.famous small { color: var(--muted); font-size: 13px; }
.famous a:hover strong { color: var(--accent); }

/* ---------- search results ---------- */
.results { list-style: none; padding: 0; margin: 0; }
.results li { border-bottom: 1px solid var(--rule); }
.results a { display: block; padding: 10px 0; text-decoration: none; }
.results strong { font: 700 18px var(--serif); }
.results small { display: block; color: var(--muted); font-size: 13px; }
.results a:hover strong { color: var(--accent); }

/* ---------- footer ---------- */
.colophon { border-top: 1px solid var(--ink); font-size: 14px; color: var(--muted); }
.colophon-inner { max-width: 920px; margin: 0 auto; padding: 22px 16px 40px; }
.colophon p { margin: 0 0 8px; }
.follow a { color: var(--ink); margin-right: 16px; text-decoration: none; border-bottom: 1px solid var(--rule); }
.follow a:hover { color: var(--accent); border-color: var(--accent); }
.colophon a { color: var(--ink); }
.frame.playing.ig { aspect-ratio: 4 / 7; }
.frame .initials { font: 400 64px/1 var(--serif); font-style: normal; letter-spacing: .04em; opacity: .55; }
