:root {
  --bg: #fffbf2;
  --panel: #faf0e3;
  --ink: #002642;
  --ink-soft: #2e4963;
  --accent: #a23e02;
  --rule: #d7e2ec;
  --panel-rule: #ead9c4;
  --max-width: 1180px;
  --page-pad: clamp(18px, 4vw, 50px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Red Hat Text", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

a:hover {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: Petrona, Georgia, "Times New Roman", serif;
  line-height: 1.15;
  margin: 0;
}

.site-header {
  align-items: center;
  color: var(--accent);
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(140px, 1fr);
  min-height: 92px;
  padding: 0 var(--page-pad);
  position: relative;
}

.brand {
  color: var(--ink);
  font-family: Petrona, Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  text-decoration: none;
}

.primary-nav {
  display: flex;
  gap: clamp(24px, 4.5vw, 54px);
  justify-content: center;
  min-width: 0;
}

.primary-nav a {
  color: var(--accent);
  font-size: clamp(1.02rem, 1.8vw, 1.35rem);
  letter-spacing: clamp(0.14em, 0.36vw, 0.28em);
  padding-bottom: 10px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-nav a.active {
  border-bottom: 1px solid var(--accent);
}

.header-tools {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  min-width: 0;
}

.header-tools a,
.profile-links a {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.header-tools svg {
  fill: currentColor;
  height: 28px;
  width: 28px;
}

.page {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 22px var(--page-pad) 68px;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  grid-template-columns: minmax(340px, 0.9fr) 1px minmax(0, 1.1fr);
}

.profile-card {
  align-items: center;
  background: var(--panel);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 540px;
  padding: clamp(38px, 5vw, 58px) clamp(24px, 3vw, 34px);
  text-align: center;
}

.profile-photo {
  aspect-ratio: 1;
  background: #f3e6d5;
  border-radius: 5px;
  height: clamp(220px, 23vw, 270px);
  margin: 0 auto 30px;
  object-fit: cover;
  object-position: center;
  width: clamp(220px, 23vw, 270px);
}

.profile-card h1 {
  font-size: clamp(2.28rem, 4vw, 2.78rem);
  font-weight: 400;
  margin-bottom: 14px;
}

.profile-card p {
  font-size: 1.24rem;
  margin: 0 0 22px;
}

.profile-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.profile-links a {
  border: 2px solid transparent;
  border-radius: 50%;
  height: 26px;
  width: 26px;
}

.profile-links svg {
  fill: currentColor;
  height: 24px;
  width: 24px;
}

.profile-links span {
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-rule {
  background: var(--rule);
}

.hero-copy {
  align-self: center;
  padding: 42px 0 24px;
}

.hero-copy h2 {
  font-size: clamp(2.05rem, 4vw, 2.55rem);
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-copy p {
  font-size: clamp(1.02rem, 1.45vw, 1.12rem);
  line-height: 1.72;
  margin: 0 0 22px;
}

.section {
  margin-top: clamp(38px, 6vw, 58px);
}

.section h2 {
  font-size: 1.82rem;
  font-weight: 700;
  margin-bottom: 9px;
}

.section-rule {
  background: var(--ink);
  height: 1px;
  margin-bottom: 22px;
}

.two-column,
.about-layout {
  display: grid;
  gap: clamp(34px, 5vw, 58px);
  grid-template-columns: 1fr 1fr;
}

.two-column p,
.about-copy p {
  font-size: 1.05rem;
  line-height: 1.72;
  margin: 0 0 25px;
}

.two-column .lead {
  font-weight: 700;
  line-height: 1.65;
}

.research-lemma {
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.58;
  margin-bottom: 28px;
  padding: 4px 0 4px 18px;
}

.experience-panel {
  border-left: 1px solid var(--rule);
  display: grid;
  gap: 14px;
  padding-left: clamp(22px, 3vw, 34px);
  position: relative;
}

.experience-panel::before {
  background: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 50%;
  content: "";
  height: 11px;
  left: -6px;
  position: absolute;
  top: 4px;
  width: 11px;
}

.experience-item {
  background: rgba(250, 240, 227, 0.58);
  border: 1px solid var(--panel-rule);
  border-radius: 5px;
  padding: 16px 18px 15px;
  position: relative;
}

.experience-item::before {
  background: var(--accent);
  border-radius: 50%;
  content: "";
  height: 8px;
  left: calc(clamp(22px, 3vw, 34px) * -1 - 5px);
  position: absolute;
  top: 24px;
  width: 8px;
}

.experience-date {
  color: var(--accent);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.experience-item h3 {
  font-family: "Red Hat Text", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.experience-item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-list li {
  line-height: 1.78;
  margin: 0 0 0.25rem;
  padding-left: 1.45rem;
  position: relative;
}

.timeline-list li::before {
  color: var(--ink);
  content: "✹";
  left: 0;
  position: absolute;
}

.news-list {
  display: grid;
  grid-template-columns: minmax(118px, 0.22fr) minmax(0, 1fr);
  margin: 0;
}

.news-list dt,
.news-list dd {
  border-bottom: 1px solid var(--rule);
  margin: 0;
  padding: 16px 0;
}

.news-list dt {
  color: var(--ink-soft);
  font-weight: 700;
}

.news-list dd {
  line-height: 1.65;
}

.project-grid {
  display: grid;
  align-items: stretch;
  gap: clamp(26px, 3.4vw, 38px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  display: grid;
  grid-template-rows: auto minmax(3.35rem, auto) 1fr auto;
  min-width: 0;
}

.project-figure {
  align-items: center;
  aspect-ratio: 2.15 / 1;
  background: #fffdf8;
  border: 1px solid var(--panel-rule);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  margin: 0 0 16px;
  overflow: hidden;
  padding: clamp(4px, 0.7vw, 8px);
  transition: border-color 160ms ease, transform 160ms ease;
}

.project-figure img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.project-card h3 {
  font-size: clamp(1.12rem, 1.6vw, 1.34rem);
  font-weight: 400;
  margin-bottom: 12px;
  max-width: 95%;
}

.project-card p {
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
  line-height: 1.58;
  margin: 0 0 10px;
  padding-top: 13px;
}

.project-card a {
  font-size: 0.92rem;
}

.project-card:hover .project-figure {
  border-color: rgba(162, 62, 2, 0.35);
  transform: translateY(-2px);
}

.publication-list {
  margin: 0;
  padding-left: 1.35rem;
}

.publication-list li {
  line-height: 1.68;
  margin-bottom: 0.8rem;
}

.publication-page {
  max-width: 1060px;
}

.publication-header {
  margin: 18px 0 clamp(36px, 5vw, 52px);
  max-width: 820px;
}

.publication-header h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.publication-header p:not(.eyebrow) {
  font-size: 1.08rem;
  line-height: 1.72;
  margin: 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.publication-list.detailed {
  display: grid;
  gap: 0;
  list-style: none;
  padding-left: 0;
}

.publication-list.detailed li {
  border-bottom: 1px solid var(--rule);
  margin: 0;
  padding: 18px 0 20px;
}

.publication-list.detailed article {
  display: grid;
  gap: 5px;
}

.publication-list.detailed h3 {
  font-family: "Red Hat Text", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 0;
}

.publication-list.detailed p {
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

.publication-list.detailed strong {
  color: var(--ink);
  font-weight: 800;
}

.site-footer {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 var(--page-pad) 40px;
}

.site-footer p {
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
  padding-top: 20px;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: auto;
    padding-bottom: 22px;
    padding-top: 22px;
    row-gap: 18px;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 3;
  }

  .header-tools {
    justify-content: flex-end;
  }

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

  .hero-rule {
    height: 1px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .two-column,
  .about-layout,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .experience-panel {
    border-left: 0;
    padding-left: 0;
  }

  .experience-panel::before,
  .experience-item::before {
    display: none;
  }

  .project-card {
    grid-template-rows: auto auto auto auto;
    max-width: 760px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .primary-nav {
    gap: 18px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    width: 100%;
  }

  .primary-nav a {
    font-size: 0.95rem;
    letter-spacing: 0.16em;
  }

  .page,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .header-tools {
    justify-content: center;
  }

  .profile-card {
    min-height: auto;
    padding: 38px 24px;
  }

  .profile-photo {
    height: 220px;
    width: 220px;
  }

  .profile-card h1 {
    font-size: 2.25rem;
  }

  .hero-copy h2 {
    font-size: 2rem;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .news-list dt {
    border-bottom: 0;
    padding-bottom: 2px;
  }

  .news-list dd {
    padding-top: 0;
  }
}
