:root {
  --bg: #e6f1ff;
  --bg-accent: #f3f8ff;
  --surface: rgba(248, 251, 255, 0.86);
  --surface-strong: #ffffff;
  --surface-border: rgba(33, 76, 133, 0.14);
  --text: #17324d;
  --muted: #4f6781;
  --brand: #1f6fd1;
  --brand-dark: #164d96;
  --accent: #5aa9ff;
  --shadow: 0 24px 48px rgba(23, 50, 77, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 111, 209, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(90, 169, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #dcecff 0%, var(--bg) 45%, #f5f9ff 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 36px;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: rgba(245, 250, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(31, 42, 48, 0.08);
}

.brand {
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brand-dark);
  background: rgba(31, 111, 209, 0.12);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}

.inline-link {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.inline-link:hover,
.inline-link:focus-visible {
  color: var(--brand);
}

.hero,
.subpage-hero,
.placeholder-section,
.video-group {
  border: 1px solid var(--surface-border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 28px;
  padding: 36px;
  border-radius: var(--radius-xl);
}

.hero-copy h1,
.subpage-hero h1,
.section-heading h2,
.video-group h2 {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", serif;
  line-height: 1.05;
}

.hero-copy h1,
.subpage-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  max-width: 10ch;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-text,
.placeholder-card p,
.video-group-intro,
.video-title,
.loading-state {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 56ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.hero-text.narrow {
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: 0 16px 28px rgba(31, 111, 209, 0.22);
}

.button-secondary {
  border: 1px solid rgba(31, 111, 209, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.hero-panel {
  align-self: stretch;
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52)),
    linear-gradient(135deg, rgba(31, 111, 209, 0.14), rgba(90, 169, 255, 0.16));
}

.hero-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.hero-logo {
  display: block;
  width: min(100%, 260px);
  height: auto;
  object-fit: contain;
}

.panel-label {
  margin: 0 0 18px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.panel-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  line-height: 1.55;
}

.placeholder-section,
.subpage-hero,
.video-group {
  margin-top: 32px;
  padding: 32px;
  border-radius: var(--radius-xl);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.section-heading h2,
.video-group h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.content-card {
  padding: 24px;
  border: 1px solid rgba(31, 42, 48, 0.08);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.content-card-wide {
  grid-column: span 2;
}

.content-card h3,
.video-title {
  margin: 0;
}

.content-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.content-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.content-card p + p {
  margin-top: 14px;
}

.signature {
  text-align: right;
  font-weight: 700;
}

.content-list {
  margin: 18px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.video-sections {
  display: grid;
  gap: 24px;
}

.video-group-header {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.video-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(31, 42, 48, 0.08);
  border-radius: var(--radius-lg);
  text-decoration: none;
  background: #fffdf8;
  box-shadow: 0 14px 26px rgba(31, 42, 48, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover,
.video-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(31, 42, 48, 0.14);
}

.video-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(31, 111, 209, 0.22), rgba(90, 169, 255, 0.24));
}

.video-card-body {
  display: grid;
  gap: 10px;
  padding: 16px 16px 18px;
}

.video-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.video-meta {
  font-size: 0.9rem;
  color: var(--brand-dark);
}

.loading-state {
  margin: 0;
}

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

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

  .content-card-wide {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    border-radius: 28px;
  }

  .site-nav {
    justify-content: center;
  }

  .hero,
  .subpage-hero,
  .placeholder-section,
  .video-group {
    padding: 24px;
  }

  .hero-copy h1,
  .subpage-hero h1 {
    max-width: none;
  }

  .button {
    width: 100%;
  }
}
