@font-face { font-family: "Geist Sans"; font-style: normal; font-weight: 100; font-display: swap; src: url("/fonts/geist/geist-sans-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Sans"; font-style: normal; font-weight: 200; font-display: swap; src: url("/fonts/geist/geist-sans-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/geist/geist-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/geist/geist-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/geist/geist-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/geist/geist-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/geist/geist-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/geist/geist-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Sans"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/geist/geist-sans-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/geist/geist-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/geist/geist-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/geist/geist-mono-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/geist/geist-mono-latin-700-normal.woff2") format("woff2"); }

:root {
  --background: 0 0% 100%;
  --foreground: 220 14.3% 38%;
  --card: 0 0% 100%;
  --card-foreground: 220 14.3% 38%;
  --primary: 213 73% 25%;
  --primary-foreground: 0 0% 98%;
  --secondary: 220 14.3% 95.9%;
  --secondary-foreground: 220.9 39.3% 11%;
  --muted: 220 14.3% 95.9%;
  --muted-foreground: 220 8.9% 46.1%;
  --accent: 213 73% 80%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --border: 220 13% 91%;
  --input: 220 13% 91%;
  --radius: .5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: "Geist Sans", Arial, Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: hsl(var(--primary));
}

img,
video {
  display: block;
  max-width: 100%;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(100% - 2rem, 1200px);
  max-width: calc(100vw - 2rem);
  margin-inline: auto;
}

.site-main {
  min-height: calc(100vh - 126px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--background));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  color: hsl(var(--primary));
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 700;
  line-height: 1.12;
}

.brand-text {
  display: grid;
  gap: .02em;
  min-width: max-content;
}

.brand-line {
  display: block;
  white-space: nowrap;
}

.brand-accent {
  color: hsl(var(--foreground));
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  flex: 0 0 auto;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  color: hsl(var(--foreground));
  font-size: 1rem;
}

.desktop-nav a,
.mobile-nav a {
  white-space: nowrap;
  transition: color .15s ease;
}

.desktop-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  color: hsl(var(--primary));
}

.menu-button {
  flex: 0 0 auto;
}

.mobile-nav {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}

.site-footer {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  padding-block: .75rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  align-items: center;
  text-align: center;
}

.footer-social,
.footer-subscribe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-subscribe p,
.copyright {
  margin: 0;
  color: hsl(var(--secondary-foreground) / .68);
  font-size: .75rem;
}

.footer-subscribe p {
  display: none;
  font-size: .875rem;
  white-space: nowrap;
}

.mobile-only {
  display: inline;
}

.desktop-only {
  display: none;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.icon-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.home-hero {
  background: linear-gradient(135deg, hsl(var(--primary) / .1), hsl(var(--background)) 52%, hsl(var(--background)));
  padding-block: 3rem;
}

.home-hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1rem;
}

.hero-copy h1,
.page-header-copy h1,
.section-heading h2,
.narrow h2 {
  margin: 0;
  color: hsl(var(--foreground));
  font-weight: 700;
  line-height: 1;
}

.hero-copy h1 {
  max-width: 19ch;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0;
}

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

.hero-copy h1 span:first-child {
  color: hsl(var(--primary));
}

.hero-copy p,
.page-header-copy p,
.section-heading p,
.large-muted {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: clamp(1rem, 1.3vw, 1.25rem);
}

.hero-copy p {
  max-width: 600px;
}

.hero-visual {
  display: none;
  position: relative;
  justify-self: center;
  width: 300px;
  height: 300px;
}

.hero-visual img,
.hero-visual video {
  position: absolute;
  inset: 0;
  width: 300px;
  height: 300px;
  border-radius: var(--radius);
  object-fit: cover;
}

.hero-visual video {
  z-index: 1;
  transition: opacity .5s ease;
}

.hero-visual video.is-hidden {
  opacity: 0;
}

.band {
  padding-block: 3rem;
}

.band-muted {
  background: hsl(var(--muted));
}

.page-header {
  background: hsl(var(--background));
  padding-block: 2rem;
}

.page-header-copy {
  display: grid;
  gap: .75rem;
  margin-inline: auto;
  max-width: 900px;
  text-align: center;
}

.page-header-copy + * {
  margin-top: 2rem;
}

.page-header-copy h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.publications-page .publication-filter-panel {
  margin-top: 0;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-inline: auto;
  margin-bottom: 3rem;
  max-width: 900px;
  text-align: center;
}

.section-heading h2,
.narrow h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-kicker {
  margin: 0;
  color: hsl(var(--primary));
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.subscribe-section {
  padding-block: 4rem;
}

.subscribe-block {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: linear-gradient(135deg, hsl(var(--primary) / .08), hsl(var(--background)) 46%, hsl(var(--muted) / .64));
}

.subscribe-block-compact {
  margin-bottom: 2rem;
}

.subscribe-block-widget-only {
  max-width: 36rem;
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.subscribe-block-copy {
  display: grid;
  gap: .85rem;
  min-width: 0;
}

.subscribe-block-copy h2 {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.08;
}

.subscribe-block-copy p:not(.section-kicker) {
  margin: 0;
  max-width: 42rem;
  color: hsl(var(--muted-foreground));
}

.subscribe-block-copy .button {
  justify-self: start;
  margin-top: .25rem;
}

.subscribe-embed-wrap {
  display: grid;
  min-width: 0;
}

.substack-embed {
  width: 100%;
  height: 320px;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
}

.subscribe-block-widget-only .substack-embed {
  height: 250px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 1px 2px hsl(220 13% 18% / .06);
}

.hover-card {
  transition: box-shadow .2s ease, transform .2s ease;
}

.hover-card:hover {
  box-shadow: 0 10px 24px hsl(220 13% 18% / .1);
}

.card-header,
.card-content,
.card-footer {
  padding: 1.5rem;
}

.card-content {
  padding-top: 0;
  flex: 1;
}

.card-footer {
  padding-top: .5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.card h2,
.card h3 {
  margin: 0;
  color: hsl(var(--foreground));
  font-weight: 500;
  line-height: 1.12;
}

.card h2 {
  font-size: 1.35rem;
}

.card h3 {
  font-size: 1.25rem;
}

.card p {
  margin: .65rem 0 0;
  color: hsl(var(--muted-foreground));
}

.line-clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.5rem;
  padding: .5rem 1rem;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: hsl(var(--secondary-foreground));
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.button svg {
  width: 1rem;
  height: 1rem;
}

.button svg path {
  vector-effect: non-scaling-stroke;
}

.button-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.button-primary:hover {
  background: hsl(var(--primary) / .9);
  color: hsl(var(--primary-foreground));
}

.button-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.button-secondary:hover,
.filter-button:hover,
.publication-category-button:hover,
.tab-trigger:hover {
  background: hsl(var(--secondary) / .85);
  color: hsl(var(--secondary-foreground));
}

.button-outline,
.filter-button {
  border-color: hsl(var(--input));
  background: hsl(var(--background));
}

.button-sm {
  min-height: 2.25rem;
  padding: .45rem .75rem;
  font-size: .875rem;
}

.button-lg {
  min-height: 2.75rem;
  padding-inline: 1.5rem;
}

.button-block {
  width: 100%;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-top: 1rem;
  min-height: 2.25rem;
  color: hsl(var(--primary));
  font-weight: 500;
  line-height: 1;
}

.center {
  text-align: center;
}

.action-row {
  margin-top: 2rem;
}

.muted {
  color: hsl(var(--muted-foreground));
}

.small-copy {
  color: hsl(var(--muted-foreground));
  font-size: .875rem;
}

.intro-copy {
  display: grid;
  gap: 1rem;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
}

.intro-copy p {
  margin: 0;
}

.team-section {
  padding-bottom: 2rem;
}

.team-section h2 {
  margin: 0 0 3rem;
  text-align: center;
  color: hsl(var(--foreground));
  font-size: 1.875rem;
  font-weight: 500;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin-inline: auto;
}

.team-card {
  align-items: center;
  padding-top: 1rem;
}

.team-photo {
  overflow: hidden;
  border-radius: 999px;
  background: hsl(var(--muted));
}

.team-photo {
  width: 9rem;
  height: 9rem;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role {
  color: hsl(var(--primary)) !important;
  font-weight: 500;
}

.team-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0 1.5rem 1.5rem;
}

.team-links a,
.inline-icon {
  display: inline-flex;
  align-items: center;
}

.team-links svg {
  width: 1.25rem;
  height: 1.25rem;
}

.filter-buttons,
.tab-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2rem;
}

.filter-button {
  min-height: 2rem;
  border-radius: 999px;
  padding: .35rem 1rem;
  font-size: .875rem;
}

.filter-button.is-active,
.publication-category-button.is-active,
.tab-trigger.is-active {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.publication-filter-panel {
  display: grid;
  gap: .75rem;
  width: min(100%, 1200px);
  margin: 0 auto 2rem;
}

.publication-reset-button {
  justify-self: center;
}

.publication-category-grid {
  display: grid;
  gap: .5rem;
  grid-auto-rows: 4.75rem;
  grid-template-columns: 1fr;
}

.publication-category-button {
  display: grid;
  align-items: center;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  justify-content: stretch;
  gap: .65rem;
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: .75rem 1rem;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.publication-category-icon {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
}

.publication-category-label {
  display: block;
  justify-self: start;
  min-width: 0;
  text-align: left;
}

.publication-category-icon svg {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  overflow: visible;
  stroke-width: 2;
}

.publication-category-icon svg path,
.publication-category-icon svg circle,
.publication-category-icon svg rect {
  vector-effect: non-scaling-stroke;
}

.publication-category-button.is-active .publication-category-icon {
  color: currentColor;
}

.publication-initiative-group {
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  padding-top: .25rem;
}

.publication-initiative-group:not([hidden]) {
  display: flex;
}

.publications-grid {
  align-items: stretch;
}

.publication-card {
  min-height: 15rem;
}

.publication-initiative,
.research-initiative {
  color: hsl(var(--primary)) !important;
  font-size: .875rem;
  font-weight: 600;
}

.related-publications {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border));
}

.area-tabs {
  width: 100%;
}

.tab-list {
  display: grid;
  align-items: stretch;
  grid-auto-rows: 4.75rem;
  grid-template-columns: 1fr;
}

.tab-trigger {
  display: grid;
  align-items: center;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  justify-content: stretch;
  gap: .65rem;
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: .75rem 1rem;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.tab-trigger span {
  display: block;
  justify-self: start;
  min-width: 0;
  max-width: 14rem;
  text-align: left;
}

.tab-trigger svg {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  overflow: visible;
  color: hsl(var(--primary));
  justify-self: center;
}

.tab-trigger svg path,
.tab-trigger svg circle,
.tab-trigger svg rect {
  vector-effect: non-scaling-stroke;
}

.tab-trigger.is-active svg {
  color: currentColor;
}

.research-list,
.bibliography-list {
  display: grid;
  gap: 2rem;
}

.research-item {
  display: grid;
  gap: 2rem;
  align-items: start;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: hsl(var(--muted) / .42);
}

.research-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
  color: hsl(var(--muted-foreground));
}

.research-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.research-image-portrait {
  aspect-ratio: auto;
  background: transparent;
}

.research-image-portrait img {
  display: block;
  height: auto;
  max-width: 100%;
}

.research-copy h2 {
  margin: 0 0 .75rem;
  color: hsl(var(--foreground));
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 500;
  line-height: 1.18;
}

.research-copy p {
  margin: 0 0 1rem;
  color: hsl(var(--muted-foreground));
}

.key-findings {
  margin-bottom: 1rem;
}

.key-findings h3 {
  margin: 1rem 0 .5rem;
  color: hsl(var(--foreground));
  font-size: 1rem;
  font-weight: 500;
}

.key-findings ul {
  margin: 0;
  padding-left: 1.25rem;
  color: hsl(var(--muted-foreground));
  font-size: .875rem;
}

.research-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.research-actions .link-button {
  margin-top: 0;
}

.status-badge,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .2rem .55rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: .75rem;
  font-weight: 500;
}

.badge-outline {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.badge-blue {
  border-color: hsl(214 74% 84%);
  background: hsl(214 95% 93%);
  color: hsl(214 75% 32%);
}

.status-completed {
  background: hsl(142 76% 92%);
  color: hsl(142 72% 29%);
}

.status-ongoing {
  background: hsl(213 92% 93%);
  color: hsl(213 73% 30%);
}

.status-planned {
  background: hsl(48 96% 89%);
  color: hsl(35 92% 28%);
}

.ephor-link img {
  width: 1rem;
  height: 1rem;
}

.bibliography-card {
  background: hsl(var(--muted) / .42);
}

.bibliography-card h2 {
  font-size: 1.25rem;
}

.bibliography-card a {
  color: hsl(var(--primary));
}

.inline-icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  stroke: none;
}

.resource-section {
  padding-block: 1rem 4rem;
}

.featured-resource {
  display: grid;
  margin-bottom: 3rem;
}

.featured-resource-copy {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.featured-resource-copy .badge {
  justify-self: start;
}

.featured-resource-copy h2 {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
}

.featured-resource-copy p {
  margin: 0;
  color: hsl(var(--muted-foreground));
}

.featured-resource-media {
  min-height: 16rem;
}

.resource-trigger {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: zoom-in;
}

.resource-trigger:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 4px;
}

.resource-title-trigger {
  display: inline;
  line-height: inherit;
}

.resource-title-trigger:hover {
  color: hsl(var(--primary));
}

.featured-resource-media-trigger,
.resource-image-trigger {
  display: block;
  width: 100%;
  overflow: hidden;
}

.featured-resource-media-trigger img,
.resource-image-trigger img {
  transition: transform .18s ease, filter .18s ease;
}

.featured-resource-media-trigger:hover img,
.resource-image-trigger:hover img {
  filter: saturate(1.04);
  transform: scale(1.015);
}

.featured-resource-media img,
.resource-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: .5rem;
  margin: 0;
  padding: 0;
  color: hsl(var(--muted-foreground));
  font-size: .875rem;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: hsl(142 68% 45%);
}

.resource-image {
  height: 12rem;
}

.resource-actions {
  margin-top: auto;
}

.resource-actions .button {
  white-space: nowrap;
}

.resource-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
  color: hsl(var(--muted-foreground));
  font-size: .75rem;
  font-weight: 500;
}

.resource-meta > span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .4rem .35rem;
}

.tag-row .badge {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.contact-form {
  display: grid;
  gap: .6rem;
  max-width: 42rem;
  margin-inline: auto;
  text-align: left;
}

.contact-form label {
  color: hsl(var(--foreground));
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  padding: .75rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.contact-form textarea {
  resize: vertical;
}

.podcast-section {
  display: grid;
  gap: 4rem;
  padding-block: 3rem 4rem;
}

.podcast-hero {
  background: hsl(var(--background));
  padding-block: 2rem;
}

.podcast-hero .page-header-copy {
  margin-bottom: 0;
}

.podcast-show {
  display: grid;
  gap: 1.5rem;
}

.podcast-show + .podcast-show {
  padding-top: 3rem;
  border-top: 1px solid hsl(var(--border));
}

.podcast-show-header {
  display: grid;
  gap: 1rem;
  align-items: end;
}

.podcast-show-header h2 {
  margin: .2rem 0 .5rem;
  color: hsl(var(--foreground));
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.08;
}

.podcast-show-header p {
  margin: 0;
  max-width: 46rem;
  color: hsl(var(--muted-foreground));
}

.podcast-kicker {
  color: hsl(var(--primary)) !important;
  font-size: .875rem;
  font-weight: 700;
}

.podcast-episode-grid {
  align-items: stretch;
}

.podcast-episode-card {
  height: 100%;
}

.podcast-episode-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.podcast-episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .18s ease, transform .18s ease;
}

.podcast-episode-thumb:hover img {
  filter: saturate(1.08);
  transform: scale(1.02);
}

.podcast-play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--background) / .92);
  box-shadow: 0 10px 24px hsl(220 13% 18% / .16);
  transform: translate(-50%, -50%);
}

.podcast-play-mark::before {
  content: "";
  margin-left: .18rem;
  border-block: .46rem solid transparent;
  border-left: .72rem solid hsl(var(--primary));
}

.podcast-date {
  margin: 0 0 .5rem !important;
  color: hsl(var(--primary)) !important;
  font-size: .875rem;
  font-weight: 600;
}

.podcast-episode-card .card-header {
  padding-bottom: 1rem;
}

.podcast-episode-card h4 {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.16;
}

.podcast-episode-card h4 a:hover {
  color: hsl(var(--primary));
}

.podcast-feed-empty {
  display: grid;
  gap: .75rem;
  justify-items: start;
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--muted) / .42);
}

.podcast-feed-empty p {
  margin: 0;
}

.narrow {
  max-width: 48rem;
}

.modal {
  width: min(calc(100% - 2rem), 48rem);
  max-height: 80vh;
  margin: auto;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  box-shadow: 0 24px 72px hsl(220 13% 18% / .24);
}

.modal[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.modal::backdrop {
  background: hsl(220 13% 18% / .42);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0;
}

.modal-header h2 {
  margin: 0;
  color: hsl(var(--foreground));
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
}

.modal-body {
  min-height: 0;
  padding: 1.5rem;
  overflow-y: auto;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  cursor: pointer;
}

.resource-modal {
  width: min(calc(100% - 1.5rem), 84rem);
  max-height: min(94vh, 60rem);
  max-height: min(94dvh, 60rem);
}

.resource-modal-header {
  align-items: center;
  padding-bottom: 1rem;
}

.resource-modal-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem;
  min-width: 0;
}

.resource-modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .55rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-size: .8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.resource-modal-kicker svg {
  width: 1rem;
  height: 1rem;
}

.resource-modal-body {
  display: grid;
  gap: 1.25rem;
  padding-top: 0;
}

.resource-modal-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  height: clamp(13rem, 58vh, 46rem);
  height: clamp(13rem, 58dvh, 46rem);
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--muted) / .55);
}

.resource-modal-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.resource-modal-copy {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.resource-modal-copy p {
  max-width: 68ch;
  margin: 0;
  color: hsl(var(--muted-foreground));
}

.resource-modal-description {
  display: grid;
  gap: 1rem;
  align-self: center;
}

.resource-modal-sidebar {
  display: grid;
  gap: .85rem;
  align-self: center;
}

.resource-modal-tags {
  justify-content: flex-start;
}

.resource-modal-actions {
  margin-top: .25rem;
}

.prose {
  color: hsl(var(--muted-foreground));
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: hsl(var(--foreground));
  font-weight: 500;
  line-height: 1.2;
}

.prose a {
  color: hsl(var(--primary));
  text-decoration: underline;
}

.prose code,
.prose pre {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.whitespace-preline {
  white-space: pre-line;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  html {
    scroll-snap-type: y mandatory;
  }

  .snap-section {
    scroll-snap-align: start;
  }

  .desktop-nav {
    display: flex;
  }

  .menu-button,
  .mobile-nav {
    display: none !important;
  }

  .footer-inner {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-subscribe {
    justify-content: flex-end;
  }

  .footer-subscribe p,
  .desktop-only {
    display: inline;
  }

  .mobile-only {
    display: none;
  }

  .home-hero,
  .band {
    padding-block: 6rem;
  }

  .subscribe-section {
    padding-block: 4rem;
  }

  .home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  }

  .subscribe-block {
    grid-template-columns: minmax(0, .95fr) minmax(20rem, .8fr);
    padding: 1.75rem 2rem;
  }

  .subscribe-block-widget-only {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
  }

  .hero-visual {
    display: block;
  }

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

  .tab-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publication-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    padding: 2rem;
  }

  .research-item-portrait {
    align-items: stretch;
  }

  .research-image-portrait {
    align-self: stretch;
    min-height: 0;
    aspect-ratio: auto;
  }

  .research-item-portrait .research-image-portrait img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
  }

  .featured-resource {
    grid-template-columns: 1fr 1fr;
  }

  .featured-resource-copy {
    padding: 2rem;
  }

  .resource-modal-copy {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, .42fr);
  }

  .resource-modal-sidebar {
    justify-items: end;
  }

  .resource-modal-tags,
  .resource-modal-actions {
    justify-content: flex-end;
  }

  .podcast-show-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 1024px) {
  .research-item-portrait {
    --research-portrait-height: 20.1rem;
  }

  .research-item-portrait {
    align-items: start;
  }

  .research-item-portrait .research-image-portrait {
    align-self: start;
    height: var(--research-portrait-height);
  }

  .research-item-portrait .research-image-portrait img {
    place-self: center;
    width: auto;
    height: var(--research-portrait-height);
    max-width: none;
    object-fit: contain;
  }

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

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

  .tab-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .publication-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

}

@media (max-width: 520px) {
  .brand span {
    max-width: 12rem;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }
}
