:root {
  --bg: #fffaf1;
  --paper: rgba(255, 255, 255, 0.82);
  --paper-strong: #fffef9;
  --ink: #1f2240;
  --muted: #566079;
  --yellow: #ffcf4a;
  --orange: #ff8a4c;
  --mint: #8be7c3;
  --sky: #83d8ff;
  --line: rgba(31, 34, 64, 0.12);
  --shadow: 0 18px 50px rgba(31, 34, 64, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 207, 74, 0.65), transparent 28%),
    radial-gradient(circle at top right, rgba(131, 216, 255, 0.7), transparent 24%),
    linear-gradient(180deg, #fff3cb 0%, #fffaf1 38%, #f5fffd 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

body::before {
  left: -4rem;
  bottom: 10%;
  background: rgba(139, 231, 195, 0.6);
}

body::after {
  right: -5rem;
  top: 16%;
  background: rgba(255, 138, 76, 0.32);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.top-nav,
.site-footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.brandmark,
.nav-links a,
.footer-links a,
.note-card a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.brandmark {
  font-size: 1.05rem;
}

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

.site-footer {
  margin-top: 2rem;
}

.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.hero,
.feature-strip,
.video-library,
.parent-zone,
.content-page {
  animation: rise 600ms ease both;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 1.25rem;
  align-items: stretch;
  padding: 1rem 0 1.5rem;
}

.hero-copy,
.hero-card,
.feature-strip article,
.note-card,
.video-card {
  background: var(--paper);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-card {
  border-radius: 2rem;
  padding: 1.75rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #d1621f;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.85rem;
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  line-height: 0.95;
}

.hero-text,
.hero-card p,
.note-card p,
.video-meta p,
.feature-strip p {
  color: var(--muted);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.button,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

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

.button-primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--yellow), #ffe696);
  box-shadow: 0 10px 24px rgba(255, 207, 74, 0.35);
}

.button-secondary {
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.hero-badge,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(139, 231, 195, 0.45);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink);
}

.hero-list li + li {
  margin-top: 0.55rem;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0.5rem 0 2rem;
}

.feature-strip article,
.note-card {
  border-radius: 1.5rem;
  padding: 1.25rem;
}

.section-head {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter-chip {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}

.filter-chip.is-active {
  background: linear-gradient(135deg, var(--orange), #ffc177);
  box-shadow: 0 10px 24px rgba(255, 138, 76, 0.28);
}

.video-grid,
.parent-grid {
  display: grid;
  gap: 1rem;
}

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

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

.video-card {
  overflow: hidden;
  border-radius: 1.6rem;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #d8edf8;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-meta {
  padding: 1rem 1rem 1.1rem;
}

.video-meta h3 {
  margin: 0.7rem 0 0.55rem;
  font-size: 1.2rem;
}

.parent-zone {
  margin-top: 2.25rem;
}

.content-page {
  display: grid;
  gap: 1rem;
}

.content-hero,
.content-stack .note-card {
  border-radius: 2rem;
}

.content-hero {
  padding: 1.75rem;
  background: var(--paper);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.content-grid,
.content-stack {
  display: grid;
  gap: 1rem;
}

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

.empty-state {
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed var(--line);
  text-align: center;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero,
  .feature-strip,
  .video-grid,
  .parent-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .top-nav,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 1rem, 100%);
  }

  .hero-copy,
  .hero-card,
  .feature-strip article,
  .note-card,
  .video-meta {
    padding: 1rem;
  }

  h1 {
    font-size: 2.7rem;
  }
}
