/* Self-hosted Source Serif 4 (SIL Open Font License), variable weight */
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/source-serif-4-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: 400 600; font-display: swap;
  src: url(fonts/source-serif-4-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;
}

:root {
  color-scheme: light;
  /* palette: Dusk Blue #165492, Dark Cyan #0098a3, Raspberry Plum #bb3f9e, Light Blue #bee1ee, Banana Cream #ede45e */
  --paper: #fdfcf8;
  --ink: #1d2a38;
  --muted: #5b6b7a;
  --link: #165492;
  --cyan: #0098a3;
  --plum: #bb3f9e;
  --deep: #165492;    /* header and footer */
  --on-deep: #cfe0f0; /* secondary text on the deep bands */
  --sky: #bee1ee;     /* links on the deep bands */
  --tint: #eef5f8;    /* faint blue behind a section */
  --banana: #ede45e;  /* accent on the deep bands */
  --rule: #d8e6ec;
}

html { background: var(--deep); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 "Source Serif 4", Georgia, "Times New Roman", serif;
}

.page { max-width: 42rem; margin: 0 auto; padding: 3.5rem 1.25rem 3rem; }

/* faint paper grain over every band */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .25 0 0 0 0 .35 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--banana); color: var(--ink); }

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

/* Dusk blue header band with a wave into the page */
.hero { position: relative; background: var(--deep); overflow: hidden; }
.hero h1 { color: #fff; }
.hero .position { color: var(--on-deep); }
.hero a { color: var(--sky); }
.hero a:hover { color: var(--banana); }
.topnav { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding-block: 1.25rem 0; font-size: 0.95rem; }
.topnav a { color: var(--sky); }
.topnav a:hover { color: var(--banana); text-decoration: none; }
.hero header { position: relative; display: flex; gap: 2rem; align-items: flex-end; padding-top: 2.25rem; padding-bottom: 3.75rem; }
.wave { display: block; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2.5rem; fill: var(--paper); }
.wave-footer { position: static; margin-top: 2.5rem; margin-bottom: -1px; fill: var(--deep); }
main.page { padding-top: 1.5rem; }

/* Full-bleed faint blue band behind a section */
.band { background: var(--tint); box-shadow: 0 0 0 100vmax var(--tint); clip-path: inset(0 -100vmax); padding-block: 0.25rem 1.25rem; margin-top: 2.5rem; }
.band h2 { margin-top: 1.75rem; }
.portrait-wrap { flex-shrink: 0; width: 11rem; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; border-radius: 0.9rem; }
h1 { font-size: 2rem; font-weight: 600; line-height: 1.15; margin: 0 0 0.4rem; }
.position { margin: 0 0 0.75rem; color: var(--muted); }
.contact { margin: 0; font-size: 1rem; }
.contact a { white-space: nowrap; }
.hero .contact { color: var(--on-deep); }

h2 { font-size: 1.3rem; font-weight: 600; margin: 2.25rem 0 0.8rem; }
h2::after { content: ""; display: block; width: 2.25rem; height: 2px; margin-top: 0.4rem; background: var(--cyan); border-radius: 2px; }


ul { padding-left: 1.2rem; }
li { margin-bottom: 0.45rem; }

.dated { list-style: none; padding: 0; }
.dated li { padding-left: 4.5rem; text-indent: -4.5rem; }
.dated span { display: inline-block; width: 4.5rem; text-indent: 0; color: var(--muted); }

.pubs { list-style: none; padding: 0; }
.pubs li { margin-bottom: 0.8rem; padding-left: 1.5rem; text-indent: -1.5rem; }

.small { font-size: 0.95rem; color: var(--muted); }

footer { background: var(--deep); font-size: 0.9rem; color: var(--on-deep); }
footer .page { padding-block: 1.5rem; }

@media (max-width: 34rem) {
  .hero header { padding-top: 1.75rem; }
    .hero header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .portrait-wrap { width: 9rem; }
  .dated li { padding-left: 0; text-indent: 0; }
  .dated span { display: block; width: auto; font-size: 0.95rem; }
}
