/* Section: Base */
:root {
  --bg: #1a1d24;
  --bg-2: #101522;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.25);
  --text: #e9f0f7;
  --muted: #b5c0cc;
  --accent: #e5c400;
  --accent-2: #ffd84a;
  --shadow: 0 8px 22px rgba(0,0,0,.35);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(229,196,0,.55);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-font-smoothing: antialiased; -ms-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.52;
  background: 
    linear-gradient(135deg, #1b1f26 0%, #0f1118 60%, #0a0b10 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }

/* Section: Layout primitives */
.container { width: min(92%, 1100px); margin-inline: auto; padding: 0 0.5rem; }

/* Section: Typography helpers */
h1, h2 { margin: 0 0 .5rem; line-height: 1.15; }
p { margin: 0 0 1rem; }

/* Section: Layout utilities */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Section: Interactive elements */
a, button, .btn, .cta { font: inherit; color: var(--accent-2); text-decoration: none; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 6px; }
a:hover { text-decoration: underline; }

/* Section: Cards & tags */
.card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: .75rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.tag { display: inline-block; padding: .15rem .5rem; font-size: .75rem; border-radius: 999px; background: rgba(229,204,0,.22); color: #f9f6d2; border: 1px solid rgba(229,204,0,.6); }

/* Section: Image framing (for future usage) */
.image-frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Glass panels with backdrop blur (fallback provided) */
.glass {
  background: rgba(15, 15, 20, 0.28);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 26px rgba(0,0,0,.35);
}
.no-backdrop-glass {
  background: rgba(15,15,20,0.85);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 8px 26px rgba(0,0,0,.25);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(15,15,20,0.8); }
}

/* Section: Images and hero media wrappers */
.featured-image { margin: 1rem 0; }

/* Section: Buttons (solid + outline) */
.btn { display: inline-block; padding: .6rem 1rem; border-radius: 999px; border: 0; background: var(--accent); color: #1a1a1a; font-weight: 600; transition: transform .15s ease, background .2s ease; }
.btn:hover { background: #ffd84a; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--outline { background: transparent; color: var(--accent-2); border: 1px solid rgba(229,196,0,.6); }
.btn--outline:hover { background: rgba(229,196,0,.12); }

/* Section: Front-page block helpers (utility) */
.cta { font-weight: 700; }

/* Section: Header & page chrome */
header {
  padding: 1rem;
  margin: 1rem auto;
}
header h1 { font-size: clamp(1.4rem, 1.5rem + 1.2vw, 2.4rem); letter-spacing: .3px; }
header .meta { color: var(--muted); font-size: clamp(0.8rem, 0.8vw + 0.6rem, 1rem); }

/* Section: Main & content flow */
main { padding: 0 0.5rem; }
article { max-width: 900px; margin: 0 auto; padding: 0.25rem 0; }

/* Section: Navigation */
nav a { color: var(--accent-2); }

/* Section: Footer blocks */
.product-ad, .sponsored-page { display: block; margin: .25rem 0; text-align: center; }
footer { padding: 1rem; text-align: center; }

/* Section: Lists */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Section: Print (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: Responsive tweaks */
@media (min-width: 700px) {
  .container { padding: 0 1rem; }
}
@media (prefers-color-scheme: dark) {
  /* keep the cyberpunk aesthetic in dark mode */
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Section: Decorative layer for depth (non-intrusive) */
body:before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 20% -10%, rgba(229,196,0,.08), transparent 40%),
              radial-gradient(circle at 80% 0%, rgba(0,0,0,.05), transparent 40%);
  pointer-events: none;
  mix-blend-mode: screen;
  filter: saturate(1.05);
}