:root {
  color-scheme: dark;
  --background: #101112;
  --surface: #191b1d;
  --text: #f3f4f4;
  --muted: #9da2a4;
  --accent: #e44337;
  --border: #2b2e30;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% -24rem, rgba(255,255,255,.075), transparent 44rem),
    var(--background);
  color: var(--text);
  font-family: "Segoe UI", sans-serif;
}

.site-header {
  background: rgba(16,17,18,.92);
}

.site-header-inner {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  padding: 14px 0 0;
}

.header-tools {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  min-height: 28px;
}

.language-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.language-control select {
  min-width: 62px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.language-control select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.brand {
  display: flex;
  justify-content: center;
}

.brand img {
  display: block;
  width: min(100%, 430px);
  height: auto;
}

.channel-subscribers {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  margin: -7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.channel-subscribers strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 15px 0;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color .18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }

.site-nav a:hover::after,
.site-nav a[aria-current="page"]:not([data-nav="home"])::after {
  position: absolute;
  right: 0;
  bottom: -16px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

.site-footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 20px 0 34px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 760px) {
  .site-header-inner { width: min(100% - 32px, 620px); }
  .site-nav { gap: 24px; }
  .site-footer { width: min(100% - 32px, 620px); }
}

@media (max-width: 480px) {
  .site-header-inner { width: calc(100% - 28px); }
  .brand img { width: min(100%, 360px); }
  .site-nav { gap: 20px; }
  .site-footer { width: calc(100% - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}