:root {
  --text: #1a1a1a;
  --muted: #555;
  --border: #ddd;
  --bg: #fafafa;
  --accent: #a31f34;
  --max-width: 1100px;
  --font-body: "Avenir", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-bold: "Avenir Black", "Avenir Heavy", "Avenir Next Heavy", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

b,
strong,
h1,
h2,
h3,
h4,
h5,
h6,
th,
.section-label,
.lab-intro a,
.pub-list__title,
.pub-list__year,
.blog-carousel__label,
.blog-carousel__title,
.blog-carousel__link,
.blog-carousel__counter,
.site-footer__col h3,
.site-footer__wordmark,
.site-footer__mit,
.site-footer__address,
.site-footer__contact,
.site-footer__cta,
.audio-label,
.lookahead-legend dt {
  font-family: var(--font-bold);
  font-weight: normal;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  max-width: none;
  margin: 0;
  padding: 0.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 0;
}

.site-brand__logo {
  display: block;
  height: 3.25rem;
  width: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.5rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.page-lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 2rem;
}

h1, h2, h3, h4 {
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem 1.5rem;
  margin-top: 2rem;
}

.person-card,
.music-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.person-card:hover h4,
.music-card:hover h4 {
  color: var(--accent);
}

.person-card__photo,
.music-card__thumb {
  aspect-ratio: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.person-card__photo img,
.music-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.person-card h4,
.music-card h4 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.person-card h5,
.music-card h5 {
  margin: 0;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.blog-list__item {
  border-bottom: 1px solid var(--border);
}

.blog-list__link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 0;
  color: inherit;
  text-decoration: none;
  align-items: stretch;
}

.blog-list__link:hover h3 {
  color: var(--accent);
}

.blog-list__thumb {
  flex: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.blog-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-list__text {
  flex: 1;
  min-width: 0;
}

.blog-list__date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.blog-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.blog-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Full-width video embeds in blog posts */
article figure.figure {
  width: 100%;
  max-width: 100%;
}

article .ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

article .ratio::before {
  display: none;
}

article .ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pub-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.pub-table thead th {
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.65rem 0.75rem;
  border-bottom: 2px solid var(--border);
}

.pub-table thead th:nth-child(2),
.pub-table thead th:nth-child(3),
.pub-table tbody td:nth-child(2),
.pub-table tbody td:nth-child(3) {
  text-align: right;
  white-space: nowrap;
  width: 5rem;
}

.pub-table tbody td {
  vertical-align: top;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.pub-table__paper a {
  color: #1a0dab;
  text-decoration: none;
  font-weight: 500;
}

.pub-table__paper a:hover {
  text-decoration: underline;
}

.pub-table__authors,
.pub-table__venue {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.pub-table__cited a {
  color: #1a0dab;
  text-decoration: none;
}

.pub-table__cited a:hover {
  text-decoration: underline;
}

.pub-scholar-link {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.pub-scholar-link a {
  color: #1a0dab;
}

.pub-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.pub-list li {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.pub-list__title {
  margin: 0 0 0.25rem;
}

.pub-list__meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.pub-list__year {
  display: inline-block;
  min-width: 3rem;
  color: var(--muted);
}

.pub-list a {
  color: var(--accent);
}

.pub-updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2rem;
}

.hero-bio {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.hero-bio__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero-bio__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bio__links {
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
}

.hero-bio__links a {
  color: var(--accent);
}

.profile-page {
  max-width: 720px;
}

.profile-hero h1 {
  margin-bottom: 0.25rem;
}

.profile-tagline {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 2rem;
}

.profile-section {
  margin-bottom: 2rem;
}

.profile-section h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  margin: 0 0 0.75rem;
  padding: 0;
  color: var(--muted);
}

.profile-back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.profile-back:hover {
  color: var(--accent);
}

.site-footer {
  --footer-bg: #e8e8e8;
  border-top: 1px solid #111;
  background: var(--footer-bg);
  color: #111;
  text-align: left;
}

.site-footer__inner {
  max-width: none;
}

.site-footer__row {
  display: grid;
  gap: 0;
  border-bottom: 1px solid #111;
}

.site-footer__row--nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.site-footer__row--brand {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem);
}

.site-footer__row--meta {
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.5rem);
  border-bottom: none;
}

.site-footer__col {
  padding: 1.25rem clamp(0.85rem, 2vw, 1.5rem);
  border-right: 1px solid #111;
  min-width: 0;
}

.site-footer__col:last-child {
  border-right: none;
}

.site-footer__col h3 {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__col li {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.site-footer__col a {
  color: #111;
  text-decoration: none;
}

.site-footer__col a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer__empty {
  color: #666;
  font-style: italic;
}

.site-footer__wordmark {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.site-footer__meta {
  max-width: 16rem;
}

.site-footer__mit {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
}

.site-footer__address,
.site-footer__contact {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.site-footer__contact a {
  color: #111;
  text-decoration: none;
}

.site-footer__contact a:hover {
  text-decoration: underline;
}

.site-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  padding: 1.1rem 1.35rem;
  background: #66f4ff;
  color: #111;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 88% 100%, 0 100%);
}

.site-footer__cta:hover {
  background: #ffc067;
}

@media (max-width: 900px) {
  .site-footer__row--nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__col:nth-child(2n) {
    border-right: none;
  }

  .site-footer__col:nth-child(-n+2) {
    border-bottom: 1px solid #111;
  }

  .site-footer__row--meta {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 540px) {
  .site-footer__row--nav {
    grid-template-columns: 1fr;
  }

  .site-footer__col {
    border-right: none;
    border-bottom: 1px solid #111;
  }

  .site-footer__col:last-child {
    border-bottom: none;
  }
}

.lab-intro {
  margin-bottom: 2.5rem;
}

.lab-intro h1 {
  margin-bottom: 0.75rem;
}

.lab-intro a {
  color: var(--accent);
}

.blog-carousel {
  --carousel-gray: #e4e4e4;
  --active-accent: #66f4ff;
  position: relative;
  width: 100%;
  margin: 0 0 2.5rem;
  overflow: hidden;
  aspect-ratio: 2.35 / 1;
  background: var(--carousel-gray);
  border-bottom: 1px solid #111;
}

.blog-carousel__track {
  position: absolute;
  inset: 0;
}

.blog-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.blog-carousel__slide.is-active {
  opacity: 1;
}

.blog-carousel__slide-inner {
  position: relative;
  height: 100%;
  background: var(--carousel-gray);
}

.blog-carousel__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 66.667%;
  z-index: 0;
  display: block;
  overflow: hidden;
  background: #cfcfcf;
}

.blog-carousel__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-carousel__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3.5vw, 2.75rem);
}

.blog-carousel__panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--slide-accent, #66f4ff);
  z-index: -1;
}

.blog-carousel__panel--shape-0::before {
  clip-path: polygon(0 0, 100% 0, 74% 100%, 0 100%);
}

.blog-carousel__panel--shape-1::before {
  clip-path: polygon(0 0, 92% 0, 100% 62%, 0 100%);
}

.blog-carousel__panel--shape-2::before {
  clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
}

.blog-carousel__panel--shape-3::before {
  clip-path: polygon(0 0, 100% 0, 100% 72%, 68% 100%, 0 100%);
}

.blog-carousel__label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
}

.blog-carousel__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.8vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.blog-carousel__title a {
  color: #111;
  text-decoration: none;
}

.blog-carousel__title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.blog-carousel__excerpt {
  margin: 0 0 1.25rem;
  max-width: 34rem;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.55;
  color: #111;
}

.blog-carousel__link {
  display: inline-block;
  align-self: flex-start;
  padding: 0.45rem 0;
  color: #111;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid #111;
}

.blog-carousel__link:hover {
  opacity: 0.72;
}

.blog-carousel__nav {
  --nav-accent: var(--active-accent);
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  background: var(--nav-accent);
  border-top: 1px solid #111;
  border-left: 1px solid #111;
}

.blog-carousel__counter {
  min-width: 2.75rem;
  padding: 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}

.blog-carousel__arrow {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #111;
  background: rgba(255, 255, 255, 0.35);
  color: #111;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.blog-carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.65);
}

.blog-carousel__dots {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: flex;
  gap: 0.4rem;
  z-index: 3;
}

.blog-carousel__dot {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: 1px solid #111;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.blog-carousel__dot.is-active,
.blog-carousel__dot[aria-selected="true"] {
  background: var(--dot-accent, var(--active-accent));
}

.blog-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 640px) {
  .hero-bio {
    grid-template-columns: 1fr;
  }

  .hero-bio__photo {
    width: 120px;
    height: 120px;
  }

  .blog-carousel {
    aspect-ratio: auto;
    min-height: 28rem;
  }

  .blog-carousel__slide-inner {
    display: flex;
    flex-direction: column;
  }

  .blog-carousel__panel {
    position: relative;
    width: 100%;
    min-height: 14rem;
    flex: 1;
    order: 2;
  }

  .blog-carousel__media {
    position: relative;
    width: 100%;
    min-height: 12rem;
    flex: 2;
    order: 1;
  }

  .blog-carousel__panel--shape-0::before,
  .blog-carousel__panel--shape-1::before,
  .blog-carousel__panel--shape-2::before,
  .blog-carousel__panel--shape-3::before {
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-carousel__slide {
    transition: none;
  }
}

/* Bootstrap blog posts load after site.css */
.container article {
  font-family: var(--font-body);
}

.container article h1,
.container article h2,
.container article h3,
.container article strong,
.container article b {
  font-family: var(--font-bold) !important;
  font-weight: normal !important;
}
