:root {
  --bg: #05070a;
  --surface: #0c1016;
  --surface-2: #111722;
  --line: rgba(255,255,255,.12);
  --text: #f7f8fb;
  --muted: #9aa4b2;
  --soft: #c7d0dc;
  --orange: #ff7a1a;
  --cyan: #77dff2;
  --green: #a9cf51;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255,122,26,.08), transparent 420px),
    radial-gradient(circle at 78% 5%, rgba(255,122,26,.16), transparent 360px),
    radial-gradient(circle at 8% 30%, rgba(119,223,242,.09), transparent 420px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }
.wrap { width: min(1040px, calc(100% - 32px)); margin: 0 auto; }

.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; z-index: 20; background: #fff; color: #000; padding: 10px; border-radius: 8px; }

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5,7,10,.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: .03em;
}

.mark {
  width: 28px;
  height: 28px;
  border: 2px solid var(--orange);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--orange);
  font-size: 14px;
}

.nav-links { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 14px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }

.btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 750;
}

.btn.primary { background: var(--orange); border-color: var(--orange); color: #15100b; }

header { padding: 74px 0 34px; }
.eyebrow {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 16px;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(46px, 8vw, 86px);
  line-height: .92;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  color: var(--soft);
  font-size: 19px;
  line-height: 1.65;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 30px 0 70px;
}

.post-card {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018));
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.post-card img { width: 100%; aspect-ratio: 1.45; object-fit: cover; background: #111722; }
.post-card .body { padding: 20px; display: grid; gap: 10px; }
.date { color: var(--orange); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.post-card h2 { margin: 0; font-size: 24px; line-height: 1.08; }
.post-card p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 34px;
  align-items: start;
  padding: 24px 0 72px;
}

article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  overflow: hidden;
}

.hero-img { width: 100%; max-height: 460px; object-fit: cover; background: #111722; }
.article-body { padding: clamp(22px, 5vw, 48px); }
.article-body p, .article-body li { color: var(--soft); line-height: 1.78; font-size: 17px; }
.article-body h2 { margin-top: 38px; font-size: 34px; line-height: 1; }
.article-body a { color: var(--orange); font-weight: 750; }
.article-body code { color: #fff; background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 6px; }

.aside {
  position: sticky;
  top: 90px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  padding: 18px;
}
.aside p { color: var(--muted); line-height: 1.55; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--soft); font-size: 12px; }

footer { padding: 34px 0 58px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 860px) {
  .grid, .article-layout { grid-template-columns: 1fr; }
  .nav-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .nav-links { flex-wrap: wrap; }
  .aside { position: static; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 22px, 1040px); }
  header { padding: 44px 0 22px; }
  h1 { font-size: 44px; }
  .lead { font-size: 16px; line-height: 1.55; }
  .article-body { padding: 20px; }
}
