@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600&family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap');

/* Homepage editorial direction. Kept separate from the writing archive. */
.home-body {
  --paper: #f2efe7;
  --paper-light: #faf8f2;
  --ink: #171817;
  --ink-soft: #51524e;
  --rule: #c9c4b8;
  --cmu-red: #c41230;
  --navy: #223f5f;
  --blue-wash: #b9c8d5;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', Arial, sans-serif;
}

.home-body::before {
  display: none;
  content: none;
}

.home-body ::selection {
  background: var(--cmu-red);
  color: #fff;
}

.home-body p,
.home-body a,
.home-body button,
.home-body td,
.home-body th,
.home-body tr {
  font-family: 'Inter', Arial, sans-serif;
}

.home-body h1,
.home-body h2,
.home-body h3,
.home-body h4 {
  color: var(--ink);
}

.home-body a {
  color: var(--navy);
  text-underline-offset: 3px;
}

.home-body a:hover,
.home-body a:focus {
  color: var(--cmu-red);
}

.home-body .blog-site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--rule);
  background: rgba(242, 239, 231, 0.94);
  backdrop-filter: blur(14px);
}

.home-body .blog-shell,
.home-body .home-page {
  width: min(100% - 64px, 1240px);
  max-width: 1240px;
}

.home-body .blog-nav {
  min-height: 72px;
}

.home-body .blog-brand {
  color: var(--ink);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.home-body .blog-brand::before {
  width: 10px;
  height: 10px;
  margin-right: 11px;
  border-radius: 0;
  background: var(--cmu-red);
  box-shadow: none;
}

.home-body .blog-nav-links {
  gap: 26px;
}

.home-body .blog-nav-links a {
  color: var(--ink-soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-body .blog-nav-links a:hover {
  color: var(--cmu-red);
}

.home-body .hero-section {
  position: relative;
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.58fr);
  align-items: center;
  gap: clamp(60px, 8vw, 120px);
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.hero-depth-object {
  position: absolute;
  z-index: 0;
  top: 49%;
  left: 58%;
  width: 390px;
  height: 390px;
  opacity: 0.62;
  perspective: 900px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.depth-shell {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: depthDrift 22s ease-in-out infinite;
}

.depth-ring {
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(34, 63, 95, 0.16);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.depth-ring-one {
  transform: rotateX(68deg);
}

.depth-ring-two {
  transform: rotateY(68deg);
}

.depth-ring-three {
  inset: 23%;
  border-color: rgba(34, 63, 95, 0.11);
  transform: rotateX(52deg) rotateY(46deg);
}

.depth-ring-accent {
  inset: 34%;
  border-color: rgba(196, 18, 48, 0.18);
  transform: rotateX(74deg) rotateY(-34deg);
}

.depth-point {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  background: rgba(196, 18, 48, 0.55);
  transform: translate(-50%, -50%) translateZ(34px);
}

@keyframes depthDrift {
  0%, 100% {
    transform: rotateX(7deg) rotateY(-11deg) rotateZ(-2deg);
  }
  50% {
    transform: rotateX(-5deg) rotateY(12deg) rotateZ(5deg);
  }
}

.home-body .hero-copy {
  min-width: 0;
  padding: 92px 0 !important;
}

.home-body .hero-status {
  display: grid;
  align-items: start;
  gap: 7px;
  margin-bottom: 38px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-body .hero-status span {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  white-space: normal;
}

.home-body .hero-status .hero-institution {
  color: var(--cmu-red);
  font-weight: 500;
}

.home-body .hero-status .hero-program {
  color: var(--ink-soft);
}

.home-body .name {
  max-width: 560px;
  margin: 0 0 32px;
  color: var(--ink);
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(42px, 4vw, 56px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.home-body .name > span {
  display: block;
}

.home-body .hero-lede {
  max-width: 690px;
  margin-bottom: 34px !important;
  color: var(--ink-soft) !important;
  font-size: 17px !important;
  line-height: 1.72;
}

.home-body .hero-lede a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--cmu-red);
  text-decoration-thickness: 1px;
}

.home-body .hero-actions {
  display: flex;
  gap: 28px;
}

.home-body .hero-actions a {
  display: inline-flex;
  min-height: auto;
  align-items: center;
  gap: 8px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink) !important;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-body .hero-actions a:hover {
  border-color: var(--cmu-red);
  color: var(--cmu-red) !important;
  transform: none;
}

.hero-portrait-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  min-width: 0;
  justify-self: end;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.hero-portrait-frame {
  position: relative;
  z-index: 3;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  transform: rotateY(-5deg) rotateX(1deg) translateZ(22px);
  transform-origin: right center;
}

.portrait-plane {
  position: absolute;
  inset: 0;
  border: 1px solid var(--ink);
  pointer-events: none;
}

.portrait-plane-back {
  z-index: 1;
  background: var(--navy);
  transform: translate(24px, 24px) rotateY(-5deg) translateZ(-28px);
}

.portrait-plane-middle {
  z-index: 2;
  background: var(--cmu-red);
  transform: translate(12px, 12px) rotateY(-5deg) translateZ(-8px);
}

.home-body .hero-portrait-frame .profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0;
  box-shadow: none;
  filter: saturate(0.82) contrast(1.05);
  object-fit: cover;
  object-position: 53% 42%;
}

.home-body .hero-portrait-frame .profile-photo:hover {
  transform: none;
}

.home-body .portrait-caption {
  position: static;
  display: block;
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper-light);
  color: var(--ink-soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: none;
}

.home-body .profile-links {
  display: grid;
  grid-template-columns: repeat(9, auto);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 !important;
  padding: 19px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.home-body .profile-links a {
  color: var(--ink-soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-body .profile-links a::after {
  margin-left: 5px;
  color: var(--rule);
  content: '↗';
}

.home-body .profile-links a:hover {
  color: var(--cmu-red);
}

.home-body .profile-summary {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1.65fr);
  align-items: start;
  gap: clamp(48px, 8vw, 110px);
  padding: 120px 0;
  border-top: 0;
}

.section-marker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-marker span {
  color: var(--cmu-red);
  font-family: inherit;
}

.home-body .profile-summary-copy h2 {
  max-width: 820px;
  margin: 0 0 34px;
  color: var(--ink);
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.home-body .profile-summary-copy p {
  max-width: 740px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.78;
}

.home-body .profile-summary-copy a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--rule);
}

.home-body .home-section > tbody > tr > td {
  padding: 116px 0 !important;
  border-top: 1px solid var(--rule);
}

.home-body .home-section h2 {
  margin: 18px 0 26px;
  color: var(--ink);
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(46px, 5.2vw, 70px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.home-body .home-section > tbody > tr > td > p:first-of-type {
  max-width: 700px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.home-body .blog-kicker {
  margin-bottom: 12px;
  color: var(--cmu-red);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.home-body .research-grid {
  display: block;
  margin-top: 54px;
  border-top: 1px solid var(--ink);
}

.home-body .research-grid > li,
.home-body .research-grid > .research-primary {
  display: grid;
  min-height: auto;
  grid-template-columns: 70px minmax(230px, 0.72fr) minmax(0, 1.28fr);
  grid-template-rows: none;
  align-items: start;
  gap: 24px;
  padding: 28px 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.home-body .research-grid > li:hover,
.home-body .research-grid > .research-primary:hover {
  border-color: var(--rule);
  background: transparent;
  transform: none;
}

.home-body .research-grid > .research-primary::after {
  display: none;
  content: none;
}

.home-body .research-grid .research-index,
.home-body .research-grid > .research-primary .research-index {
  margin: 4px 0 0;
  color: var(--cmu-red);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.home-body .research-grid strong,
.home-body .research-grid > .research-primary strong {
  margin: 0;
  color: var(--ink);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home-body .research-grid span:not(.research-index),
.home-body .research-grid ul {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.home-body .research-grid ul {
  margin-top: 10px;
  padding-left: 18px;
}

.home-body .section-heading-row {
  align-items: flex-end;
  margin-bottom: 38px;
}

.home-body .section-heading-row > a {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-body .blog-card-grid-home {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.home-body .blog-card {
  min-height: 240px;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.home-body .blog-card:hover {
  border-color: var(--cmu-red);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.home-body .blog-topic {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cmu-red);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 500;
}

.home-body .blog-card-meta {
  color: #77776f;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
}

.home-body .blog-card h3,
.home-body .blog-card h3 a {
  color: var(--ink);
}

.home-body .blog-card h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.22;
}

.home-body .blog-card p {
  color: var(--ink-soft);
  font-size: 13px;
}

.home-body .blog-card-link {
  color: var(--navy);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-body .blog-home-empty {
  border-color: var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--ink-soft);
}

.home-body .tab-buttons {
  width: auto;
  gap: 28px;
  margin: 38px 0 0;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
}

.home-body .tab-button {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #75756e;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-body .tab-button:hover {
  color: var(--cmu-red);
}

.home-body .tab-button.active {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--cmu-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 15px;
}

.home-body .tab-content {
  padding: 32px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-body #news li,
.home-body .talk-container,
.home-body .fellowship-container {
  border-bottom-color: var(--rule);
  color: var(--ink-soft);
}

.home-body #news li {
  padding: 14px 0;
  font-size: 14px;
}

.home-body .talk-title,
.home-body .fellowship-title,
.home-body .publication-title {
  color: var(--ink);
}

.home-body .talk-description,
.home-body .fellowship-description,
.home-body .publication-authors,
.home-body .publication-venue,
.home-body .publication-description,
.home-body .talk-impact {
  color: var(--ink-soft);
}

.home-body .publication-container {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 32px;
  margin: 0;
  padding: 28px 0;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-body .publication-container:last-child {
  border-bottom: 1px solid var(--rule);
}

.home-body .publication-container:hover {
  border-color: var(--rule);
  background: transparent;
}

.home-body .publication-image {
  width: 160px;
  height: 112px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--paper-light);
  filter: saturate(0.72);
}

.home-body .publication-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.home-body .publication-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-body .paper-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: 32px;
  border-top: 1px solid var(--ink);
}

.home-body .paper-list li {
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
}

.home-body .site-footer td {
  padding: 26px 0 48px !important;
  border-top-color: var(--ink);
}

.home-body .site-footer p {
  color: #76766f;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px !important;
}

@media (max-width: 960px) {
  .hero-depth-object {
    left: 57%;
    width: 310px;
    height: 310px;
    opacity: 0.48;
  }

  .home-body .hero-section {
    min-height: 650px;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
    gap: 40px;
  }

  .home-body .name {
    font-size: clamp(42px, 5vw, 50px);
  }

  .home-body .profile-links {
    grid-template-columns: repeat(5, auto);
    justify-content: start;
    gap: 14px 28px;
  }
}

@media (max-width: 720px) {
  .home-body .blog-shell,
  .home-body .home-page {
    width: min(100% - 36px, 1240px);
  }

  .home-body .blog-nav {
    min-height: 66px;
    flex-direction: row;
    align-items: center;
    padding: 0;
  }

  .home-body .blog-nav-links {
    display: none;
  }

  .home-body .hero-section {
    display: flex;
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-bottom: 80px;
  }

  .hero-depth-object {
    top: 66%;
    left: 78%;
    width: 260px;
    height: 260px;
    opacity: 0.34;
  }

  .home-body .hero-copy {
    padding: 72px 0 42px !important;
  }

  .home-body .name {
    font-size: clamp(42px, 11vw, 50px);
  }

  .hero-portrait-wrap {
    width: min(calc(100% - 24px), 410px);
    justify-self: start;
    margin-right: 24px;
  }

  .home-body .profile-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 18px;
  }

  .home-body .profile-summary {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 90px 0;
  }

  .home-body .home-section > tbody > tr > td {
    padding: 90px 0 !important;
  }

  .home-body .research-grid > li,
  .home-body .research-grid > .research-primary {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .home-body .research-grid span:not(.research-index),
  .home-body .research-grid ul {
    grid-column: 2;
  }

  .home-body .blog-card-grid-home,
  .home-body .talk-columns,
  .home-body .publication-container,
  .home-body .paper-list {
    grid-template-columns: 1fr;
  }

  .home-body .publication-image {
    width: 100%;
    height: 190px;
  }
}

@media (max-width: 430px) {
  .home-body .name {
    font-size: 42px;
  }

  .home-body .hero-lede {
    font-size: 16px !important;
  }

  .home-body .profile-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-body .profile-summary-copy h2,
  .home-body .home-section h2 {
    font-size: 44px;
  }

  .home-body .section-heading-row {
    align-items: flex-start;
  }

  .home-body .tab-buttons {
    width: 100%;
    gap: 22px;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .depth-shell {
    animation: none;
  }
}
