:root {
  --paper: #fbfbf8;
  --surface: #ffffff;
  --ink: #1f1b1c;
  --muted: #5d5962;
  --line: #dfddd8;
  --accent: #ff4040;
  --gold: #e9a308;
  --blue: #2f6386;
  --shadow: 0 18px 45px rgba(31, 27, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Avenir, "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.65rem 0.85rem;
  color: var(--surface);
  background: var(--ink);
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(1120px, calc(100% - 2rem));
  min-height: 88px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
}

.brand-name {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-subtitle {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
}

.site-nav a {
  padding: 0.35rem 0.3rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  color: var(--blue);
  border-color: var(--blue);
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  min-height: calc(100vh - 170px);
}

.portrait {
  margin: 0;
}

.portrait img {
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--blue);
  font-weight: 700;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.7rem;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

h3 {
  font-size: 1.35rem;
}

h4,
h5 {
  font-size: 1rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.pronunciation-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.audio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.audio-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.audio-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.audio-button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.page-title {
  margin-bottom: 1.2rem;
}

.section {
  margin-top: 2.75rem;
}

.section:first-child {
  margin-top: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(31, 27, 28, 0.05);
}

.card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card.square img {
  aspect-ratio: 1 / 1;
}

.card.tall img {
  aspect-ratio: 7 / 8;
}

.card-body {
  padding: 1.2rem;
}

.research-page .section[aria-label="Research projects"] .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.research-page section[aria-labelledby="undergraduate-research"] .grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ux-projects-page .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ux-projects-page .section-heading {
  border-bottom: 0;
  padding-bottom: 0;
}

.research-page .card-body {
  padding: 1rem;
}

.ux-projects-page .card-body {
  padding: 1rem;
}

.research-page .card h3,
.ux-projects-page .card h2 {
  font-size: 1.12rem;
}

.research-page .card p,
.ux-projects-page .card p {
  font-size: 0.94rem;
  line-height: 1.5;
}

.research-page section[aria-labelledby="undergraduate-research"] .card.tall img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--surface);
}

.ux-projects-page .card img {
  object-fit: contain;
  background: var(--surface);
}

.ux-projects-page .card img.crop-card-image {
  object-fit: cover;
}

.tagline {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.ux-projects-page .tagline,
.research-page .tagline {
  color: var(--accent);
  font-size: 0.82rem;
  line-height: 1.45;
}

.ux-projects-page .card p.tagline,
.research-page .card p.tagline {
  font-size: 0.82rem;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.button:hover {
  border-color: var(--accent);
  color: var(--surface);
  background: var(--accent);
}

.button.secondary {
  border-color: var(--line);
}

.card .button {
  border-color: var(--line);
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
}

.email-link svg {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.publication-list,
.story-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.publication-list li,
.story-block {
  border-left: 4px solid var(--gold);
  padding: 0.15rem 0 0.15rem 1rem;
}

.highlight-name {
  color: var(--accent);
  font-weight: 700;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
}

.feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.feature:first-child {
  border-top: 0;
}

.feature.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
}

.feature.reverse .media {
  order: 2;
}

.media {
  display: grid;
  gap: 0.7rem;
}

.media img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.media-grid.stacked {
  grid-template-columns: 1fr;
}

.caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.plain-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.plain-list li {
  margin-bottom: 0.45rem;
}

.resume-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 720px;
}

.resume-card {
  text-align: center;
}

.resume-card img {
  width: 200px;
  height: 200px;
  margin: 0 auto 1rem;
  object-fit: cover;
  border-radius: 50%;
}

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

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem clamp(1rem, 4vw, 2.2rem);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: clamp(0.86rem, 1.5vw, 1rem);
  font-weight: 600;
  line-height: 1;
}

.footer-link:hover {
  color: var(--blue);
}

.footer-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  color: currentColor;
  font-weight: 800;
  line-height: 1;
}

.email-icon {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.linkedin-icon {
  align-items: baseline;
  font-size: 1.15rem;
  font-weight: 900;
}

.scholar-icon {
  font-family: Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
}

.site-footer .footer-meta {
  margin-top: 1.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.site-footer > p:not(.footer-meta),
.footer-social {
  display: none;
}

.home-page .hero > div {
  max-width: 430px;
}

.home-page main {
  padding-top: clamp(3rem, 8vh, 4.5rem);
}

.home-page .hero {
  width: min(780px, 100%);
  min-height: auto;
  margin: 0 auto;
  grid-template-columns: minmax(240px, 340px) minmax(280px, 430px);
  justify-content: center;
  align-items: center;
}

.home-page h1 {
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.home-page h1::after {
  display: none;
}

.home-page .hero p {
  margin-bottom: 1.35rem;
  line-height: 1.35;
}

.home-page .hero .lede {
  font-size: 1.02rem;
}

.home-page .portrait img {
  border: 0;
  box-shadow: 0 10px 24px rgba(31, 27, 28, 0.12);
}

.story-page main {
  width: min(1040px, calc(100% - 2rem));
}

.story-page .page-title {
  margin-bottom: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.story-page .page-title h1 {
  max-width: 820px;
}

.story-page .eyebrow {
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.story-page .two-column {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-top: 0;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 0 0 100vmax var(--surface);
  clip-path: inset(0 -100vmax);
}

.story-page .two-column > div {
  max-width: 560px;
}

.story-page .two-column > div:last-child {
  border-left: 4px solid var(--gold);
  padding-left: clamp(1rem, 3vw, 1.5rem);
}

.story-page #how-going {
  max-width: 760px;
}

.story-page section[aria-labelledby="how-going"] {
  max-width: 840px;
  margin: 3rem auto 0;
  padding: 1.4rem 0 1.55rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story-page section[aria-label="Project milestones"] {
  position: relative;
  margin-top: 3rem;
}

.story-page .feature,
.story-page .feature.reverse {
  position: relative;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(1.75rem, 4vw, 2.75rem) 1.75rem;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.story-page .feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(2rem, 4vw, 3rem);
  width: 0.7rem;
  height: 0.7rem;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.story-page .feature::after {
  content: "";
  position: absolute;
  left: 0.43rem;
  top: calc(clamp(2rem, 4vw, 3rem) + 1.15rem);
  bottom: -0.65rem;
  width: 1px;
  background: var(--line);
}

.story-page .feature:last-child::after {
  display: none;
}

.story-page .feature.reverse .media {
  order: 0;
}

.story-page .feature > div:not(.media) {
  max-width: 640px;
}

.story-page .feature h2 {
  max-width: 620px;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.story-page .feature h3 {
  margin-top: 1.25rem;
  color: var(--blue);
}

.story-page .media {
  gap: 0.55rem;
}

.story-page .media img {
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(31, 27, 28, 0.07);
}

.story-page .media-card-stack {
  display: grid;
  gap: 1rem;
}

.story-page .image-card {
  margin: 0;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(31, 27, 28, 0.07);
}

.story-page .image-card img {
  border: 0;
  box-shadow: none;
}

.story-page .literature-review-media .infographic-card {
  width: min(86%, 320px);
  justify-self: end;
  padding: 0.95rem;
}

.story-page .media > img {
  max-height: none;
  object-fit: contain;
}

.story-page .image-placeholder {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(31, 27, 28, 0.05);
  font-weight: 700;
}

.story-page .inline-image {
  max-width: 320px;
  margin-top: 1rem;
}

.ux-writing-page .inline-image {
  max-width: 460px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.story-page .inline-image img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(31, 27, 28, 0.07);
}

.ux-writing-page .inline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.peacock-page main {
  width: min(1040px, calc(100% - 2rem));
}

.peacock-page .page-title h1 {
  max-width: 820px;
}

.peacock-overview .overview-stack h2:not(:first-child) {
  margin-top: 1.75rem;
}

.peacock-page .small-placeholder {
  min-height: 140px;
  max-width: 280px;
  margin-top: 1.25rem;
}

.peacock-page .peacock-logo {
  display: block;
  width: min(280px, 100%);
  margin-top: 1.25rem;
}

.peacock-page .feature,
.peacock-page .feature.reverse {
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
}

.peacock-page .feature > div:not(.media) {
  max-width: 520px;
}

.peacock-page .media {
  max-width: 340px;
}

.peacock-page .media img {
  max-height: 285px;
  object-fit: contain;
  background: var(--surface);
}

.peacock-page .media-grid img,
.peacock-page .process-stack img {
  width: 100%;
}

.peacock-page .peacock-collage img {
  max-height: 300px;
}

.peacock-page .peacock-collage img:last-child {
  max-height: 300px;
}

.peacock-page .feature:last-child {
  border-bottom: 0;
}

.peacock-page .image-placeholder {
  min-height: 260px;
  padding: 1rem;
  text-align: center;
}

.peacock-page .process-stack {
  gap: 1rem;
}

.peacock-page .process-stack .image-placeholder {
  min-height: 160px;
}

.ux-writing-page .feature,
.ux-writing-page .feature.reverse {
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
}

.ux-writing-page .media {
  max-width: 320px;
}

.story-page .media-grid {
  align-items: start;
  gap: 0.55rem;
}

.story-page .media-grid.stacked {
  grid-template-columns: 1fr;
}

.story-page .media-grid img {
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
}

.story-page .caption {
  max-width: 92%;
  margin-left: auto;
  font-size: 0.76rem;
  line-height: 1.45;
}

.story-page .plain-list {
  padding-left: 0;
  list-style: none;
}

.story-page .plain-list li {
  position: relative;
  padding-left: 1rem;
}

.story-page .plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--gold);
}

.story-page .actions {
  margin-top: 1.15rem;
}

.story-page .feature.no-media,
.story-page .feature.no-media.reverse {
  grid-template-columns: minmax(0, 1fr);
}

.story-page .feature.no-media > div {
  max-width: 720px;
}

@media (max-width: 820px) {
  .hero,
  .two-column,
  .feature,
  .feature.reverse,
  .grid,
  .grid.three,
  .resume-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem 1rem;
    min-height: auto;
    padding: 0.85rem 0;
  }

  .brand,
  .brand-text {
    min-width: 0;
  }

  .brand-name,
  .brand-subtitle {
    overflow-wrap: anywhere;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    justify-content: start;
    gap: 0;
    padding: 0.45rem 0 0.15rem;
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0.15rem;
    font-size: 0.98rem;
  }

  .hero {
    min-height: auto;
  }

  .hero .portrait {
    order: 2;
  }

  .hero > div {
    order: 1;
  }

  .portrait {
    max-width: 340px;
  }

  .home-page main {
    padding-top: clamp(1.2rem, 4vw, 2rem);
  }

  .home-page .hero {
    width: min(420px, 100%);
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: start;
    align-items: start;
  }

  .home-page .hero .portrait {
    order: 2;
  }

  .home-page .hero > div {
    order: 1;
    max-width: 100%;
  }

  .home-page .portrait {
    width: 100%;
    max-width: 340px;
  }

  .home-page .portrait img {
    width: 100%;
    max-height: none;
  }

  .feature.reverse .media {
    order: 0;
  }

  .story-page .two-column,
  .story-page .feature,
  .story-page .feature.reverse {
    grid-template-columns: 1fr;
  }

  .research-page .section[aria-label="Research projects"] .grid,
  .research-page section[aria-labelledby="undergraduate-research"] .grid.three,
  .ux-projects-page .grid {
    grid-template-columns: 1fr;
  }

  .story-page .two-column > div:last-child {
    border-left: 0;
    border-top: 4px solid var(--gold);
    padding-top: 1.25rem;
    padding-left: 0;
  }

  .peacock-overview {
    grid-template-columns: 1fr;
  }

  .peacock-page .feature,
  .peacock-page .feature.reverse {
    grid-template-columns: 1fr;
  }

  .story-page .feature,
  .story-page .feature.reverse {
    padding-left: 1.25rem;
  }

  .story-page .media > img {
    max-height: none;
  }
}

@media (min-width: 560px) and (max-width: 820px) {
  .research-page .section[aria-label="Research projects"] .grid,
  .research-page section[aria-labelledby="undergraduate-research"] .grid.three,
  .ux-projects-page .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story-page .feature.presentation-feature {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 1.2rem, 1120px);
    padding-top: 2rem;
  }

  .header-inner {
    width: min(100% - 1.2rem, 1120px);
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .brand-subtitle {
    font-size: 0.82rem;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .home-page .hero {
    width: 100%;
  }

  .home-page .portrait {
    max-width: min(100%, 320px);
  }

  .card-body,
  .story-block {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .story-page main {
    width: min(100% - 1.1rem, 1040px);
  }

  .story-page .page-title {
    padding-top: 1.5rem;
  }

  .story-page .feature,
  .story-page .feature.reverse {
    padding-left: 0;
  }

  .story-page .feature::before,
  .story-page .feature::after {
    display: none;
  }

  .story-page .media-grid {
    grid-template-columns: 1fr;
  }

  .story-page .caption {
    max-width: 100%;
    text-align: left;
  }
}
