:root {
  color-scheme: dark;
  --night: #0f1713;
  --wall: #172420;
  --wall-2: #1e2f28;
  --line: #2a3f34;
  --ink: #edf1e7;
  --muted: #a3b3a6;
  --dim: #6f7f74;
  --caption: #ffd34d;
  --clay: #ef8a5c;
  --whale: #8e9bff;
  --display: "Fira Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
}
a { color: var(--clay); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 720px; margin: 0 auto; padding: 28px 16px 56px; }

.top { text-align: center; padding-top: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--wall);
  font: 500 14px/1 var(--body); color: var(--muted);
}
.badge img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
h1.title {
  font: 800 44px/0.95 var(--display); letter-spacing: 0.01em; text-transform: uppercase;
  margin: 18px 0 10px;
}
h1.title .y { color: var(--caption); }
.lead { color: var(--muted); margin: 0 auto; max-width: 560px; font-size: 17px; }

.label {
  font: 600 13px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 34px 0 12px;
}

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 168px; padding: 18px 12px;
  background: var(--wall); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; text-align: center;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  position: relative;
}
.tile:hover { transform: translateY(-2px); border-color: #3a5648; background: var(--wall-2); }
.tile img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--night), 0 0 0 4px var(--line); }
.tile b { font: 600 16px/1.25 var(--body); }
.tile .ico {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  color: var(--caption);
  background: radial-gradient(circle at 35% 30%, #2b3d33, #16211c 70%);
  box-shadow: 0 0 0 3px var(--night), 0 0 0 4px var(--line), 0 0 28px rgba(255, 211, 77, .12);
}
.tile .ico svg { width: 34px; height: 34px; }
.tile small { color: var(--muted); font-size: 13px; line-height: 1.3; }

.wide {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; margin-top: 12px;
  background: var(--wall); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  transition: transform .12s ease, border-color .12s ease;
}
.wide:hover { transform: translateY(-2px); border-color: #3a5648; }
.wide.gold { border-color: #5a4a1a; background: linear-gradient(180deg, #1f2416, #172420); }
.wide .t { flex: 1; min-width: 0; }
.wide b { display: block; font: 600 17px/1.25 var(--body); }
.wide small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.wide .arrow { color: var(--muted); font-size: 22px; line-height: 1; }
.covers { display: flex; gap: -6px; flex-shrink: 0; }
.covers img { width: 34px; height: 60px; object-fit: cover; border-radius: 6px; border: 2px solid var(--night); margin-left: -8px; }
.covers img:first-child { margin-left: 0; }

.foot { margin-top: 40px; color: var(--dim); font-size: 13.5px; text-align: center; line-height: 1.7; }
.foot a { color: var(--muted); }

/* article */
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-size: 15px; }
.back:hover { color: var(--ink); }
.kicker { font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--caption); margin-bottom: 10px; }
h1.art { font: 800 40px/0.98 var(--display); text-transform: uppercase; margin: 0 0 18px; }
h2 { font: 800 26px/1.05 var(--display); text-transform: uppercase; margin: 34px 0 10px; }
p { margin: 0 0 14px; }
.note { color: var(--muted); }
pre {
  position: relative; margin: 14px 0 18px; padding: 16px 16px 16px;
  background: #0b110e; border: 1px solid var(--line); border-radius: 14px;
  font: 400 14px/1.5 var(--mono); color: #d7e0d9; white-space: pre-wrap; word-wrap: break-word;
}
pre .copy {
  position: absolute; top: 8px; right: 8px;
  font: 600 12px/1 var(--body); color: var(--night); background: var(--caption);
  border: 0; border-radius: 8px; padding: 7px 10px; cursor: pointer;
}
pre .copy:active { transform: scale(.97); }
code { font-family: var(--mono); font-size: .92em; background: #0b110e; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); }
pre code { background: none; border: 0; padding: 0; }
ul { padding-left: 20px; }
li { margin: 4px 0; }
.src { color: var(--dim); font-size: 14px; margin-top: 24px; }

/* reels */
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.reel { display: block; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--wall); text-decoration: none; color: var(--ink); }
.reel img { aspect-ratio: 9 / 16; object-fit: cover; width: 100%; }
.reel span { display: block; padding: 8px 9px 10px; font-size: 13px; line-height: 1.25; color: var(--ink); }

@media (max-width: 420px) {
  h1.title { font-size: 38px; }
  .reels { grid-template-columns: 1fr 1fr; }
}
