:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #17201c;
  --muted: #64706b;
  --line: #ddd8cf;
  --accent: #2f4f7f;
  --accent-strong: #20385f;
  --warm: #9d5630;
  --soft: #f1f4f8;
  --shadow: 0 22px 55px rgba(30, 37, 33, 0.1);
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.academic-page {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 38px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 46px 24px 72px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 24px;
  align-self: start;
  min-height: calc(100vh - 70px);
  padding: 4px 8px;
  text-align: left;
}

.sidebar h1 {
  margin: 10px 0 5px;
  font-size: 22px;
  line-height: 1.1;
}

.subtitle {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.profile-links {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.profile-contact {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 650;
}

.profile-contact svg {
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.profile-links a.profile-contact:hover,
.profile-links a.profile-contact:focus-visible {
  color: #122847;
}

.hosted-note {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 12px;
}

.content {
  min-width: 0;
}

.plain-section {
  position: relative;
  padding: 0;
  margin-bottom: 34px;
}

.plain-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 26px;
}

.plain-section h2::after {
  content: "";
  display: none;
  flex: 1;
  height: 1px;
  background: var(--line);
}

.plain-section h3 {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 17px;
}

.plain-section p {
  margin-bottom: 13px;
}

.quote {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--soft);
  color: #30443b;
  font-weight: 650;
}

.pet-memory {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pet-memory summary {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 750;
}

.pet-memory summary:hover,
.pet-memory summary:focus-visible {
  color: #122847;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pet-memory-body {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 12px;
}

.pet-memory img {
  display: block;
  width: 108px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 45%;
}

.pet-memory-text {
  min-width: 0;
}

.pet-memory p:last-child {
  margin-bottom: 0;
}

.entry-list,
.publication-list,
.compact-list {
  margin: 0;
  padding-left: 20px;
}

.entry-list {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.entry-list li,
.publication-list li,
.compact-list li {
  margin-bottom: 9px;
}

.entry-list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  margin-bottom: 0;
}

.entry-list.wide-dates li {
  grid-template-columns: 180px minmax(0, 1fr);
}

.date {
  display: block;
  min-width: 0;
  color: var(--warm);
  font-weight: 800;
}

.links {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-size: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-height: 94px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(30, 37, 33, 0.06);
}

.metric strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-strong);
  font-size: 32px;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-footer {
  color: var(--muted);
  font-size: 14px;
}

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

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

.content a {
  padding: 0;
  color: var(--accent-strong);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.content a:hover,
.content a:focus-visible {
  color: #122847;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 248, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-weight: 750;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.hero,
.project-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 24px 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--warm);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

.lead {
  max-width: 780px;
  color: #38433e;
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(23, 32, 28, 0.1);
}

.profile-panel,
.interest,
.project,
.component-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-panel {
  padding: 24px;
}

.profile-photo {
  width: 190px;
  height: 190px;
  margin: 0 0 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

dl {
  margin: 0;
}

.profile-panel div + div {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--ink);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 24px;
}

.section.narrow {
  max-width: 840px;
}

.section-heading {
  margin-bottom: 18px;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.interest {
  padding: 22px;
}

.interest p,
.project p,
.component-list p,
.muted {
  color: var(--muted);
}

.project-list,
.component-list,
.timeline {
  display: grid;
  gap: 14px;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef5f2;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.timeline-item {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.year {
  color: var(--warm);
  font-weight: 800;
}

.skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-row span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
}

.contact {
  padding-bottom: 76px;
}

.contact-list,
.body-list {
  padding-left: 20px;
}

.contact-list li,
.body-list li {
  margin-bottom: 8px;
}

.component-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.component-list article {
  padding: 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .academic-page {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 28px;
  }

  .sidebar {
    position: static;
    min-height: 0;
  }

  .hosted-note {
    margin-top: 18px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .profile-panel {
    max-width: 480px;
  }

  .interest-grid,
  .component-list {
    grid-template-columns: 1fr;
  }

  .project {
    grid-template-columns: 1fr;
  }

  .tag {
    justify-self: start;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

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

  .entry-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .pet-memory-body {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .pet-memory img {
    width: 88px;
  }

  .hero,
  .project-hero,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
