/* Base & Theme Tokens */
:root {
  --bg: #0b0a0a;
  --bg-2: #141212;
  --text: #f8e000;           /* cyber yellow text for high contrast on dark glass */
  --muted: #e7d75d;
  --accent: #ffd400;          /* primary cyber yellow for actions */
  --accent-2: #ffea66;
  --panel: rgba(17, 17, 26, 0.28);
  --panel-2: rgba(17, 17, 26, 0.34);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 6px 22px rgba(0,0,0,.45);
  --radius: 12px;
  --focus: 2px solid #ffd400;
}

/* Global / Typographic Reset */
html, body {
  height: 100%;
}
*,
::before,
::after {
  box-sizing: border-box;
}
html {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  color: var(--text);
  background: transparent;
}
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + subtle scanlines + starfield */
  background-image:
    linear-gradient(to bottom right, rgba(20,20,25,.75), rgba(15,15,22,.95)),
    radial-gradient(circle at 20% 15%, rgba(255, 214, 0, .15) 0 40%, transparent 40%),
    radial-gradient(circle at 70% 40%, rgba(255, 235, 120, .10) 0 40%, transparent 40%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.0) 0 2px, rgba(255,255,255,.04) 2px 3px);
  background-blend-mode: normal, screen, screen, overlay;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  isolation: isolate;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
/* Starfield (pure CSS) */
body::before {
  /* yellow starfield dots */
  background-image:
    radial-gradient(circle at 5px 7px, rgba(255,214,0,.95) 0 1.2px, transparent 2px),
    radial-gradient(circle at 120px 60px, rgba(255,215,0,.85) 0 1.2px, transparent 2px),
    radial-gradient(circle at 260px 90px, rgba(255,235,120,.9) 0 1.2px, transparent 2px),
    radial-gradient(circle at 400px 140px, rgba(255,210,60,.9) 0 1.2px, transparent 2px),
    radial-gradient(circle at 520px 40px, rgba(255,225,90,.8) 0 1.2px, transparent 2px);
  background-size: 100px 100px, 140px 100px, 180px 120px, 260px 140px, 320px 160px;
  opacity: .25;
  animation: twinkle 6s linear infinite;
}
@keyframes twinkle {
  0%, 100% { transform: translateZ(0) scale(1); opacity: .25; }
  50% { opacity: .45; }
}
body::after {
  /* subtle scanlines overlay (noise-like) */
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  opacity: .25;
  mix-blend-mode: overlay;
  transform: translateZ(0);
  /* keep it subtle and GPU-friendly */
}

/* Layout primitives */
.container {
  width: 100%;
  max-width: clamp(640px, 92vw, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Section blocks as "glass" panels (fallback if backdrop-filter unavailable) */
header, main, footer, aside {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: .75rem 0;
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside {
    background: rgba(10,10,20,.7);
    border-color: rgba(255,255,255,.35);
  }
}

/* Header / Hero styling */
header {
  display: block;
  padding: 1.25rem;
}
header h1 {
  font-size: clamp(1.75rem, 2.6vw + 1rem, 3rem);
  line-height: 1.05;
  margin: 0 0 .25rem;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
header .meta {
  margin: 0;
  font-size: clamp(0.9rem, 0.8vw + .8rem, 1.05rem);
  color: #f8f3b5;
  opacity: .95;
}
nav a {
  color: #fff;
  text-decoration: none;
  padding: .4rem .8rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.15);
  transition: transform .2s ease, background .2s ease;
}
nav a:hover { transform: translateY(-1px); background: rgba(0,0,0,.22); text-decoration: underline; }

/* Main article styling (glass panel content) */
main {
  display: block;
}
article {
  display: block;
  padding: 1rem;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(10,12,22,.32);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
  margin: 1rem 0;
}
@supports not (backdrop-filter: blur(14px)) {
  article {
    background: rgba(10,12,22,.5);
  }
}
.featured-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  margin-bottom: .75rem;
}
.image-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  display: block;
  width: 100%;
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: crisp-edges;
  filter: saturate(1.05);
  transition: transform .25s ease;
}
.image-frame:hover img {
  transform: scale(1.02);
}
.content { /* generic container if used elsewhere */
  padding: 0;
  margin: 0;
}
h1, h2, h3, h4 {
  color: #fff;
}
h2 {
  font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem);
  margin: .75rem 0 .25rem;
}
h3 {
  font-size: clamp(1.05rem, .8vw + .9rem, 1.25rem);
  margin: .75rem 0;
}
p { margin: .5rem 0 1rem; color: #f7f5be; }

/* Lists & blocks */
ul, li { margin: 0 0 0.5rem; padding-left: 1.25rem; }
li { margin: .25rem 0; }

/* Inline blocks for hero CTAs & pills */
.tag {
  display: inline-block;
  padding: .25em .6em;
  font-size: .75rem;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.35);
  background: rgba(255, 212, 0, .15);
  color: #fff;
  margin-right: .25em;
}

/* CTAs & links */
a, button, .btn, .cta {
  color: #111;
  text-decoration: none;
}
a {
  color: var(--accent);
}
a:focus-visible, a:hover {
  text-decoration: underline;
}
button, .btn, .cta {
  font: inherit;
  padding: .65rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.4);
  background: linear-gradient(180deg, rgba(255,223,0,.95), rgba(255,213,0,.85));
  color: #111;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  display: inline-block;
}
.btn {
  background: linear-gradient(180deg, var(--accent), #e5b400);
}
.btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, var(--accent-2), #e0b300);
}
.btn:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.15);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border:1px solid rgba(255,255,255,.6);
}
.btn--outline:hover {
  background: rgba(255,255,255,.08);
}
.cta { /* alternative class name for primary actions */
  margin-right: .5rem;
}

/* Utility layout helpers */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .card { background: rgba(10,12,22,.65); }
}
.s,
.small { font-size: .92rem; color: #f7f5be; }

/* Images / frames in content (fallback for content media) */
aside {
  padding: .75rem;
}
.image-frame {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Print */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  header, main, footer { background: #fff; border: none; border-radius: 0; padding: 0; }
  a { text-decoration: underline; color: #000; }
  .container { width: 100%; padding: 0; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}