:root {
  color-scheme: light;
  --ink: #132326;
  --muted: #526266;
  --paper: #fbf8ef;
  --surface: #ffffff;
  --aqua: #0e7c86;
  --aqua-dark: #075861;
  --coral: #e85f4f;
  --gold: #f2b84b;
  --mint: #d9f0e7;
  --line: rgba(19, 35, 38, 0.14);
  --shadow: 0 18px 60px rgba(8, 48, 54, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(251, 248, 239, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--aqua);
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

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

.hero {
  min-height: min(760px, calc(100vh - 70px));
  display: grid;
  align-items: center;
  padding: clamp(54px, 8vw, 100px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(251, 248, 239, 0.96) 0%, rgba(251, 248, 239, 0.78) 38%, rgba(251, 248, 239, 0.12) 72%),
    url("/assets/molecular-biology-hero.png") center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  width: min(650px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.hero-text {
  max-width: 58ch;
  margin: 24px 0 0;
  color: #284347;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
}

.primary-action {
  background: var(--aqua);
  color: white;
  box-shadow: 0 12px 28px rgba(14, 124, 134, 0.24);
}

.secondary-action {
  border: 1px solid rgba(14, 124, 134, 0.35);
  background: rgba(255, 255, 255, 0.58);
  color: var(--aqua-dark);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.intro-band,
.section,
.join-band {
  padding: clamp(48px, 8vw, 92px) clamp(20px, 5vw, 72px);
}

.intro-grid,
.activity-grid,
.schedule-list,
.resources-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid article,
.activity-grid article,
.meeting-card,
.fact-card,
.resource-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 34px rgba(16, 47, 52, 0.08);
}

.intro-grid article {
  padding: 24px;
}

.intro-grid p,
.activity-grid p,
.section-heading p,
.join-band p,
.fact-card p,
.resource-links span,
.meeting-card p {
  color: var(--muted);
  line-height: 1.62;
}

.mini-icon {
  display: inline-grid;
  min-width: 48px;
  min-height: 28px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--aqua-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 28px;
}

.section-heading p {
  max-width: 760px;
  margin: 16px 0 0;
}

.schedule-section {
  background: #f3eadb;
}

.schedule-list {
  display: grid;
  gap: 14px;
}

.meeting-card {
  display: grid;
  grid-template-columns: 142px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
}

.meeting-date {
  display: grid;
  min-height: 110px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  text-align: center;
}

.meeting-date strong {
  display: block;
  font-size: 2.6rem;
  line-height: 1;
}

.meeting-date span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.meeting-card p {
  margin: 8px 0 0;
}

.meeting-tag {
  justify-self: end;
  border-radius: 999px;
  background: rgba(232, 95, 79, 0.12);
  color: #9b372c;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 850;
  white-space: nowrap;
}

.resources-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fact-card {
  min-height: 180px;
  padding: 22px;
}

.fact-card .fact-label {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--aqua-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fact-card p {
  margin: 0;
}

.resource-panel {
  position: sticky;
  top: 84px;
  padding: 24px;
}

.resource-links {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.resource-links li {
  display: grid;
  gap: 5px;
}

.resource-links a {
  color: var(--aqua-dark);
  font-weight: 850;
}

.activities-section {
  background: #e9f3ee;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.activity-grid article {
  padding: 22px;
}

.join-band {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: clamp(48px, 8vw, 92px) auto;
  border-radius: 8px;
  background: var(--aqua-dark);
  color: white;
  box-shadow: var(--shadow);
}

.join-band p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
}

.join-band .eyebrow {
  color: var(--gold);
}

.primary-action.light {
  flex: 0 0 auto;
  background: white;
  color: var(--aqua-dark);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--aqua-dark);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 720px;
    align-items: start;
    background:
      linear-gradient(180deg, rgba(251, 248, 239, 0.98) 0%, rgba(251, 248, 239, 0.86) 42%, rgba(251, 248, 239, 0.1) 100%),
      url("/assets/molecular-biology-hero.png") center bottom / cover no-repeat;
  }

  h1 {
    max-width: 10ch;
  }

  .intro-grid,
  .resources-layout,
  .activity-grid {
    grid-template-columns: 1fr;
  }

  .resource-panel {
    position: static;
  }

  .meeting-card {
    grid-template-columns: 1fr;
  }

  .meeting-date {
    width: min(180px, 100%);
  }

  .meeting-tag {
    justify-self: start;
  }

  .join-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .brand span:last-child {
    max-width: 210px;
  }

  .hero {
    min-height: 680px;
    padding-top: 42px;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

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

  .intro-band,
  .section,
  .join-band {
    padding: 42px 18px;
  }
}
