/*
 * Curriculum vitae styles (screen and print).
 * Fonts: Inter and Source Serif 4, SIL Open Font License 1.1 (see assets/fonts/).
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/Inter-normal-400-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/Inter-normal-400-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, 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: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/SourceSerif4-italic-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/SourceSerif4-italic-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, 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: 600;
  font-display: swap;
  src: url("../fonts/SourceSerif4-normal-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/SourceSerif4-normal-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------
   Page
   ------------------------------------------------------------------ */
@page {
  size: letter;
  margin: 0.5in 0.55in 0.55in;
}

:root {
  --ink: #1a1d26;
  --ink-2: #3f4555;
  --muted: #5d6373;
  --rule: #d5d9df;
  --accent: #1f4fa0;
  --paper: #ffffff;
  --desk: #eceef1;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font: 9.5pt/1.4 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }
p { margin: 0; }

/* Toolbar (screen only) */
.cv-toolbar {
  display: flex;
  justify-content: space-between;
  max-width: 8.5in;
  margin: 0 auto;
  padding: 18px 4px 12px;
  font-size: 10pt;
  font-weight: 500;
}
.cv-toolbar a { color: var(--ink-2); }
.cv-toolbar a:hover { color: var(--accent); }

/* The sheet */
.cv {
  max-width: 8.5in;
  margin: 0 auto 40px;
  padding: 0.5in 0.55in 0.55in;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(26, 29, 38, 0.06), 0 12px 32px -16px rgba(26, 29, 38, 0.25);
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.cv-head { text-align: center; margin-bottom: 4pt; }
.cv-head h1 {
  margin: 0 0 3pt;
  font: 600 22pt/1.1 var(--font-serif);
  letter-spacing: -0.01em;
}
.cv-head__role { color: var(--ink-2); font-size: 10pt; }
.cv-head__contact { margin-top: 3pt; color: var(--ink-2); }
.cv-head__contact span { margin: 0 5pt; color: var(--rule); }

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */
section { margin-top: 9.5pt; }
h2 {
  margin: 0 0 5pt;
  padding-bottom: 2pt;
  border-bottom: 0.75pt solid var(--rule);
  color: var(--accent);
  font: 700 8.6pt/1.3 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  break-after: avoid;
}
h3 {
  margin: 6pt 0 3pt;
  color: var(--ink-2);
  font: italic 400 10pt/1.3 var(--font-serif);
  break-after: avoid;
}

.entry { margin-bottom: 5pt; break-inside: avoid; }
.entry:last-child { margin-bottom: 0; }
.entry__head { display: flex; gap: 12pt; }
.entry__date {
  margin-left: auto;
  padding-left: 12pt;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.entry__sub { color: var(--ink-2); }
.entry__sub--split { display: flex; gap: 12pt; }
.entry__note { margin-left: auto; color: var(--muted); font-size: 8.4pt; white-space: nowrap; }
.entry__sub a { text-decoration: underline; text-decoration-color: var(--rule); }

.bullets {
  margin: 2pt 0 0;
  padding-left: 13pt;
  color: var(--ink-2);
}
.bullets li { margin: 1.5pt 0; break-inside: avoid; }

.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; gap: 12pt; margin: 1.5pt 0; break-inside: avoid; }

/* Publications, numbered across the three groups */
.cv-pubs { counter-reset: pub; }
.pubs { margin: 0; padding: 0; list-style: none; }
.pubs li {
  position: relative;
  margin: 0 0 3pt;
  padding-left: 22pt;
  color: var(--ink-2);
  break-inside: avoid;
}
.pubs li::before {
  counter-increment: pub;
  content: "[" counter(pub) "]";
  position: absolute;
  left: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pubs strong { color: var(--ink); font-weight: 700; }
.pubs .pub-title { color: var(--ink); }
.pubs em { font-family: var(--font-serif); font-size: 1.04em; }
.pubs .award { color: var(--accent); font-weight: 700; }

.cv-head__updated {
  margin-top: 2pt;
  color: var(--muted);
  font-size: 7.6pt;
}

/* ------------------------------------------------------------------
   Print
   ------------------------------------------------------------------ */
@media print {
  body { background: #fff; }
  .cv-toolbar { display: none; }
  .cv { max-width: none; margin: 0; padding: 0; box-shadow: none; }
  a:hover { color: inherit; text-decoration: none; }
}

@media screen and (max-width: 8.8in) {
  .cv { padding: 28px 20px 32px; box-shadow: none; }
  .cv-toolbar { padding: 14px 20px 8px; }
  .entry__head, .rows li { flex-wrap: wrap; }
  .entry__date { margin-left: 0; padding-left: 0; }
}
