:root {
  --desk: oklch(0.94 0.006 95);
  --paper: oklch(0.985 0.006 95);
  --panel: oklch(0.955 0.008 95);
  --callout: oklch(0.958 0.008 95);
  --ink: oklch(0.26 0.012 95);
  --ink-2: oklch(0.34 0.012 95);
  --ink-3: oklch(0.38 0.012 95);
  --ink-4: oklch(0.4 0.012 95);
  --ink-5: oklch(0.45 0.012 95);
  --muted: oklch(0.48 0.012 95);
  --label: oklch(0.5 0.012 95);
  --meta: oklch(0.6 0.012 95);
  --eyebrow: oklch(0.58 0.012 95);
  --stamp: oklch(0.68 0.012 95);
  --rule: oklch(0.92 0.008 95);
  --rule-2: oklch(0.93 0.008 95);
  --rule-3: oklch(0.9 0.008 95);
  --accent: oklch(0.43 0.1 22);
  --accent-hover: oklch(0.3 0.09 22);
  --accent-underline: oklch(0.86 0.03 22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: 'Spectral', Georgia, serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--paper);
  box-shadow: 0 1px 2px oklch(0.2 0.01 95 / 0.08), 0 12px 32px oklch(0.2 0.01 95 / 0.06);
}

/* Sidebar */

aside {
  background: var(--panel);
  border-right: 1px solid var(--rule-3);
  padding: 64px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.portrait {
  width: 176px;
  height: 176px;
  max-width: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}

aside h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.affiliation {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--label);
}

.label {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--meta);
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.handles {
  display: flex;
  flex-direction: column;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.8;
}

.email {
  color: var(--ink-5);
}

nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-top: 1px solid var(--rule-3);
  padding-top: 26px;
}

.nav-hover {
  color: var(--ink-4);
  display: inline-block;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-hover:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.cv-link {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.stamp {
  margin-top: auto;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stamp);
}

/* Main column */

main {
  padding: 76px 88px 72px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-margin-top: 24px;
}

section + section {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}

.body {
  margin: 0;
  font-size: 18px;
  line-height: 1.68;
  max-width: 60ch;
  text-wrap: pretty;
}

.interests {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 16px;
  color: var(--ink-3);
}

.callout {
  background: var(--callout);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 18px 20px;
  max-width: 56ch;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eyebrow {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.callout p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* News list */

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  max-width: 64ch;
}

.news-list li {
  display: flex;
  gap: 20px;
  font-size: 17px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule-2);
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list .date {
  flex: 0 0 92px;
  padding-top: 3px;
}

.date {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 13px;
  color: var(--meta);
}

/* Presentations */

.presentations-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  max-width: 64ch;
}

.presentations-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-2);
}

.presentations-list li:last-child {
  border-bottom: none;
}

.presentations-list .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-size: 17px;
  flex-wrap: wrap;
}

.presentations-list .title {
  flex: 1 1 auto;
}

.presentations-list .row .date {
  flex: 0 0 108px;
  text-align: right;
  white-space: nowrap;
}

.venue {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 13px;
  color: var(--meta);
}

.pdf-link {
  margin-left: 0.15em;
  border-bottom: 1px solid var(--accent-underline);
  transition: border-color 180ms ease;
}

.pdf-link:hover {
  border-bottom-color: var(--accent);
}

/* Teaching */

.teaching-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  max-width: 64ch;
}

.teaching-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 17px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-2);
}

.teaching-list li:last-child {
  border-bottom: none;
}

/* Projects / Links */

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 17px;
}

.inline-link {
  border-bottom: 1px solid var(--accent-underline);
  transition: border-color 180ms ease;
}

.inline-link:hover {
  border-bottom-color: var(--accent);
}

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

/* Responsive */

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
  }

  aside {
    border-right: none;
    border-bottom: 1px solid var(--rule-3);
    padding: 40px 28px;
  }

  aside .stamp {
    margin-top: 24px;
  }

  main {
    padding: 40px 28px 56px;
  }

  .presentations-list .row {
    flex-wrap: wrap;
  }

  .presentations-list .row .date {
    flex-basis: auto;
  }
}
