:root {
  color-scheme: light;
  --paper: #f4f3ee;
  --ink: #132521;
  --muted: #4c625a;
  --line: #d3dcd1;
  --green: #193e33;
  --lime: #dbf19b;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #2c765f;
  outline-offset: 4px;
}
button, input { font: inherit; }
img { display: block; width: 100%; height: auto; }
.shell { width: min(100% - 72px, 1260px); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 76px; display: flex; align-items: center; gap: 42px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 26px; font-weight: 800; letter-spacing: -.075em; }
.brand span { margin-left: -6px; color: #3f6e52; }
.play-mark { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--green); }
.play-mark::before { content: ""; margin-left: 2px; border-width: 4px 0 4px 7px; border-style: solid; border-color: transparent transparent transparent #fff; }
nav { display: flex; gap: 26px; font-size: 14px; font-weight: 600; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.search { margin-left: auto; width: min(260px, 38%); }
.search input { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #faf9f5; padding: 11px 14px; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero { margin-top: 34px; min-height: 450px; display: grid; grid-template-columns: 39% 61%; border-radius: 22px; overflow: hidden; background: var(--green); color: #fffdf3; }
.hero-content { min-width: 0; container-type: inline-size; padding: clamp(26px, 4vw, 62px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.kicker { margin: 0; font-size: 13px; color: var(--lime); letter-spacing: .035em; }
.kicker span { margin-inline: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 16px 0; font: 400 clamp(36px, 21cqi, 83px)/.96 Georgia, serif; letter-spacing: -.07em; }
.intro { margin: 4px 0 26px; max-width: 260px; font-size: 16px; line-height: 1.6; color: #e5eee4; }
.watch { min-height: 45px; display: inline-flex; gap: 9px; align-items: center; padding: 9px 14px; background: var(--lime); color: #173b30; font-weight: 700; font-size: 14px; border-radius: 8px; text-decoration: none; }
.watch:hover { background: #edffc0; }
.watch .play-mark { width: 22px; height: 22px; }
.hero a:focus-visible { outline-offset: -4px; outline-color: var(--lime); }
.hero-image { display: block; position: relative; min-height: 100%; background: #356850; }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.catalog { margin-block: 46px; scroll-margin-top: 22px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font: 400 clamp(30px, 4vw, 44px)/1 Georgia, serif; letter-spacing: -.055em; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button, .close { border: 1px solid var(--line); border-radius: 100px; padding: 8px 13px; background: transparent; color: var(--ink); cursor: pointer; }
.filters button:hover, .close:hover { background: #e3eadc; }
.filters [aria-pressed="true"] { color: #fff; background: var(--green); border-color: var(--green); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 25px); }
.card a { display: block; text-decoration: none; }
.cover { display: block; position: relative; overflow: hidden; border-radius: 12px; background: #d9e3d8; }
.cover img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s ease; }
.card a:hover img { transform: scale(1.035); }
.duration { position: absolute; right: 9px; bottom: 8px; padding: 4px 6px; border-radius: 4px; color: #fff; background: #172421; font-size: 12px; font-variant-numeric: tabular-nums; }
.card h3 { margin: 13px 0 4px; font-size: 18px; letter-spacing: -.025em; }
.card p, .empty { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.footer { border-top: 1px solid var(--line); padding: 19px 0 38px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.footer summary { width: fit-content; cursor: pointer; }
.footer p { margin-bottom: 0; }
dialog { width: min(860px, calc(100% - 32px)); max-height: calc(100% - 24px); padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgb(10 23 20 / 80%); }
.player-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.player-header h2 { margin: 0; font-size: 21px; }
video { display: block; width: 100%; max-height: 68vh; background: #081411; border-radius: 8px; }
.file-link { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 820px) {
  .shell { width: calc(100% - 36px); }
  .topbar-inner { gap: 20px; }
  nav { gap: 14px; }
  .hero { min-height: 350px; grid-template-columns: 46% 54%; }
}
@media (max-width: 570px) {
  .topbar-inner { padding-block: 12px; gap: 12px; flex-wrap: wrap; }
  nav { margin-left: auto; }
  .search { width: 100%; margin: 0; }
  .hero { margin-top: 18px; grid-template-columns: 1fr; border-radius: 16px; }
  .hero-content { padding: 25px; }
  .hero-image { min-height: 0; aspect-ratio: 16 / 9; }
  .catalog { margin-block: 32px; }
  .section-heading { align-items: start; flex-direction: column; }
  .grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover img { transition: none; }
}
