:root {
  color-scheme: light;
  --ink: #102833;
  --muted: #465f68;
  --teal: #086b60;
  --mint: #deeee8;
  --line: #d3e1dd;
  --wash: #f5f8f6;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--wash);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 5.2rem; }
body { margin: 0; line-height: 1.55; }
h1, h2, h3, p { margin: 0; }
a { color: var(--teal); text-underline-offset: .19em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid #0c8272; outline-offset: 4px; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: .75rem; left: .75rem; z-index: 2; padding: .5rem 1rem; background: white; }
.frame { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.mast { position: sticky; top: 0; z-index: 1; background: #fff; border-bottom: 1px solid var(--line); }
.mast-inner, .foot-inner { display: flex; min-height: 4.2rem; align-items: center; justify-content: space-between; gap: 1rem; }
.mast nav, footer nav { display: flex; gap: clamp(.85rem, 2.6vw, 2rem); flex-wrap: wrap; align-items: center; }
.mast nav { margin-inline-start: auto; }
.mast-support { display: inline-flex; align-items: center; gap: .45rem; padding: .56rem .82rem; border: 1px solid #b3d6ca; border-radius: .55rem; background: var(--mint); color: #174c40; font-size: .9rem; font-weight: 720; text-decoration: none; white-space: nowrap; }
.mast-support:hover { background: #cce7dc; }
.mast nav a, footer nav a { color: var(--muted); font-size: .92rem; font-weight: 650; text-decoration: none; }
.mast nav a:hover, footer nav a:hover { color: var(--teal); text-decoration: underline; }
.mast nav a[aria-current] { color: var(--teal); }
.brand { display: inline-flex; align-items: center; gap: .58rem; color: var(--ink); text-decoration: none; font-size: .92rem; letter-spacing: .1em; font-weight: 800; }
.brand img { border-radius: 50%; }
.hero { background: radial-gradient(ellipse at 85% -8%, #215c57 0, transparent 60%), #102f33; color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); align-items: center; padding-block: clamp(2.6rem, 7vw, 5.5rem); gap: clamp(1.7rem, 6vw, 5.7rem); }
.hero h1 { font-size: clamp(2.9rem, 6.6vw, 5.65rem); line-height: .98; letter-spacing: -.067em; font-weight: 750; }
.hero-copy > p { color: #daebe6; max-width: 35ch; margin-top: 1.4rem; font-size: clamp(1rem, 1.7vw, 1.19rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-top: 1.75rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .75rem; border-radius: .55rem; padding: .67rem 1rem; text-decoration: none; font-weight: 700; font-size: .9rem; }
.primary { background: #d0f3df; color: #17382d; }
.primary:hover { background: #e8fff2; }
.quiet { background: white; color: var(--teal); border: 1px solid var(--line); }
.hero .quiet { background: transparent; color: #ecfff3; border-color: #678782; }
.hero .quiet:hover { background: #214c47; }
.hero a:focus-visible { outline-color: #a6e7cd; }
.resume { display: inline-block; margin-top: 1.05rem; color: #d0f3df; font-size: .94rem; }
.hero-picture { display: block; background: #153c3b; border: 1px solid #73948b; border-radius: 1rem; color: white; text-decoration: none; overflow: hidden; box-shadow: 0 22px 50px #071f2894; }
.hero-picture img { width: 100%; display: block; height: auto; aspect-ratio: 16/9; background: #254844; }
.hero-caption { display: flex; align-items: center; gap: .9rem; padding: .85rem 1.2rem; }
.hero-caption strong, .hero-caption small { display: block; }
.hero-caption small { color: #c5dfd7; margin-top: .08rem; }
.play-icon { flex: 0 0 2.4rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #d0f3df; color: #153e34; display: grid; place-items: center; font-size: .95rem; padding-left: .11rem; }
.hero-picture:hover .play-icon { background: white; }
.catalog { padding-block: clamp(2.7rem, 5.5vw, 5rem) 4.5rem; }
.catalog-head, .series-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.catalog-head h2, .series-heading h2 { font-size: clamp(1.65rem, 3.5vw, 2.8rem); line-height: 1.15; letter-spacing: -.043em; }
.catalog-head p, .series-heading p { margin-top: .38rem; color: var(--muted); }
.search { width: min(100%, 22rem); display: flex; position: relative; }
.search input { width: 100%; border-radius: .65rem; padding: .67rem 2.45rem .67rem .9rem; background: #fff; border: 1px solid #a7bfba; color: var(--ink); font: inherit; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { position: absolute; inset: .24rem .3rem .24rem auto; width: 2rem; border: 0; border-radius: .45rem; background: var(--mint); color: var(--ink); cursor: pointer; font-size: 1.4rem; line-height: 1; }
.series-links { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: 1.2rem; padding-bottom: .45rem; }
.series-links a { color: #184c42; background: var(--mint); border: 1px solid #c5ddd4; border-radius: 99px; padding: .43rem .83rem; font-size: .9rem; font-weight: 680; text-decoration: none; }
.series-links a:hover { background: #d2e9e0; }
.search-status:not(:empty) { color: var(--muted); margin-top: .8rem; }
.series-block { padding-top: 2.25rem; }
.series-block + .series-block { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.series-heading h2 { font-size: clamp(1.5rem, 2.7vw, 2.25rem); }
.series-heading a { font-size: .9rem; font-weight: 700; }
.lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(.9rem, 2vw, 1.5rem); padding: 0; margin: 1.05rem 0 0; list-style: none; }
.card { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: .85rem; color: var(--ink); text-decoration: none; transition: border-color .16s, box-shadow .16s; }
.card:hover { border-color: #82b1a4; box-shadow: 0 9px 26px #12382a12; }
.card:hover h3 { color: var(--teal); }
.card-picture { position: relative; background: #dce8e5; border-bottom: 1px solid var(--line); }
.card-picture img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.duration { position: absolute; right: .6rem; bottom: .55rem; color: #fff; background: #132e38; border-radius: .31rem; padding: .09rem .39rem; font-size: .8rem; font-variant-numeric: tabular-nums; }
.card-copy { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .55rem; padding: .95rem .86rem 1.1rem; }
.lesson-number { color: #28665a; font-size: .82rem; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.77; }
.card h3 { line-height: 1.36; font-size: 1.02rem; }
.card p { margin-top: .26rem; font-size: .88rem; color: var(--muted); }
.empty { margin: 1.35rem 0; padding: 1.5rem; background: white; border: 1px solid var(--line); border-radius: .65rem; }
.watch { max-width: 64rem; padding-block: 1.65rem 4rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .6rem; color: var(--muted); font-size: .92rem; }
.watch-title { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin: .95rem 0 1.15rem; }
.watch-title h1 { font-size: clamp(1.85rem, 4.9vw, 3.5rem); line-height: 1.1; letter-spacing: -.045em; }
.watch-title > span { color: var(--muted); font-variant-numeric: tabular-nums; }
.player { border-radius: .86rem; overflow: hidden; background: #102f33; }
.player video { width: 100%; height: auto; aspect-ratio: 16/9; display: block; }
.playback-status { margin-top: .6rem; color: #8b3426; }
.watch-details { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.1rem; margin-top: 1rem; }
.watch-details p { color: var(--muted); max-width: 68ch; }
.watch-details .button { flex: 0 0 auto; }
.watch-nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; margin-top: 1.75rem; }
.watch-nav a { min-width: 0; padding: .8rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: .6rem; color: var(--ink); text-decoration: none; }
.watch-nav a:last-child { grid-column: 2; text-align: right; }
.watch-nav a:only-child { grid-column: 1 / -1; }
.watch-nav a:hover { border-color: #82b1a4; }
.watch-nav small, .watch-nav strong { display: block; }
.watch-nav small { color: var(--teal); }
.catalog-support { margin: 0 auto 3.3rem; }
.lesson-support { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding: clamp(1rem, 3vw, 1.8rem); border: 1px solid #b6d9cd; background: #e7f3ed; border-radius: .9rem; }
.watch .lesson-support { margin-top: 1.7rem; }
.lesson-support h2 { font-size: clamp(1.18rem, 2.3vw, 1.48rem); line-height: 1.25; letter-spacing: -.02em; }
.lesson-support p { margin-top: .32rem; color: var(--muted); max-width: 52ch; }
.support-actions { display: flex; align-items: stretch; gap: .6rem; flex-wrap: wrap; }
.support-primary { background: #086b60; color: white; border: 1px solid transparent; }
.support-primary:hover { background: #07564e; }
footer { border-top: 1px solid var(--line); background: #fff; }
@media (max-width: 57rem) {
  .hero-inner { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .lesson-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 41rem) {
  html { scroll-padding-top: 7.1rem; }
  .frame { width: calc(100% - 2rem); }
  .hero-inner, .lesson-grid { grid-template-columns: minmax(0,1fr); }
  .mast-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-block: .55rem; gap: .5rem; }
  .mast-support { grid-column: 2; grid-row: 1; }
  .mast nav { grid-column: 1 / -1; grid-row: 2; margin-inline-start: 0; gap: .85rem; }
  .foot-inner { padding-block: .7rem; flex-wrap: wrap; }
  .hero h1 br { display: none; }
  .hero h1 { font-size: clamp(2.75rem, 11vw, 4.2rem); }
  .watch-details { flex-direction: column; }
  .watch-nav { grid-template-columns: minmax(0,1fr); }
  .watch-nav a:last-child { grid-column: 1; }
  .support-actions { width: 100%; }
  .support-actions a { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
