:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #183d2e;
  background: #f5f7f1;
  font-synthesis: none;
  --ink: #183d2e;
  --muted: #5d7266;
  --line: #d9e3d5;
  --green: #d3ef88;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible, pre:focus-visible { outline: 3px solid #327050; outline-offset: 5px; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
.site-header, main, footer { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 25px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; font-size: 27px; font-weight: 750; letter-spacing: -1.2px; text-decoration: none; }
.lessons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 25px; }
.lesson { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #d9e3d5; border-radius: 16px; scroll-margin-top: 24px; }
.cover { aspect-ratio: 8 / 5; overflow: hidden; border-bottom: 1px solid #183d2e10; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lesson-info { padding: 20px 22px 17px; }
.lesson-label { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 1.4px; }
.lesson-label > :last-child { font-size: 11px; letter-spacing: 0; }
h2 { min-height: 56px; margin: 7px 0 20px; font-size: 22px; font-weight: 650; line-height: 1.25; letter-spacing: -.55px; overflow-wrap: anywhere; }
.actions { display: grid; grid-template-columns: 1.1fr 1fr; gap: 9px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px; padding: 10px 13px; border: 1px solid var(--ink); border-radius: 7px; font-size: 13px; line-height: 1.25; font-weight: 600; text-decoration: none; }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: #276346; border-color: #276346; }
.button-primary svg:first-child { width: 16px; height: 16px; }
.button-primary svg:last-child:not(:first-child) { width: 16px; margin-left: auto; }
footer { display: flex; align-items: center; gap: 18px; margin-top: 48px; padding-block: 26px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer a { margin-left: auto; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
body { min-height: 100vh; }
.lesson { display: flex; flex-direction: column; transition: border-color .18s ease, box-shadow .18s ease; }
.lesson:hover { border-color: #8aab80; box-shadow: 0 8px 26px #183d2e0b; }
.lesson-info { display: flex; flex-direction: column; flex: 1; padding: 21px 22px; }
h2 { min-height: 0; margin: 9px 0 12px; font-size: 24px; }
.description { margin: 0 0 22px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.actions { grid-template-columns: 1fr; margin-top: auto; }
.button { justify-content: flex-start; background: #22543b; border-color: #22543b; min-height: 47px; }
.domain { margin: 16px 0 0; padding-top: 13px; border-top: 1px solid #e7ede3; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.skip-link { position: absolute; top: 12px; left: 16px; padding: 12px 18px; background: #22543b; color: #fff; z-index: 1; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 1050px) {
  .site-header, main, footer { width: calc(100% - 48px); }
  .lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 620px) {
  .site-header, main, footer { width: calc(100% - 32px); }
  .site-header { padding-block: 18px; gap: 12px; }
  .brand { font-size: 23px; }
  .lessons { grid-template-columns: 1fr; gap: 24px; }
  .lesson-info { padding: 20px; }
  footer { align-items: flex-start; flex-wrap: wrap; margin-top: 32px; gap: 12px; }
  footer a { width: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .lesson { transition: none; } }
h1 { margin: 0; line-height: 1.25; }
main { padding-top: 30px; }
