:root {
  --bg: #f3f4f7;
  --gap: 24px;
}

[hidden] { display: none !important; }
:where([id]) { scroll-margin-top: 20px; }
.page { max-width: 1120px; padding-bottom: 28px; }
h2 { font-size: clamp(20px, 2.6vw, 26px); }
.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  transform: translateY(-140%);
  z-index: 2;
  padding: 9px 14px;
  background: var(--surface);
  border-radius: 8px;
}
.skip:focus { transform: none; }

.site-head { min-height: 58px; padding: 6px 1px; }
.site-head nav { gap: 8px 24px; }
.site-head nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
}
.site-head nav a:hover { text-decoration: underline; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--surface);
  padding: 8px 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: #a5ccff; }

.hero {
  position: relative;
  min-height: 300px;
  padding: clamp(24px, 5.1vw, 64px);
  justify-content: center;
  background: #e2eeff;
}
.hero-main { display: grid; gap: 15px; z-index: 1; max-width: 660px; }
.hero h1 {
  font-size: clamp(32px, 7vw, 76px);
  line-height: 0.99;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.hero .eyebrow { color: #34516d; }
.hero .lead { max-width: 48ch; }
.hero-actions { margin-top: 6px; gap: 10px 16px; }
.hero-count { font-size: 14px; font-weight: 650; color: #34516d; }
.hero-subtitle {
  max-width: 48ch;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 550;
  color: #344c62;
}
.hero-art { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-art span {
  position: absolute;
  width: clamp(100px, 18vw, 212px);
  aspect-ratio: 1;
  border-radius: 31%;
  right: 4%;
  top: 16%;
  transform: rotate(-16deg) skew(-7deg, -7deg);
  background: linear-gradient(150deg, #69b6ff, #3b86e3);
  box-shadow: inset 0 1px 1px #ffffffaa, 0 20px 45px #487dbc33;
}
.hero-art span:nth-child(2) {
  width: clamp(78px, 13vw, 142px);
  right: 15%;
  top: 52%;
  background: linear-gradient(145deg, #b0a5fa, #7c78db);
}
.hero-art span:nth-child(3) {
  width: clamp(40px, 6vw, 74px);
  right: 5%;
  top: 72%;
  background: linear-gradient(145deg, #e5f6b9, #a7d858);
}

.featured { gap: 14px; }
.video {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  overflow-wrap: anywhere;
}
.featured .video {
  min-height: 195px;
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
  gap: 0;
}
.video-body, .video-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.featured .video-body {
  padding: clamp(16px, 2.3vw, 24px);
  flex: 1;
}
.video h3, .video h4 { font-size: 18px; text-wrap: pretty; }
.video-meta { color: var(--ink-3); font-size: 13px; }
.video-summary { color: var(--ink-2); font-size: 15px; }
.video-cover {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  background: var(--accent-soft);
  display: block;
  border-radius: 12px;
}
.featured .video-cover { border-radius: 0; }
.featured .video-cover:focus-visible { outline-offset: -4px; }
.video-cover img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.play {
  position: absolute;
  z-index: 1;
  right: 9px;
  bottom: 9px;
  width: 38px;
  height: 26px;
  border-radius: 8px;
  background: #222b;
  display: grid;
  place-items: center;
}
.play::after {
  content: "";
  border-block: 5px solid transparent;
  border-left: 8px solid #fff;
  margin-left: 1px;
}
.video-cover:hover .play,
.video-cover:focus-visible .play { background: #202020; }
.theme {
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 650;
}
.watch {
  min-height: 38px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 4px 0;
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  margin-top: auto;
}
.watch:hover { text-decoration: underline; }
.topic-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.topic-tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 650;
}
.topic-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  display: block;
  background: var(--accent-soft);
}
.topic-tile > span {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
}
.topic-tile:hover > span { text-decoration: underline; }
.archive ul,
.catalog-nav ul { list-style: none; padding: 0; }
.archive li { max-width: none; }
.archive li + li { border-top: 1px solid var(--line); }
.archive-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}
.archive-link:hover time { text-decoration: underline; }
.archive-link small { display: block; color: var(--ink-2); font-weight: 400; }
.archive-link > span:last-child { font-size: 14px; color: var(--accent-ink); }
.catalog { display: grid; grid-template-columns: minmax(205px, .75fr) minmax(0, 2.4fr); gap: 20px; }
.catalog-nav { align-self: start; position: sticky; top: 20px; }
.catalog-nav nav, .search {
  padding: 17px;
  background: var(--surface);
  border-radius: 16px;
}
.catalog-nav h2 { font-size: 16px; margin-bottom: 8px; }
.catalog-nav a {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 0;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}
.catalog-nav a:hover { text-decoration: underline; }
.catalog-nav li span { color: var(--ink-3); }
.search { display: grid; gap: 8px; }
.search label { font-size: 14px; font-weight: 650; }
.search input {
  width: 100%;
  font: inherit;
  min-height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 5px 8px;
}
.group { gap: 4px; }
.group-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  gap: 12px;
  padding: 0 0 0 16px;
  border-radius: 13px;
  background: var(--accent-soft);
  overflow: hidden;
}
.group-heading h3 { font-size: 20px; color: var(--accent-ink); overflow-wrap: anywhere; }
.group-heading img {
  align-self: stretch;
  flex: none;
  display: block;
  width: min(34%, 210px);
  min-height: 94px;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.video-list .video { padding: 16px 0; }
.video-list .video:last-child { padding-bottom: 0; }
.video-list .video.has-cover {
  display: grid;
  grid-template-columns: clamp(130px, 19vw, 188px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.video-list .video + .video { border-top: 1px solid var(--line); }
.foot { gap: 10px 22px; }

@media (max-width: 900px) {
  .hero-main { max-width: 72%; }
  .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .page { gap: 12px; }
  .site-head { gap: 10px; }
  .site-head nav { gap: 8px 14px; }
  .hero-main { max-width: 100%; }
  .hero-art span { opacity: .18; right: -6%; }
  .hero-art span:nth-child(2) { right: -2%; }
  .hero-art span:nth-child(3) { right: 18%; }
  .featured, .catalog { grid-template-columns: minmax(0, 1fr); }
  .featured .video { min-height: unset; }
  .catalog-nav { position: static; }
  .topic-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .group-heading { min-height: 80px; padding-left: 12px; }
  .group-heading h3 { font-size: 17px; }
  .group-heading img { min-height: 80px; }
  .video-list .video.has-cover {
    grid-template-columns: clamp(94px, 29vw, 136px) minmax(0, 1fr);
    gap: 8px 10px;
  }
  .video-list .has-cover .video-body { display: contents; }
  .video-list .has-cover .video-head { align-self: center; gap: 4px; }
  .video-list .has-cover .video-summary { grid-column: 1 / -1; }
  .video-list .video h4 { font-size: 16px; }
  .video-list .video-meta { font-size: 12px; }
  .video-list .play { right: 5px; bottom: 5px; width: 30px; height: 22px; }
}
@media (max-width: 375px) {
  .site-head nav { font-size: 13px; gap: 8px; }
  .site-head nav a { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
