:root {
  --paper: #ffffff;
  --ink: #29272a;
  --muted: #777176;
  --line: #e5e0e3;
  --accent: #a66f7e;
  --accent-strong: #6B2942;
  --accent-soft: #f1e5e9;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

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

.site-header,
main,
footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: inline-block;
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 600;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
  font-size: 13px;
}

nav a {
  text-decoration: none;
}

.portrait-placeholder {
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--accent);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.9), transparent 36%),
    var(--accent-soft);
  border-radius: 2px;
}

.portrait-placeholder span {
  font-size: clamp(42px, 6vw, 66px);
  font-weight: 500;
  line-height: 1;
}

.portrait-placeholder small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.section-number {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(25px, 2.8vw, 32px);
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 16px;
  color: var(--accent-strong);
  font-size: 19px;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.profile-email {
  display: block;
  margin-top: -1px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none;
}

.profile-email:hover,
.profile-email:focus-visible {
  text-decoration: underline;
}

.links {
  display: flex;
  gap: 9px;
  margin-top: 8px;
}

.links a {
  display: inline-grid;
  align-items: center;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--accent-strong);
  font-size: 20px;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.links a:hover,
.links a:focus-visible {
  color: var(--accent);
  transform: translateY(-1px);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(190px, 240px) 1fr;
  gap: clamp(16px, 2.5vw, 32px);
  align-items: start;
}

.profile-panel {
  position: sticky;
  top: 98px;
  height: fit-content;
  padding: 38px 0 64px;
}

.profile-panel .profile-photo {
  display: block;
  width: min(68%, 165px);
  aspect-ratio: 3 / 4;
  margin-bottom: 24px;
  object-fit: cover;
  border-radius: 8px;
}

.profile-panel .eyebrow {
  margin: 0 0 8px;
}

.profile-role {
  margin: 14px 0 0;
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.sections section {
  scroll-margin-top: 78px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.sections section:first-child {
  padding-top: 34px;
}

.sections {
  width: 100%;
  max-width: 790px;
}

.sections section > p:not(.section-number) {
  max-width: 720px;
  margin: 0;
  color: #514c50;
  font-size: clamp(13px, 1.35vw, 15px);
  line-height: 1.75;
}

#about > p {
  font-size: 14px;
}

#about a {
  color: var(--accent-strong);
}

.sections section > p.empty-state {
  color: var(--muted);
  font-size: 14px;
}

.compact-section {
  min-height: 0;
}

.section-number {
  margin: 0 0 16px;
}

.entry-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(67, 53, 59, 0.035);
}

.entry-list {
  display: grid;
  gap: 12px;
}

#publications h2 {
  margin-bottom: 9px;
}

.publication-legend {
  margin: 0 0 10px !important;
  color: var(--muted) !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
}

.author-me {
  font-weight: 700;
  text-decoration: underline;
}

.publication-card {
  padding: 14px 16px;
}

.publication-heading {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 7px;
}

.publication-heading h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.publication-card > div > p {
  margin-left: 35px;
  font-size: 12px;
  line-height: 1.55;
}

.accent {
  color: #b3263e;
  font-weight: 600;
}

sup {
  font-size: 0.7em;
  vertical-align: super;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  margin-left: 35px;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 3px 7px;

  border: 1px solid var(--line);
  border-radius: 2px;

  background: var(--paper);
  color: #626873;

  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  text-decoration: none;

  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}

.pub-link:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
  background-color: var(--accent-soft);
}

.entry-card p {
  margin: 0;
  color: var(--muted);
}

.entry-meta {
  margin-top: 7px !important;
  font-size: 13px;
}

.publication-card .entry-meta {
  font-size: 12px;
}

#education .entry-list,
#experience .entry-list,
#activities .entry-list {
  gap: 0;
}

#education .entry-card,
#experience .entry-card,
#activities .entry-card {
  position: relative;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#education .entry-card + .entry-card::before,
#experience .entry-card + .entry-card::before,
#activities .entry-card + .entry-card::before {
  position: absolute;
  top: 0;
  right: 16px;
  left: 16px;
  content: "";
  border-top: 1px dashed #ebe4e8;
}

#education .entry-card h3,
#experience .entry-card h3,
#activities .entry-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.45;
}

#education .entry-card p,
#experience .entry-card p,
#activities .entry-card p {
  font-size: 12px;
  line-height: 1.55;
}

#education .entry-card .date,
#experience .entry-card .date,
#activities .entry-card .date {
  font-size: 12px;
}

#awards .entry-list {
  gap: 0;
}

#awards .entry-card {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#awards .entry-card + .entry-card::before {
  position: absolute;
  top: 0;
  right: 16px;
  left: 16px;
  content: "";
  border-top: 1px dashed #ebe4e8;
}

#awards .entry-card > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 7px;
}

#awards .entry-card h3,
#awards .entry-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

#awards .entry-card h3 {
  color: var(--ink);
  font-weight: 600;
}

#awards .entry-card > div > p {
  color: var(--muted);
}

#awards .entry-card > div > p::before {
  margin-right: 7px;
  color: #d8cfd4;
  content: "·";
}

#awards .entry-card .date {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.sample-entry {
  border-style: dashed;
}

.sample-label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  margin-top: 1px;
  padding: 2px 6px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid #dfc4ce;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.date {
  white-space: nowrap;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 24px;
  padding: 32px 0 52px;
  color: var(--muted);
  font-size: 13px;
}

footer p {
  margin: 0;
}

.last-updated {
  justify-self: end;
  text-align: right;
  font-size: 12px;
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-header {
    align-items: flex-start;
  }

  nav {
    max-width: calc(100% - 110px);
    gap: 6px 14px;
  }

  .profile-panel .profile-photo {
    width: min(46vw, 165px);
  }

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

  .profile-panel {
    position: static;
    padding: 36px 0 28px;
    border-bottom: 1px solid var(--line);
  }

  .entry-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #awards .entry-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  #awards .entry-card > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  #awards .entry-card > div > p {
    padding-left: 0;
  }

  #awards .entry-card > div > p::before {
    display: none;
  }

  #awards .entry-card .date {
    margin-left: 0;
    text-align: left;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer > a {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
