/*
  The one-page layout (hero, stats row, sections, timeline, FAQ) follows
  generatorresidency.org. The palette is watercolor paper and ink: a warm
  cream ground, slate-blue text, and a terracotta accent.
*/

:root {
  --bg: #f7f0e6;
  --text: #22313d;
  --text-2: #33424e;
  --text-3: #52606b;
  --text-4: #7f8a91;
  --rule: #e6dccd;
  --line: #c9bba7;
  --line-2: #d9ccb9;
  --note-bg: #fbf7f1;
  --accent: #a9532f;
  --accent-soft: #f1dccd;
  --footer-bg: #efe6d8;
  --art-opacity: 1;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161b21;
  --text: #ebe6dd;
  --text-2: #d4cec4;
  --text-3: #aea9a0;
  --text-4: #868c92;
  --rule: #29303a;
  --line: #4b535d;
  --line-2: #39414b;
  --note-bg: #1d232b;
  --accent: #e39a74;
  --accent-soft: #3a2a24;
  --footer-bg: #1b2128;
  --art-opacity: 0.75;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

a:hover {
  border-bottom-color: var(--text);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: var(--bg);
  padding: 0.4rem 0.6rem;
}

/* Announcement bar, above the header */
.announce {
  background: var(--text);
  color: var(--bg);
  font-size: 0.85rem;
}

.announce-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem 0.7rem;
  padding: 0.5rem 2rem;
  text-align: center;
}

.announce-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 0.1rem 0.45rem;
}

:root[data-theme="dark"] .announce-tag {
  color: var(--bg);
}

.announce a {
  color: var(--bg);
  border-bottom-color: color-mix(in srgb, var(--bg) 45%, transparent);
  font-weight: 500;
}

.announce a:hover {
  border-bottom-color: var(--bg);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 3.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: none;
}

/* The SIRA mark (brand/README.md): SIRA in Morse code, one colour per letter,
   sampled from the hero painting.
   Lighter versions of the same colours in dark mode. */
.mark {
  display: block;
  flex: none;
  height: 1.3em;
  width: auto;
  aspect-ratio: 7 / 5.5;
}

.mark .m0 { fill: #5f8a6c; }
.mark .m1 { fill: #c9a227; }
.mark .m2 { fill: #b8502f; }
.mark .m3 { fill: #3e6787; }

:root[data-theme="dark"] .mark .m0 { fill: #9fc4a6; }
:root[data-theme="dark"] .mark .m1 { fill: #e8c65a; }
:root[data-theme="dark"] .mark .m2 { fill: #ec8d68; }
:root[data-theme="dark"] .mark .m3 { fill: #8fb3d1; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: auto;
  font-size: 0.9rem;
}

.nav a {
  color: var(--text-3);
  border-bottom: none;
}

.nav a:hover {
  color: var(--text);
}

.nav .nav-cta {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.25rem 0.7rem;
}

.nav .nav-cta:hover {
  border-color: var(--text);
}

.theme-toggle {
  background: none;
  border: 0;
  padding: 0.4rem;
  border-radius: 6px;
  color: var(--text-4);
  cursor: pointer;
  line-height: 0;
}

.theme-toggle:hover {
  color: var(--text);
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: inline;
}

/* Paper grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.text-link {
  font-size: 0.9rem;
  color: var(--text-3);
  border-bottom: 1px solid var(--line-2);
}

.text-link:hover {
  color: var(--text);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-2);
}

.stats dt {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stats dd {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-top: 0.2rem;
}

/* Intro */
.intro p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-2);
  padding: 2rem 0 1rem;
  max-width: 44rem;
}

.intro strong {
  color: var(--text);
  font-weight: 600;
}

/* Sections */
.section {
  padding-top: 3.5rem;
  padding-bottom: 1rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.section h2::before {
  content: "— ";
  color: var(--accent);
  font-weight: 400;
}

.section > p {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-bottom: 0.9rem;
  max-width: 44rem;
}

.section > p.section-lede {
  color: var(--text-3);
  margin-bottom: 1.5rem;
}

.section h3 {
  font-size: 1rem;
  font-weight: 600;
}

.sub-h {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

/* Problem rows */
.rows .row {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}

.rows .row:last-child {
  border-bottom: 1px solid var(--rule);
}

.rows p {
  font-size: 0.92rem;
  color: var(--text-3);
}

/* Cards */
.cards {
  display: grid;
  gap: 1rem;
}

.cards.two {
  grid-template-columns: repeat(2, 1fr);
}

.cards.four {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--note-bg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-3);
}

.card .card-sub {
  color: var(--text-4);
  font-size: 0.85rem;
  margin-top: -0.35rem;
}

.card .text-link {
  margin-top: auto;
  align-self: flex-start;
}

/* Offer list */
.offer {
  list-style: none;
}

.offer li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.92rem;
  color: var(--text-3);
}

.offer li strong {
  color: var(--text);
  font-weight: 600;
}

/* Research questions */
.questions {
  list-style: none;
}

.questions li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.92rem;
  color: var(--text-2);
}

.questions .tag {
  font-size: 0.8rem;
  color: var(--accent);
  padding-top: 0.1rem;
}

/* Timeline */
.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.timeline li {
  border-top: 2px solid var(--accent);
  padding-top: 0.9rem;
}

.timeline .phase {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.timeline p {
  font-size: 0.9rem;
  color: var(--text-3);
  margin-top: 0.35rem;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq details:first-child {
  border-top: 1px solid var(--rule);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 2rem 0.85rem 0;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  color: var(--text-4);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  font-size: 0.92rem;
  color: var(--text-3);
  padding-bottom: 1rem;
  max-width: 44rem;
}

/* Policy vs social science question pairs in the FAQ */
.faq .pairs {
  list-style: none;
  max-width: 44rem;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.6rem;
}

.faq .pairs li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.15rem 1rem;
  font-size: 0.9rem;
  color: var(--text-3);
  padding: 0.6rem 0.8rem;
  background: var(--note-bg);
  border-left: 3px solid var(--line-2);
}

.faq .pairs li span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-4);
  padding-top: 0.12rem;
}

.faq .pairs li span:nth-of-type(2) {
  color: var(--accent);
}

@media (max-width: 720px) {
  .faq .pairs li {
    grid-template-columns: 1fr;
  }
}

/* Footer, after kairos-project.org */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 5rem;
  border-top: 1px solid var(--rule);
  background: var(--footer-bg);
  padding: 3.5rem 0 3rem;
  font-size: 0.92rem;
}

.footer-art {
  position: absolute;
  left: -3rem;
  bottom: -5rem;
  width: 18rem;
  height: auto;
  fill: none;
  stroke: var(--line-2);
  stroke-width: 0.35;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  max-width: 1160px;
  display: grid;
  grid-template-columns: 1fr 13rem 13rem;
  gap: 0 3rem;
}

.footer-brand {
  grid-row: span 2;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  border-bottom: none;
  margin-bottom: 1.4rem;
}

.footer-logo .mark {
  height: 0.85em;
}

.footer-brand p {
  margin-top: 0.2rem;
}

.footer-brand .footer-social {
  display: flex;
  gap: 1.4rem;
  margin-top: 1.2rem;
}

.site-footer a {
  border-bottom: none;
}

.site-footer a:hover {
  border-bottom: 1px solid var(--text);
}

.footer-col h2 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li + li {
  margin-top: 0.6rem;
}

.footer-legal {
  grid-column: 2 / 4;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-2);
  font-size: 0.8rem;
  color: var(--text-3);
}

.footer-legal a {
  border-bottom: 1px solid var(--line);
}

/* Call-to-action strip, after Kairos's "We're hiring" banner */
.cta-wrap {
  padding-top: 4rem;
}

.cta-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.1rem 1.25rem 1.1rem 1.75rem;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background:
    linear-gradient(to top right, transparent calc(50% - 0.5px), color-mix(in srgb, var(--accent) 30%, transparent) 50%, transparent calc(50% + 0.5px)) right 0 top 0 / 6.5rem 100% no-repeat,
    linear-gradient(to bottom right, transparent calc(50% - 0.5px), color-mix(in srgb, var(--accent) 30%, transparent) 50%, transparent calc(50% + 0.5px)) right 0 top 0 / 6.5rem 100% no-repeat,
    linear-gradient(color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent) 30%, transparent)) 50% 0 / 1px 100% no-repeat,
    var(--accent-soft);
}

.cta-strip p {
  position: relative;
  font-size: 1.15rem;
  background: var(--accent-soft);
  padding-right: 0.5rem;
}

.cta-strip strong {
  font-weight: 600;
  margin-right: 0.6rem;
}

.cta-button {
  position: relative;
  flex: none;
  font-size: 0.88rem;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.4rem 1rem;
}

.cta-button:hover {
  border-color: var(--text);
}

@media (max-width: 1000px) {
  .footer-art {
    display: none;
  }
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.5rem;
  }

  .footer-brand,
  .footer-legal {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .footer-legal {
    margin-top: 0;
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
    background: var(--accent-soft);
  }

  .cta-strip strong {
    display: block;
  }
}

/* Small screens */
@media (max-width: 720px) {
  .wrap {
    padding: 0 1rem;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .stats,
  .cards.two,
  .cards.four,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .cards.two,
  .cards.four,
  .timeline {
    grid-template-columns: 1fr;
  }

  .rows .row,
  .questions li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.nowrap {
  white-space: nowrap;
}

/* Landing: the first screen, with the logo over the painting */
.landing {
  position: relative;
  min-height: calc(100svh - 5.6rem);   /* the screen, less the announcement bar and header */
  display: flex;
  align-items: center;
  overflow: hidden;
}

.landing-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 60%;
}

.landing-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-inner {
  position: relative;
  width: 100%;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 0.3em;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4rem, 11vw, 8.5rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--text);
}

.landing-mark {
  height: 0.82em;
  width: auto;
  aspect-ratio: 7 / 5.5;
  flex: none;
}

.landing-mark .m0 { fill: #5f8a6c; }
.landing-mark .m1 { fill: #c9a227; }
.landing-mark .m2 { fill: #b8502f; }
.landing-mark .m3 { fill: #3e6787; }
:root[data-theme="dark"] .landing-mark .m0 { fill: #9fc4a6; }
:root[data-theme="dark"] .landing-mark .m1 { fill: #e8c65a; }
:root[data-theme="dark"] .landing-mark .m2 { fill: #ec8d68; }
:root[data-theme="dark"] .landing-mark .m3 { fill: #8fb3d1; }

.landing-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  margin-top: 0.9rem;
  color: var(--text);
}

.landing-line {
  margin-top: 0.4rem;
  font-size: 1.05rem;
  color: var(--text-3);
}

.landing-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.6rem;
  border: 1.5px solid var(--text);
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.landing-button:hover {
  background: var(--text);
  color: var(--bg);
}

.landing-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: var(--text-3);
  border-bottom: none;
}

.landing-credit {
  position: absolute;
  right: 1.2rem;
  bottom: 1.4rem;
  font-size: 0.72rem;
  color: var(--text-4);
}

/* The painting fills the screen; a cream wash on the left holds the logo. */
.landing-veil {
  background: linear-gradient(to right, var(--bg) 0%, color-mix(in srgb, var(--bg) 94%, transparent) 38%, color-mix(in srgb, var(--bg) 40%, transparent) 66%, transparent 88%),
              linear-gradient(to top, var(--bg) 0%, transparent 22%);
}

@media (max-width: 720px) {
  .landing-veil {
    background: linear-gradient(to top, var(--bg) 8%, color-mix(in srgb, var(--bg) 88%, transparent) 55%, color-mix(in srgb, var(--bg) 40%, transparent));
  }
  .landing-credit { display: none; }
}

/* Stats row, after the landing: large light figures over small spaced capitals. */
.stats {
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 3vw;
  margin: 0;
  padding: 4.5rem 0 4rem;
  border-top: none;
  text-align: center;
}

.stats dt {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
}

.stats dd {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    padding: 3rem 0;
  }
}

.stats-wrap {
  max-width: 1160px;
}

.stats dt {
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* About page (about/index.html), after kairos-project.org/about */
.about-hero {
  padding-top: 4.5rem;
  padding-bottom: 1rem;
}

.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.about-hero p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  color: var(--text-2);
  margin-top: 1rem;
  max-width: 36rem;
}

.about-points {
  list-style: none;
}

.about-points li {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}

.about-points li:last-child {
  border-bottom: 1px solid var(--rule);
}

.about-points h2 {
  font-size: 1.35rem;
  color: var(--accent);
  margin: 0;
}

.section .about-points h2::before {
  content: none;
}

.about-points p {
  font-size: 0.98rem;
  color: var(--text-2);
}

/* Team: square photo cards; each opens a bio dialog */
.team {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--line-2);
  background: var(--note-bg);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s;
}

.team-card:hover {
  border-color: var(--text-4);
}

.team-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--accent);
}

.bio {
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-2);
  width: min(780px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  background: var(--note-bg);
  color: var(--text);
}

.bio::backdrop {
  background: color-mix(in srgb, #f7f0e6 60%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

:root[data-theme="dark"] .bio::backdrop {
  background: color-mix(in srgb, #161b21 70%, transparent);
}

.bio-panel {
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 2.5rem;
}

.bio-panel > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.bio-text h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.2;
}

.bio-text p {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-top: 0.9rem;
}

.bio-text .team-role {
  margin-top: 0.2rem;
  color: var(--accent);
}

.bio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bio-links a {
  font-size: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
}

.bio-links a:hover {
  border-color: var(--text);
}

.bio-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.about-button {
  margin-top: 0.5rem;
}

.about-button:hover {
  border-bottom: 1.5px solid var(--text);
}

.nav a[aria-current="page"] {
  color: var(--text);
}

@media (max-width: 720px) {
  .nav a.nav-page {
    display: inline;
  }

  .about-points li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .team {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .team-card {
    padding: 0.6rem;
  }

  .team-name {
    font-size: 1rem;
  }

  .bio-panel {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .bio-panel > img {
    width: 9rem;
  }
}

/* Projects menu in the header */
.nav-menu {
  position: relative;
}

.nav-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--text-3);
  cursor: pointer;
}

.nav-menu-button:hover,
.nav-menu-button[data-current],
.nav-menu.open .nav-menu-button {
  color: var(--text);
}

.nav-drop {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 15rem;
  padding: 0.4rem;
  background: var(--note-bg);
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 30px rgba(34, 49, 61, 0.1);
  display: none;
  z-index: 20;
}

/* An invisible bridge, so the menu stays open while the pointer moves down to it */
.nav-drop::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.9rem;
  height: 0.9rem;
}

.nav-menu.open .nav-drop {
  display: block;
}

@media (hover: hover) {
  .nav-menu:hover .nav-drop {
    display: block;
  }
}

.nav .nav-drop a {
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0.75rem;
  color: var(--text);
}

.nav .nav-drop a:hover,
.nav .nav-drop a[aria-current="page"] {
  background: var(--bg);
}

.nav-drop strong {
  font-weight: 500;
}

.nav-drop span {
  font-size: 0.75rem;
  color: var(--text-4);
}

.kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.about-hero .kicker {
  margin-bottom: 0.9rem;
}

/* The fellowship's heading on the home page */
.feature-head {
  padding-top: 5rem;
  text-align: center;
}

.feature-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0.6rem 0 0.8rem;
}

.feature-head p {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 34rem;
  margin: 0 auto 1rem;
}

/* The two projects in development, side by side */
.ideas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.idea {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px dashed var(--line);
  transition: border-color 0.2s;
}

.idea:hover {
  border-color: var(--text-4);
}

.idea h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
}

.idea p {
  font-size: 0.9rem;
  color: var(--text-3);
}

.idea-more {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-2);
}

.page-text {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 40rem;
}

.section > p.page-text {
  font-size: 1.05rem;
}

@media (max-width: 720px) {
  .nav .nav-menu {
    display: block;
  }

  .nav a[href$="#faq"] {
    display: none;
  }

  .nav {
    gap: 0.9rem;
  }

  .nav-drop {
    left: auto;
    right: -4rem;
    transform: none;
  }

  .ideas {
    grid-template-columns: 1fr;
  }
}

.nav a,
.nav-menu-button {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .header-row {
    gap: 0.6rem;
  }

  .nav {
    gap: 0.75rem;
    font-size: 0.85rem;
  }

  .nav .nav-cta {
    padding: 0.2rem 0.55rem;
  }
}

@media (max-width: 420px) {
  .wordmark span {
    display: none;
  }
}

/* Event details under a page title (workshop page) */
.about-hero .event-meta {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-3);
  margin-top: 1.2rem;
}

.event-meta span {
  margin: 0 0.4rem;
}

.event-button {
  margin-top: 1.5rem;
}

.event-button:hover {
  border-bottom: 1.5px solid var(--text);
}

.section > p.page-text {
  color: var(--text-2);
  max-width: 42rem;
}

.fit {
  list-style: none;
  margin-bottom: 1.2rem;
}

.fit li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.6rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--text-2);
}

.fit li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 1.1rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
}
