:root {
  --paper: #f3efe4;
  --ink: #1c1915;
  --muted: #5c564c;
  --line: #d9d0c0;
  --green: #1f4e46;
  --rust: #8a5a2b;
  --card: #fffaf2;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  line-height: 1.55;
}

a { color: var(--green); }

a:hover { color: var(--rust); }

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

header.site {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
  padding-bottom: 0.8rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.35rem;
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.85rem;
}

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.6rem; }

h2 { font-size: 1.25rem; margin: 1.6rem 0 0.4rem; }

.lede { font-size: 1.15rem; color: var(--muted); margin-top: 0; }

.catalog { list-style: none; padding: 0; margin: 1.5rem 0 0; }

.catalog li {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

.catalog a.lesson {
  display: block;
  text-decoration: none;
  color: inherit;
}

.catalog .meta {
  font-family: "Segoe UI", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rust);
}

.catalog a.is-done .meta::after {
  content: " · просмотрено";
  color: var(--green);
}

.player {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0.6rem;
  margin: 1rem 0 1.2rem;
}

video { width: 100%; height: auto; background: #111; display: block; }

.note {
  font-family: "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  html { font-size: 17px; }
  header.site { flex-direction: column; align-items: flex-start; }
  nav a { margin-left: 0; margin-right: 1rem; }
}
