@font-face {
  font-family: "Libertinus Serif";
  src: url("fonts/LibertinusSerif-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Libertinus Serif";
  src: url("fonts/LibertinusSerif-Italic.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Libertinus Serif";
  src: url("fonts/LibertinusSerif-Semibold.otf") format("opentype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Libertinus Sans";
  src: url("fonts/LibertinusSans-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Libertinus Sans";
  src: url("fonts/LibertinusSans-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #1a1d21;
  --muted: #5a6169;
  --faint: #8a9099;
  --accent: #1f3555;
  --link: #2c5282;
  --rule: #bfc8d4;
  --tint: #edf0f4;
  --paper: #fff;
  --page-width: 58rem;
  --page-pad: clamp(1.35rem, 6vw, 4.5rem);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f8fa;
  color: var(--ink);
  font-family: "Libertinus Serif", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 17px;
  line-height: 1.48;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration-color: rgb(44 82 130 / 0.35);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.page-shell {
  width: min(100%, var(--page-width));
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgb(31 53 85 / 0.06), 0 22px 60px rgb(31 53 85 / 0.08);
}

.sidebar {
  padding: clamp(2.75rem, 7vw, 5.25rem) var(--page-pad) clamp(2.4rem, 6vw, 4rem);
  background: var(--tint);
}

.identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(7.5rem, 18vw, 10rem);
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: center;
  margin-bottom: 2rem;
}

.identity-copy {
  min-width: 0;
}

.headshot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid rgb(255 255 255 / 0.78);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(31 53 85 / 0.13), 0 0.65rem 1.8rem rgb(31 53 85 / 0.12);
}

.name {
  display: inline-block;
  color: var(--accent);
  font-family: "Libertinus Sans", Arial, sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
}

.tagline {
  margin: 1rem 0 0;
  font-family: "Libertinus Sans", Arial, sans-serif;
  font-size: 0.94rem;
  line-height: 1.35;
}

.tagline span {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  margin-bottom: 2.25rem;
  font-family: "Libertinus Sans", Arial, sans-serif;
  font-size: 0.9rem;
}

.contact a {
  display: grid;
  grid-template-columns: 1.2rem auto;
  align-items: baseline;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact .contact-icon {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
  align-self: center;
}

.contact span.contact-icon {
  color: var(--accent);
  font-weight: 700;
  line-height: 0.9rem;
  text-align: center;
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--link);
}

.side-heading,
.section-heading {
  display: block;
}

.side-heading h2,
.section-heading h2 {
  margin: 0;
  color: var(--accent);
  font-family: "Libertinus Sans", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.side-heading h2 {
  font-size: 1rem;
}

.section-heading h2 {
  font-size: 1.22rem;
}

.side-section p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.content {
  min-width: 0;
  padding: clamp(2.75rem, 7vw, 5rem) var(--page-pad);
}

.section-heading {
  margin-bottom: 1.4rem;
}

.year-group {
  margin: 0 0 1.7rem;
}

.year-group > h3,
.teaching-group > h3 {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-family: "Libertinus Sans", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-transform: uppercase;
}

.entry {
  margin: 0 0 1.1rem;
}

.entry:last-child {
  margin-bottom: 0;
}

.entry h4 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.3;
}

.entry p {
  margin: 0.16rem 0 0;
}

.entry .venue {
  color: var(--muted);
  font-style: italic;
}

.entry .authors {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.44;
}

.entry .authors strong {
  color: var(--ink);
  font-weight: 600;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.48rem;
  font-family: "Libertinus Sans", Arial, sans-serif;
  font-size: 0.86rem;
}

.entry-links span {
  color: var(--rule);
}

.teaching {
  margin-top: 2.5rem;
}

.teaching-group {
  margin: 0 0 1.65rem;
}

.group-description {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.48;
}

.course {
  margin: 0 0 0.72rem;
}

.course div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.course strong {
  font-weight: 600;
}

.course div span {
  flex: 0 0 auto;
  color: var(--faint);
  font-family: "Libertinus Sans", Arial, sans-serif;
  font-size: 0.83rem;
  text-align: right;
}

.course p {
  margin: 0.02rem 0 0;
  color: var(--muted);
  font-family: "Libertinus Sans", Arial, sans-serif;
  font-size: 0.9rem;
}

.course .course-description {
  margin-top: 0.28rem;
  font-family: "Libertinus Serif", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  line-height: 1.48;
}

@media (max-width: 760px) {
  body {
    background: var(--paper);
    font-size: 16px;
  }

  .page-shell {
    box-shadow: none;
  }

  .sidebar,
  .content {
    padding: 2.25rem clamp(1.25rem, 6vw, 2.5rem);
  }

  .sidebar {
    padding-bottom: 2.5rem;
  }

  .content {
    padding-top: 2.6rem;
  }

  .name {
    font-size: 2.65rem;
    line-height: 1;
  }
}

@media (max-width: 500px) {
  .identity {
    grid-template-columns: minmax(0, 1fr) 6.5rem;
    gap: 1rem;
  }

  .contact {
    display: grid;
    grid-template-columns: 1fr;
  }

  .course div {
    display: block;
  }

  .course div span {
    display: block;
    margin-top: 0.05rem;
    text-align: left;
  }
}

@media print {
  body {
    background: var(--paper);
    font-size: 10pt;
  }

  .page-shell {
    width: 100%;
    box-shadow: none;
  }

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

  .entry,
  .course {
    break-inside: avoid;
  }
}
