.home-page {
  --home-white: #fff;
  --home-surface: #f5f5f7;
  --home-primary: #1d1d1f;
  --home-gray: #6e6e73;
  --home-secondary: var(--home-gray);
  --home-accent: #0071e3;
  --home-name-accent: #bf4800;
  --home-prose-width: 700px;
  --home-section-padding: clamp(40px, 5vw, 56px);
  --home-radius: 20px;
  --home-heading: clamp(2rem, 3.1vw, 2.5rem);
  --home-body: 1rem;
  --home-subheading: 1.25rem;
  --home-detail: 0.875rem;
  --home-count: 0.75rem;
  --home-duration: 180ms;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --bg: var(--home-white);
  --text: var(--home-primary);
  --nav-bg: color-mix(in srgb, var(--home-white) 88%, transparent);
  --nav-text: var(--home-primary);
  font-size: var(--home-body);
  line-height: 1.65;
}

.home-page-work {
  --home-feature-width: 1068px;
}

@media (prefers-color-scheme: dark) {
  .home-page {
    --home-white: #1d1d1f;
    --home-surface: #252527;
    --home-primary: #f5f5f7;
    --home-secondary: #aeaeb2;
    --home-accent: #70baff;
    --home-name-accent: #ff9f0a;
  }
}

.home-page .gnav {
  transition-duration: var(--home-duration);
}

.home-hero {
  box-sizing: border-box;
  display: grid;
  align-content: center;
  min-block-size: calc(100vh - var(--nav-h) - env(safe-area-inset-top, 0px));
  min-block-size: calc(100svh - var(--nav-h) - env(safe-area-inset-top, 0px));
  padding-block: clamp(40px, 8vh, 96px);
  padding-inline: max(6.25%, (100% - var(--page-header-max-width)) / 2);
  text-align: center;
}

.home-hero h1 {
  max-width: var(--home-feature-width);
  margin: 0 auto;
  text-wrap: balance;
}

.home-hero-title {
  display: block;
  width: fit-content;
  margin-inline: auto;
  font-size: 80px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.16;
  padding-block-end: 0.05em;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .home-hero-title {
    background-image: linear-gradient(90deg, #2188f1, #7768ff 33%, #aa4fed 63%, #f34e82);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

@media (forced-colors: active) {
  .home-hero-title {
    background: none;
    color: CanvasText;
  }
}

.home-hero-subtitle {
  display: block;
  margin-top: clamp(12px, 1.5vw, 22px);
  color: var(--home-secondary);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.home-hero p {
  max-width: min(100%, 41rem);
  margin: clamp(20px, 3vw, 34px) auto 0;
  color: var(--home-secondary);
  font-size: 17px;
  line-height: 1.5;
  text-wrap: balance;
}

@media (max-width: 1068px) {
  .home-hero-title {
    font-size: clamp(58px, 8vw, 64px);
  }

  .home-hero-subtitle {
    font-size: 40px;
    line-height: 1.1;
  }
}

@media (max-width: 734px) {
  .home-hero-title {
    font-size: clamp(34px, 10vw, 48px);
    letter-spacing: -0.03em;
    line-height: 1.18;
  }

  .home-hero-subtitle {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.125;
  }

  .home-hero p {
    font-size: 16px;
  }
}

.home-page #work-index > section {
  --home-card: var(--home-surface);
  --work-section-background: var(--home-white);
  background: var(--work-section-background);
}

.home-page #work-index > section:nth-child(even) {
  --home-card: var(--home-white);
  --work-section-background: var(--home-surface);
}

.home-page #work-index > section > .travel {
  --text: var(--home-primary);
  --travel-muted: var(--home-secondary);
  --travel-link: var(--home-accent);
  --travel-count: var(--home-secondary);
  --travel-tile: var(--home-card, var(--home-surface));
  --travel-shadow: none;
  --news-section-background: transparent;
  --work-card-shadow: none;
  padding-block: var(--home-section-padding);
  background: transparent;
  font: inherit;
}

.home-page #bio .about-portrait .name {
  color: var(--home-primary);
  font-size: var(--home-heading);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.home-page-work #work-index .travel-heading h2 {
  font-family: "SF Pro Display", -apple-system, "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.0714285714;
}

@media (max-width: 1068px) {
  .home-page-work #work-index .travel-heading h2 {
    font-size: 48px;
    letter-spacing: -0.003em;
    line-height: 1.0834933333;
  }
}

@media (max-width: 734px) {
  .home-page-work #work-index .travel-heading h2 {
    font-size: 28px;
    letter-spacing: 0.007em;
    line-height: 1.1428571429;
  }
}

.home-page .travel-filter[aria-pressed="true"] {
  background: var(--home-primary);
  color: var(--home-white);
}

.home-page .travel-filter:focus-visible {
  outline-color: var(--home-accent);
}

.home-page .travel-filter[aria-pressed="true"]:focus-visible {
  outline-color: var(--home-white);
}

.home-page #bio {
  --font: inherit;
  --text-2: var(--home-secondary);
  --bio-heading: var(--home-primary);
  --bg-tile: var(--home-card);
  --link: var(--home-accent);
  --shadow: none;
  font: inherit;
  letter-spacing: normal;
}

.home-page #bio.section {
  padding-block: var(--home-section-padding);
}

.home-page #bio .about-grid {
  grid-template-columns: minmax(max-content, 0.85fr) minmax(0, var(--home-prose-width));
  gap: clamp(32px, 5vw, 76px);
}

.home-page #bio .about-portrait img {
  max-width: 192px;
}

.home-page #bio .about-portrait .name {
  margin-bottom: 18px;
}

.home-page #bio .org-list a {
  font: inherit;
  font-weight: 600;
}

.home-page #bio .about-bio {
  font: inherit;
  letter-spacing: normal;
}

.home-page #bio .bio-lead {
  max-width: var(--home-prose-width);
}

.home-page #bio .about-bio h3 {
  margin: 0 0 6px;
  color: var(--home-primary);
  font-size: var(--home-subheading);
  line-height: 1.3;
}

.home-page #bio .bio-lead + h3 {
  margin-top: 20px;
}

.home-page #bio .about-bio .prose a {
  background: none;
  color: var(--home-accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.15em;
  transition: text-decoration-color var(--home-duration) ease;
}

.home-page #bio .about-bio .prose a:is(:hover, :focus-visible) {
  text-decoration-color: currentColor;
}

.home-page-work #work-index :is(.news-card h3, .publication-copy h4) {
  font-size: var(--home-subheading);
}

.home-page-work #work-index .experience-card h3 {
  font-size: clamp(22px, 2.2vw, 24px);
  font-weight: 700;
}

.home-page-work #work-index :is(
  .travel-filter,
  .news-card-date,
  .news-card-links,
  .publication-copy p,
  .award-card-meta
) {
  font-size: var(--home-detail);
}

.home-page-work #work-index .travel-filter span {
  font-size: var(--home-count);
}

.home-page :is(.news-card, .publication-card, .award-card) {
  border-radius: var(--home-radius);
  box-shadow: none;
}

.home-page #work-index .news-card-photo {
  border-radius: 0 0 var(--home-radius) var(--home-radius);
}

.home-page-work .publications-list {
  width: 100%;
}

.home-page .publication-card {
  background: var(--travel-tile);
  border: 0;
}

.home-page .publication-cover {
  border-radius: var(--home-radius) 0 0 var(--home-radius);
  box-shadow: none;
}

@media (max-width: 650px) {
  .home-page .publication-cover {
    border-radius: var(--home-radius) var(--home-radius) 0 0;
  }
}

.home-page .publication-copy .publication-venue {
  background-color: var(--home-gray);
  color: #fff;
}

.home-page .publication-authors strong {
  color: var(--home-name-accent);
}

.home-page .site-footer {
  color: var(--home-secondary);
}

@media (max-width: 820px) {
  .home-page #bio .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page #bio .about-portrait img {
    max-width: 152px;
  }
}

@media (max-width: 420px) {
  .home-page #bio .org-list a {
    font-size: clamp(0.875rem, 4vw, 1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .gnav,
  .home-page #bio .about-bio .prose a {
    transition: none;
  }
}
