:root {
  --paper: #faf9f6;
  --paper-2: #f3f1ec;
  --ink: #20201e;
  --muted: #696762;
  --faint: #918e87;
  --rule: #d9d5cd;
  --accent: #315b57;
  --accent-soft: #e8efed;
  --max: 1060px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.site {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  padding: 34px 0 18px;
  border-bottom: 1px solid var(--rule);
}

.identity { display: inline-block; }
.wordmark {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.wordmark span { font-weight: 400; color: var(--muted); }
.identity-note {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
}

nav {
  display: flex;
  align-items: center;
  gap: 21px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
nav a {
  position: relative;
  font-size: 13px;
  color: var(--muted);
  padding: 3px 0;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: var(--accent);
  transition: right .16s ease;
}
nav a:hover::after,
nav a.active::after { right: 0; }
nav a.active { color: var(--ink); }
nav a.external::after { display: none; }

main { padding-bottom: 34px; }

.hero {
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 78px;
  align-items: center;
  padding: 72px 0 66px;
  border-bottom: 1px solid var(--rule);
}
.eyebrow {
  margin: 0 0 17px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero h1,
.page-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 6.3vw, 72px);
  line-height: .99;
}
.hero .dek {
  max-width: 670px;
  margin: 28px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
}
.hero .labline {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.hero .labline a { border-bottom: 1px solid var(--rule); }
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 30px;
}
.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  font-weight: 650;
}
.text-link::after { content: "→"; font-weight: 400; color: var(--faint); transition: transform .15s ease; }
.text-link:hover::after { transform: translateX(3px); }
.text-link.external::after { content: "↗"; }

.portrait-wrap { align-self: center; }
.portrait {
  width: 210px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  filter: saturate(.72) contrast(.98);
  border: 1px solid var(--rule);
}
.portrait-caption {
  margin-top: 11px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.portrait-caption strong { color: var(--ink); font-weight: 650; }

.section {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 42px;
  padding: 47px 0;
  border-bottom: 1px solid var(--rule);
}
.section:last-child { border-bottom: 0; }
.section-title {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-body { min-width: 0; }
.section-lead {
  margin: -5px 0 25px;
  max-width: 720px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
}

.work-list,
.plain-list,
.people-list,
.course-list,
.book-list,
.link-list,
.theme-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.work-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 19px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.work-item:first-child { border-top: 0; padding-top: 0; }
.work-year {
  color: var(--faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.work-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}
.work-meta {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.work-notes {
  margin-top: 5px;
  color: var(--faint);
  font-size: 11px;
}

.page-header {
  padding: 65px 0 45px;
  border-bottom: 1px solid var(--rule);
}
.page-header h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 61px);
  line-height: 1.03;
}
.page-header p {
  max-width: 720px;
  margin: 21px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 19px;
}
.page-actions { margin-top: 23px; display: flex; flex-wrap: wrap; gap: 22px; }

.theme-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.theme-item:first-child { border-top: 0; padding-top: 0; }
.theme-no { color: var(--faint); font-family: var(--serif); font-size: 15px; }
.theme-item h2, .theme-item h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.015em;
}
.theme-item p { margin: 0; color: var(--muted); max-width: 720px; }

.prose {
  max-width: 760px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.72;
}
.prose p { margin: 0 0 1.2em; }
.prose p:last-child { margin-bottom: 0; }

.inspiration {
  padding: 19px 0;
  border-top: 1px solid var(--rule);
}
.inspiration:first-child { border-top: 0; padding-top: 0; }
.inspiration h3 { margin: 0 0 7px; font-family: var(--serif); font-size: 19px; }
.inspiration p { margin: 0 0 9px; color: var(--muted); font-size: 13px; }
.inline-links { display: flex; flex-wrap: wrap; gap: 16px; }
.inline-links a { font-size: 12px; font-weight: 650; border-bottom: 1px solid var(--rule); }

.pi-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 54px;
  align-items: start;
}
.pi-profile h2 { margin: 0 0 5px; font-family: var(--serif); font-size: 29px; font-weight: 600; }
.pi-role { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.pi-profile p { margin: 0 0 18px; max-width: 700px; color: var(--muted); }
.pi-profile .portrait { width: 180px; }
.degree-list { list-style: none; padding: 0; margin: 23px 0 0; }
.degree-list li { padding: 9px 0; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
.degree-list strong { display: inline-block; min-width: 58px; color: var(--ink); font-weight: 650; }

.people-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
}
.people-list li { padding: 15px 0; border-top: 1px solid var(--rule); }
.people-list li:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.people-name { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.people-affil { margin-top: 3px; color: var(--muted); font-size: 12px; }

.course-item, .book-item, .resource-item {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.course-item:first-child, .book-item:first-child, .resource-item:first-child { border-top: 0; padding-top: 0; }
.course-head { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.course-title, .book-title, .resource-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}
.course-code { color: var(--faint); font-size: 11px; letter-spacing: .04em; }
.course-meta, .book-meta, .resource-meta { margin-top: 5px; color: var(--muted); font-size: 12px; }
.course-item a, .book-item a, .resource-item a { border-bottom: 1px solid var(--rule); }

.contact-line {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
}
.contact-line a { border-bottom: 1px solid var(--rule); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 23px 0 38px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 11px;
}
.footer-links { display: flex; gap: 17px; flex-wrap: wrap; }
.footer-links a { border-bottom: 1px solid transparent; }
.footer-links a:hover { border-color: var(--rule); }

@media (max-width: 800px) {
  .site { width: min(calc(100% - 30px), var(--max)); }
  .site-header { grid-template-columns: 1fr; align-items: start; gap: 16px; padding-top: 25px; }
  nav { justify-content: flex-start; gap: 15px 19px; }
  .hero { grid-template-columns: 1fr 155px; gap: 35px; min-height: 0; padding: 55px 0; }
  .portrait { width: 155px; }
  .section { grid-template-columns: 145px minmax(0,1fr); gap: 28px; }
  .pi-profile { grid-template-columns: 1fr 150px; gap: 30px; }
  .pi-profile .portrait { width: 150px; }
}

@media (max-width: 600px) {
  .site { width: min(calc(100% - 26px), var(--max)); }
  .identity-note { display: none; }
  nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 7px; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 42px; }
  .portrait-wrap { display: grid; grid-template-columns: 120px 1fr; gap: 17px; align-items: end; }
  .portrait { width: 120px; }
  .portrait-caption { margin: 0 0 2px; }
  .hero .dek { font-size: 18px; }
  .section { grid-template-columns: 1fr; gap: 20px; padding: 35px 0; }
  .section-title { padding-bottom: 8px; border-bottom: 0; }
  .work-item { grid-template-columns: 46px minmax(0,1fr); gap: 13px; }
  .page-header { padding: 48px 0 35px; }
  .page-header p { font-size: 17px; }
  .pi-profile { grid-template-columns: 1fr; }
  .pi-profile .portrait { width: 130px; order: -1; }
  .people-list { grid-template-columns: 1fr; }
  .people-list li:nth-child(2) { border-top: 1px solid var(--rule); padding-top: 15px; }
  .course-head { display: block; }
  .course-code { display: block; margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  nav a::after, .text-link::after { transition: none; }
}


.hero-art {
  margin: 0;
  width: 100%;
  align-self: center;
}

.hero-art-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #f0eee8;
}

.hero-art-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;

  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.hero-copy {
  max-width: 640px;
}

.hero h1 {
  max-width: 12ch;
}

.hero .dek {
  max-width: 590px;
}


/* =========================================================
   HERO ART
   ========================================================= */

.hero-art {
  margin: 0;

  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art-frame {
  position: relative;

  width: 100%;
  min-height: 430px;

  aspect-ratio: 1.35 / 1;

  overflow: hidden;

  /*
   * No border, shadow, or obvious card treatment.
   * The artwork should visually merge into the page.
   */
  background: transparent;
}

.hero-art-image {
  position: absolute;

  width: 118%;
  height: 118%;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  object-fit: cover;
  object-position: center;

  display: block;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

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

  .hero-copy {
    max-width: 700px;
  }

  .hero h1 {
    max-width: 15ch;
  }

  .hero-art {
    width: 100%;
  }

  .hero-art-frame {
    min-height: 360px;
    aspect-ratio: 16 / 9;
  }

  .hero-art-image {
    width: 112%;
    height: 112%;
  }
}


@media (max-width: 600px) {

  .hero {
    padding-top: 3rem;
    padding-bottom: 4rem;
    gap: 2.5rem;
  }

  .hero-art-frame {
    min-height: 280px;
    aspect-ratio: 4 / 3;
  }

  .hero-art-image {
    width: 120%;
    height: 120%;
  }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  isolation: isolate;

  min-height: 610px;

  display: flex;
  align-items: center;

  padding-top: clamp(5rem, 9vw, 8rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);

  overflow: hidden;
}


/*
 * Large scientific artwork behind the hero.
 *
 * art.png has the same #faf9f6 background as the website,
 * so it should visually dissolve into the page.
 */

.hero::before {
  content: "";

  position: absolute;

  top: 50%;
  right: -7%;

  width: min(1050px, 78vw);
  aspect-ratio: 16 / 10;

  transform: translateY(-50%);

  background-image: url("art.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  opacity: 0.82;

  z-index: -2;

  pointer-events: none;
}


/*
 * Very subtle fade between text and artwork.
 * This is not intended to visibly look like a gradient.
 * Its job is simply to maintain text legibility.
 */

.hero::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      #faf9f6 0%,
      #faf9f6 31%,
      rgba(250, 249, 246, 0.96) 39%,
      rgba(250, 249, 246, 0.72) 49%,
      rgba(250, 249, 246, 0.18) 66%,
      rgba(250, 249, 246, 0) 82%
    );

  z-index: -1;

  pointer-events: none;
}



/* =========================================================
   HERO TEXT
   ========================================================= */

.hero-copy {
  position: relative;

  width: min(700px, 58%);

  z-index: 1;
}


.hero .eyebrow {
  margin-bottom: 1.5rem;
}


.hero h1 {
  max-width: 13ch;

  margin-top: 0;
  margin-bottom: 1.6rem;
}


.hero .dek {
  max-width: 600px;

  margin-bottom: 1.4rem;
}


.hero .labline {
  max-width: 620px;
}


.hero-links {
  display: flex;
  flex-wrap: wrap;

  gap: 0.8rem 1.8rem;

  margin-top: 2rem;
}



/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

  .hero {
    min-height: 590px;

    padding-top: 5rem;
    padding-bottom: 5rem;
  }


  .hero-copy {
    width: min(650px, 67%);
  }


  .hero::before {
    right: -18%;

    width: 900px;

    opacity: 0.68;
  }


  .hero::after {
    background:
      linear-gradient(
        90deg,
        #faf9f6 0%,
        #faf9f6 34%,
        rgba(250, 249, 246, 0.94) 46%,
        rgba(250, 249, 246, 0.52) 63%,
        rgba(250, 249, 246, 0) 88%
      );
  }

}



/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .hero {
    min-height: auto;

    display: block;

    padding-top: 4rem;
    padding-bottom: 19rem;
  }


  .hero-copy {
    width: 100%;
    max-width: 620px;
  }


  .hero h1 {
    max-width: 15ch;
  }


  /*
   * On narrow screens the art moves beneath the text rather
   * than sitting directly behind it.
   */

  .hero::before {
    top: auto;
    bottom: -3rem;

    right: 50%;

    width: min(760px, 135vw);

    transform: translateX(50%);

    opacity: 0.78;

    background-position: center bottom;
  }


  .hero::after {
    background:
      linear-gradient(
        180deg,
        #faf9f6 0%,
        #faf9f6 58%,
        rgba(250, 249, 246, 0.90) 68%,
        rgba(250, 249, 246, 0.20) 84%,
        rgba(250, 249, 246, 0) 100%
      );
  }

}



/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

  .hero {
    padding-top: 3.5rem;
    padding-bottom: 16rem;
  }


  .hero::before {
    bottom: -2rem;

    width: 155vw;
  }


  .hero-links {
    gap: 0.7rem 1.25rem;
  }

}


/* =========================================================
   MOBILE — keep artwork behind the content
   ========================================================= */

@media (max-width: 700px) {

  .hero {
    position: relative;
    isolation: isolate;

    min-height: 610px;

    display: flex;
    align-items: center;

    padding-top: 4.5rem;
    padding-bottom: 4.5rem;

    overflow: hidden;
  }


  .hero-copy {
    position: relative;

    width: 100%;
    max-width: 100%;

    z-index: 1;
  }


  .hero h1 {
    max-width: 14ch;
  }


  .hero .dek {
    max-width: 34rem;
  }


  .hero .labline {
    max-width: 32rem;
  }


  /*
   * Keep art behind the text.
   * It is deliberately much larger than the viewport so that
   * the dynamical structure remains visually substantial.
   */

  .hero::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;

    width: 175vw;
    height: 115%;

    transform: translate(-50%, -50%);

    background-image: url("art.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;

    opacity: 0.58;

    z-index: -2;

    pointer-events: none;
  }


  /*
   * Light veil for readability.
   * The art remains visible everywhere, but text remains crisp.
   */

  .hero::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
      linear-gradient(
        90deg,
        rgba(250, 249, 246, 0.96) 0%,
        rgba(250, 249, 246, 0.88) 32%,
        rgba(250, 249, 246, 0.66) 58%,
        rgba(250, 249, 246, 0.30) 82%,
        rgba(250, 249, 246, 0.12) 100%
      );

    z-index: -1;

    pointer-events: none;
  }


  .hero-links {
    gap: 0.7rem 1.3rem;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

  .hero {
    min-height: 590px;

    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }


  .hero::before {
    width: 205vw;
    height: 110%;

    /*
     * Slight shift to expose more of the interesting
     * geometry on narrow portrait screens.
     */
    left: 56%;

    opacity: 0.53;
  }


  .hero::after {
    background:
      linear-gradient(
        90deg,
        rgba(250, 249, 246, 0.97) 0%,
        rgba(250, 249, 246, 0.90) 36%,
        rgba(250, 249, 246, 0.67) 64%,
        rgba(250, 249, 246, 0.26) 100%
      );
  }


  .hero h1 {
    max-width: 13ch;
  }


  .hero-links {
    gap: 0.65rem 1.15rem;
  }

}


/* =========================================================
   HERO TEXT
   ========================================================= */

.hero-copy {
  position: relative;
  width: min(820px, 68%);
  z-index: 1;
}

.hero .eyebrow {
  margin-bottom: 1.5rem;
}

.hero h1 {
  max-width: none;
  width: 100%;

  margin-top: 0;
  margin-bottom: 1.75rem;

  font-size: clamp(4rem, 5.6vw, 6.3rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero .dek {
  max-width: 660px;
  margin-bottom: 1.4rem;
}

.hero .labline {
  max-width: 650px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.8rem;
  margin-top: 2rem;
}

.hero::before {
  content: "";

  position: absolute;

  top: 50%;
  right: -10%;

  width: min(1050px, 72vw);
  aspect-ratio: 16 / 10;

  transform: translateY(-50%);

  background-image: url("art.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  opacity: 0.82;

  z-index: -2;
  pointer-events: none;
}

@media (max-width: 700px) {

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(3rem, 12vw, 4.5rem);
    line-height: 0.98;
  }

  .hero h1 span {
    display: inline;
    white-space: normal;
  }

  .hero h1 span:not(:last-child)::after {
    content: " ";
  }
}
