:root {
  color-scheme: dark;
  --bg: #121716;
  --panel: #1c2421;
  --panel-2: #242e29;
  --text: #f1eadb;
  --muted: #b9b6aa;
  --teal: #5ed3bd;
  --copper: #df8246;
  --line: #425149;
  font-family: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: 24px 24px;
}
a { color: var(--teal); }
.site-header, main, .site-footer { width: min(980px, calc(100% - 32px)); margin-inline: auto; }
.site-header { padding: 42px 0 24px; border-bottom: 1px solid var(--line); }
.brand { color: var(--copper); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 4rem); margin: 10px 0; }
main { padding: 30px 0 64px; }
.news-grid { display: grid; gap: 16px; }
.news-card, article {
  background: linear-gradient(145deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  padding: clamp(20px, 4vw, 38px);
  box-shadow: 0 16px 40px rgba(0,0,0,.24);
}
.news-card h2 { margin: 5px 0 10px; }
.meta { color: var(--muted); font-size: .92rem; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag { border: 1px solid var(--line); padding: 3px 8px; color: var(--muted); font-size: .8rem; }
article img { display: block; max-width: 100%; height: auto; margin: 24px auto; }
article pre { overflow-x: auto; padding: 16px; background: #0c100f; border: 1px solid var(--line); }
article code { font-family: Consolas, monospace; }
.back { display: inline-block; margin-bottom: 20px; }
.site-footer { padding: 24px 0 38px; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 600px) { .site-header, main, .site-footer { width: min(100% - 20px, 980px); } }
