:root {
  --bg: #07081a;
  --bg-2: #0d0f2a;
  --panel: #11143a;
  --line: #232867;
  --text: #e9ecff;
  --muted: #a3abd4;
  --cyan: #22f0ff;
  --pink: #ff2bd6;
  --violet: #9b6bff;
  --danger: #ff7a9a;
  --radius: 14px;
  --radius-control: 999px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Orbitron", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 80% -10%, rgba(155, 107, 255, .22), transparent 55%),
              radial-gradient(ellipse at 0% 110%, rgba(34, 240, 255, .14), transparent 50%),
              rgba(7, 8, 26, .82);
  pointer-events: none;
  z-index: -1;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; padding: 0 clamp(18px, 5vw, 72px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.site-head {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(7, 8, 26, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--display); font-weight: 800; letter-spacing: .14em;
  font-size: 22px; color: var(--text);
  text-shadow: 0 0 12px rgba(34, 240, 255, .7);
}
.logo span { color: var(--cyan); }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; text-shadow: 0 0 10px rgba(255, 43, 214, .8); }

/* hero */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hero .rings {
  position: absolute; right: clamp(-160px, -6vw, -40px); top: 50%; transform: translateY(-50%);
  width: clamp(280px, 38vw, 520px); aspect-ratio: 1; pointer-events: none;
}
.hero .rings i {
  position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--cyan);
  box-shadow: 0 0 24px var(--cyan), inset 0 0 24px rgba(34, 240, 255, .4);
  animation: pulse 6s ease-in-out infinite;
}
.hero .rings i:nth-child(2) { inset: 16%; border-color: var(--pink); box-shadow: 0 0 24px var(--pink), inset 0 0 20px rgba(255, 43, 214, .4); animation-delay: -2s; }
.hero .rings i:nth-child(3) { inset: 34%; border-color: var(--violet); box-shadow: 0 0 24px var(--violet); animation-delay: -4s; }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero .rings i { animation: none; } }
.kicker {
  display: inline-block; margin: 0 0 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan);
}
h1, h2, h3 { line-height: 1.15; margin: 0; }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(36px, 6vw, 76px); letter-spacing: .02em; max-width: 14ch;
  text-shadow: 0 0 22px rgba(155, 107, 255, .55);
}
.hero h1 em { font-style: normal; color: var(--pink); text-shadow: 0 0 18px rgba(255, 43, 214, .8); }
.hero p.sub { color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); max-width: 46ch; margin: 22px 0 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 16px/1 var(--font); color: #050616; background: var(--cyan);
  padding: 15px 26px; border: 0; border-radius: var(--radius-control); cursor: pointer;
  box-shadow: 0 0 22px rgba(34, 240, 255, .6);
  transition: box-shadow .2s, transform .2s;
}
.btn:hover { text-decoration: none; box-shadow: 0 0 34px rgba(34, 240, 255, .9); transform: translateY(-1px); }
.btn-ghost {
  font: 600 15px/1 var(--font); color: var(--text); background: transparent;
  padding: 12px 22px; border: 1px solid var(--violet); border-radius: var(--radius-control); cursor: pointer;
}
.btn-ghost:hover { box-shadow: 0 0 16px rgba(155, 107, 255, .6); }
.btn-ghost[disabled] { opacity: .6; cursor: progress; }

/* sections */
.section { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--display); font-size: clamp(22px, 2.6vw, 32px); letter-spacing: .04em; }
.page-title { font-family: var(--display); font-size: clamp(30px, 4.6vw, 54px); letter-spacing: .03em; text-shadow: 0 0 18px rgba(34, 240, 255, .45); }
.page-sub { color: var(--muted); margin: 12px 0 0; max-width: 60ch; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.chip {
  display: inline-block; font: 600 14px/1 var(--font); color: var(--text);
  padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-control);
  background: rgba(17, 20, 58, .7); cursor: pointer;
}
.chip:hover { border-color: var(--pink); text-decoration: none; box-shadow: 0 0 12px rgba(255, 43, 214, .45); }
.chip[aria-pressed="true"], .chip.active { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 14px rgba(34, 240, 255, .5); }
.chip small { color: var(--muted); font-weight: 500; margin-left: 6px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; color: var(--text);
  background: linear-gradient(180deg, rgba(17, 20, 58, .92), rgba(9, 11, 34, .92));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { text-decoration: none; border-color: var(--cyan); box-shadow: 0 0 26px rgba(34, 240, 255, .35); transform: translateY(-3px); }
.card .cover { aspect-ratio: 16 / 9; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .cat { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.card h3 { font-size: 21px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; margin-top: auto; }
.meta .dot::before { content: "·"; }
.status { color: var(--muted); margin: 18px 0; }
.status.error { color: var(--danger); }
.more { margin-top: 32px; text-align: center; }

/* category tiles on home */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.tile {
  display: block; padding: 26px; border-radius: var(--radius); color: var(--text);
  border: 1px solid var(--line); background: rgba(17, 20, 58, .75);
}
.tile:hover { text-decoration: none; border-color: var(--violet); box-shadow: 0 0 22px rgba(155, 107, 255, .45); }
.tile strong { display: block; font-family: var(--display); font-size: 20px; letter-spacing: .04em; margin-bottom: 6px; }
.tile span { color: var(--muted); font-size: 15px; }

/* post */
.post-cover { width: 100%; max-height: min(52vh, 520px); aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.post-head { padding: clamp(28px, 5vw, 56px) 0 10px; max-width: 860px; }
.post-head h1 { font-family: var(--display); font-size: clamp(28px, 4.4vw, 50px); letter-spacing: .02em; text-shadow: 0 0 18px rgba(155, 107, 255, .5); margin: 14px 0 18px; }
.byline { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; flex-wrap: wrap; }
.byline img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--cyan); }
.byline strong { color: var(--text); }
.post-body { max-width: 760px; font-size: 18px; padding-bottom: 20px; }
.post-body h2, .post-body h3 { font-family: var(--display); letter-spacing: .03em; margin: 40px 0 12px; color: var(--cyan); }
.post-body h2 { font-size: 26px; }
.post-body h3 { font-size: 21px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0 0 20px; }
.post-body li { margin: 6px 0; }
.post-body li::marker { color: var(--pink); font-weight: 700; }
.post-body blockquote {
  margin: 30px 0; padding: 18px 24px; border-left: 3px solid var(--pink); border-radius: 0;
  background: rgba(255, 43, 214, .08); font-size: 20px; color: var(--text);
}
.post-body blockquote p { margin: 0; }
.post-body img { border-radius: var(--radius); margin: 24px 0; }
.post-body a { text-decoration: underline; }
.post-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 26px 0 8px; max-width: 760px; }
.like[aria-pressed="true"] { border-color: var(--pink); color: var(--pink); box-shadow: 0 0 14px rgba(255, 43, 214, .5); }
.counts { color: var(--muted); font-size: 14px; display: flex; gap: 14px; }

/* comments */
.comments { max-width: 760px; border-top: 1px solid var(--line); padding-top: 32px; margin-top: 40px; }
.comments h2 { font-family: var(--display); font-size: 22px; letter-spacing: .04em; margin-bottom: 20px; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment .who { font-weight: 700; }
.comment .when { color: var(--muted); font-size: 13px; margin-left: 8px; }
.comment p { margin: 6px 0 0; }
.comment .pending { color: var(--violet); font-size: 13px; }
.comment-form { display: grid; gap: 12px; margin: 24px 0 0; }
.comment-form label { font-weight: 600; font-size: 15px; }
.comment-form textarea {
  width: 100%; min-height: 110px; padding: 14px; font: inherit; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.comment-form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 12px rgba(34, 240, 255, .4); }
.comment-form .btn { justify-self: start; }
.form-error { color: var(--danger); font-size: 14px; min-height: 1em; margin: 0; }
.link-btn { background: none; border: 0; color: var(--cyan); font: 600 14px var(--font); cursor: pointer; padding: 6px 0; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 34px clamp(18px, 5vw, 72px); color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot .logo { font-size: 16px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (max-width: 640px) {
  .site-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav { gap: 16px; }
  .hero .rings { opacity: .35; }
  .post-cover { max-height: 34vh; }
}