:root {
  --bg: #0d1117;
  --panel: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --green: #3fb950;
  --yellow: #d29922;
  --purple: #a371f7;
  --red: #f85149;
  --mono: "JetBrains Mono", "Consolas", "Courier New", monospace;
}

/* 🎂 2 августа — День рождения OKOKA */
html[data-theme="birthday"] {
  --bg: #0f0a14;
  --panel: #1b1222;
  --border: #622557;
  --accent: #ff3b8d;
  --yellow: #ffd700;
  --purple: #be2ed6;
  --green: #00f5d4;
  --red: #ff4757;
}

/* 🍁 Осень (сентябрь — ноябрь) */
html[data-theme="autumn"] {
  --bg: #120e0c;
  --panel: #1c1613;
  --border: #442d20;
  --accent: #f39c12;
  --yellow: #e67e22;
  --purple: #e056fd;
  --green: #27ae60;
  --red: #e74c3c;
}

/* ❄️ Зима (декабрь — февраль) */
html[data-theme="winter"] {
  --bg: #0a1019;
  --panel: #121b28;
  --border: #26374a;
  --accent: #70a1ff;
  --yellow: #eccc68;
  --purple: #a55eea;
  --green: #2ed573;
  --red: #ff4757;
}

/* 🌸 Весна (март — май) */
html[data-theme="spring"] {
  --bg: #0a1610;
  --panel: #122419;
  --border: #204a32;
  --accent: #2ed573;
  --yellow: #f7b731;
  --purple: #ff78ae;
  --green: #20bf6b;
  --red: #ff4d4d;
}

/* ☀️ Лето (июнь — август) */
html[data-theme="summer"] {
  --bg: #12100d;
  --panel: #1c1914;
  --border: #3a3528;
  --accent: #ff7f50;
  --yellow: #f1c40f;
  --purple: #9b59b6;
  --green: #00d2d3;
  --red: #ff4757;
}

/* 🎄 Новый Год (25 декабря — 7 января) */
html[data-theme="festive"] {
  --bg: #120a0c;
  --panel: #1e1315;
  --border: #4a1c1d;
  --accent: #ff4757;
  --yellow: #ffa502;
  --purple: #70a1ff;
  --green: #2ed573;
  --red: #ff4757;
}

.theme-badge {
  font-weight: 500;
  letter-spacing: 0.02em;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.banner {
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 0.35rem 0.6rem;
  margin-bottom: 1.25rem;
  display: inline-block;
}

.banner kbd {
  color: var(--yellow);
  font-family: inherit;
}

h1 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 1.5rem;
}

.window {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.links + .window {
  margin-top: 2.75rem;
}

.win-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #21262d;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-r {
  background: var(--red);
}

.dot-y {
  background: var(--yellow);
}

.dot-g {
  background: var(--green);
}

.win-title {
  flex: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.win-body {
  padding: 1rem 1rem 1.1rem;
  font-size: 0.82rem;
  overflow-x: auto;
}

.cmd {
  color: var(--text);
  font-weight: 600;
}

.out {
  margin: 0.35rem 0 0.85rem;
  padding-left: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment {
  color: var(--muted);
}

.hl-g {
  color: var(--green);
}

.hl-y {
  color: var(--yellow);
}

.out--last {
  margin-bottom: 0;
}

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 1.75rem 0 0.5rem;
}

.section-label:first-of-type {
  margin-top: 0;
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  font-size: 0.82rem;
}

.links li {
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.55rem 0.75rem;
}

.links li:last-child {
  border-bottom: 0;
}

.path {
  color: var(--purple);
  min-width: 8rem;
}

.desc {
  color: var(--muted);
  font-size: 0.78rem;
}

.footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.site-nav {
  margin-bottom: 1.75rem;
}

.site-nav .section-label {
  margin-top: 0;
}

.links li.is-current .nav-current {
  color: var(--yellow);
  font-weight: 600;
}

.btn-copy {
  font-family: inherit;
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  margin-left: 0.15rem;
  vertical-align: baseline;
  cursor: pointer;
  color: var(--text);
  background: #21262d;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.btn-copy:hover {
  background: var(--border);
  border-color: var(--muted);
}

.btn-copy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  html {
    font-size: 14px;
  }

  .path {
    min-width: 100%;
  }
}
