:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --ink: #0f172a;
  --muted: #475569;
  --line: #dbe3ec;
  --brand: #0f4c81;
  --brand-dark: #0b3a63;
  --accent: #eef4f8;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --container: 1120px;
  --heading: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --body: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-dark);
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--brand);
}

:focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  padding: 1rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: transparent url("./brand-icon.svg") center / cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand strong,
.brand-subtitle,
h1,
h2,
h3,
.button,
.eyebrow,
.footer-title,
.nav-links {
  font-family: var(--heading);
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--ink);
  background: transparent;
}

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

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  padding: 1.5rem 0 0.5rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-text,
.section-heading p,
.card p,
.footer-layout p,
li {
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.75rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: var(--brand);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--brand-dark);
  color: #fff;
}

.button-secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.hero-highlights,
.checklist,
.project-links,
.footer-links {
  margin: 0;
  padding-left: 1.2rem;
}

.number-list {
  margin: 0;
  padding-left: 1.4rem;
}

.hero-media img,
.project-media img {
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-media {
  position: relative;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
}

.section {
  padding: 4.5rem 0;
}

.section-light {
  background: #fff;
}

.section-accent {
  background: var(--surface-subtle);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark {
  color: var(--ink);
  background: #fff;
  border-top: 1px solid var(--line);
}

.section-dark a,
.section-dark .eyebrow {
  color: var(--brand);
}

.section-heading {
  max-width: 52rem;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-dark .card {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.stat-card {
  text-align: center;
}

.stat-number {
  margin: 0;
  font-family: var(--heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
}

.section-dark .stat-number {
  color: var(--brand);
}

.stat-label {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.module-card a,
.card a {
  display: inline-block;
  margin-right: 1rem;
  margin-top: 0.5rem;
  font-weight: 700;
}

.footer-links a {
  margin-top: 0;
  margin-right: 0;
}

.module-link-card {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.module-link-card:hover,
.module-link-card:focus-visible {
  transform: translateY(-3px);
  border-color: #b8c9da;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
  color: inherit;
}

.module-index {
  margin: 0 0 0.45rem;
  color: var(--brand);
  font-family: var(--heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.callout {
  margin-top: 1.25rem;
  background: var(--accent);
}

.support-grid {
  margin-top: 1.25rem;
}

.thanks-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.25rem;
}

.thanks-logo {
  width: 180px;
  max-width: 100%;
  height: auto;
}

.project-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

.project-card {
  background: var(--surface);
}

.page-main {
  background: #fff;
}

.page-hero {
  padding: 2.5rem 0 2rem;
}

.page-title {
  margin-bottom: 0.75rem;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.page-intro {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.breadcrumb {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--brand-dark);
}

.module-overview-grid {
  align-items: stretch;
}

.section-link {
  margin: 1.5rem 0 0;
  font-weight: 700;
}

.guide-grid {
  margin-top: 1.5rem;
}

.instructor-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}

.instructor-hero .page-title,
.instructor-hero .page-intro {
  max-width: 34rem;
}

.instructor-hero .page-intro {
  white-space: nowrap;
}

.guide-section {
  margin-top: 2.25rem;
}

pre {
  overflow-x: auto;
  margin: 0.75rem 0 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-subtle);
  font-size: 0.92rem;
}

code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}

.speaker-layout {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.speaker-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.speaker-headshot {
  margin: 0;
}

.speaker-headshot img {
  width: 160px;
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.speaker-headshot-small img {
  width: 120px;
}

.speaker-label {
  margin: 0 0 0.4rem;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.speaker-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.gallery-card {
  padding: 0;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  background: var(--surface-subtle);
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.footer-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 800;
}

.card,
.hero-copy,
.hero-media,
.project-layout > *,
.speaker-layout > * {
  animation: rise 500ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero,
  .grid-three,
  .grid-two,
  .project-layout,
  .footer-layout,
  .speaker-hero,
  .speaker-gallery,
  .instructor-hero,
  .thanks-card {
    grid-template-columns: 1fr;
  }

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

  .instructor-hero .page-intro {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-bottom: 2rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero-copy {
    padding-top: 1rem;
  }

  h1 {
    max-width: none;
  }
}
