/* Base */
/* Theme tokens and system fonts for a neon cyberpunk aesthetic with glass panels */
:root{
  --bg: #04070f;
  --bg-2: #02040a;
  --text: #e8f0ff;
  --muted: #a5b4c8;
  --accent: #00e5ff;        /* neon cyan beam */
  --accent-2: #7f1a2a;       /* burgundy accent */
  --glass: rgba(255,255,255,.08);
  --glass-strong: rgba(255,255,255,.22);
  --border: rgba(255,255,255,.25);
  --shadow: 0 6px 22px rgba(0,0,0,.25);
  --ring: 0 0 0 3px rgba(0, 229, 255, .55);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
body {
  margin: 0;
  color: var(--text);
  min-height: 100svh;
  background: linear-gradient(135deg, rgba(5,7,15,.95) 0%, rgba(6,10,20,.95) 60%, rgba(3,0,10,.95) 100%), 
              radial-gradient(circle at 20% -10%, rgba(0, 230, 255, .15) 0, transparent 40%), 
              radial-gradient(circle at 85% 0%, rgba(128, 0, 40, .22) 0, transparent 40%), 
              #04070f;
  background-blend-mode: normal, screen, screen, normal;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  /* Subtle scanlines through layered noise-like pattern (pure CSS) */
  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: 100% 2px, 2px 100%;
  opacity: .25;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
a, button, .btn, .cta { color: var(--text); text-decoration: none; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(640px, 88vw, 1100px);
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: auto;
  margin-right: auto;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Sections: semantic elements */
header, nav, main, article, aside, footer { z-index: 1; }

/* Header / Hero */
header { text-align: center; padding: 2rem 1rem 1rem; }
header h1 {
  font-size: clamp(1.8rem, 3vw + 1rem, 3.5rem);
  line-height: 1.05;
  margin: 0 0 .25rem;
  font-weight: 800;
  letter-spacing: .4px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  margin-top: .25rem;
}

/* Back link navigation */
nav {
  display: inline-flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: .25rem 0 0;
}
nav a {
  padding: .4rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
nav a:hover { background: rgba(0, 229, 255, .15); transform: translateY(-1px); }
nav a:focus-visible { outline: none; box-shadow: var(--ring); }

/* Main content */
main { padding: 0 1rem 2rem; }
article { max-width: clamp(680px, 85vw, 1100px); margin: 0 auto; }

/* Image treatment (image-frame analogue) */
.featured-image {
  aspect-ratio: 16/9;
  width: min(720px, 100%);
  margin: 0 auto 1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content blocks and typography */
h2 { font-size: clamp(1.4rem, 2.4vw + .8rem, 2.2rem); margin: .6rem 0 .4rem; color: #e9f5ff; }
h3 { font-size: clamp(1.05rem, 1.8vw + .6rem, 1.4rem); margin: .8rem 0 .4rem; color: #eaf3ff; }
p { margin: .5rem 0; line-height: 1.5; color: var(--text); opacity: .95; }

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

/* Glass panels (cards) with fallbacks */
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: .9rem;
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); }
}

/* Image frame utility for selectors that may use it */
.image-frame {
  aspect-ratio: 16/9;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.15);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content container inside sections */
.content { padding: 1rem; }

/* Product ad panel (footer region) */
.product-ad {
  display: grid;
  gap: .5rem;
  align-items: center;
  justify-items: center;
  padding: .75rem;
  margin: .4rem 0;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad a {
  color: var(--text);
  text-decoration: none;
  padding: .5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: linear-gradient(135deg, rgba(0,229,255,.25), rgba(139,25,42,.25));
}
.product-ad a:hover { background: rgba(0,0,0,.4); }
.product-ad a:focus-visible { outline: none; box-shadow: var(--ring); }

/* Links and buttons (interactive states) */
a { color: #aee7ff; text-decoration: none; border-bottom: 1px dotted rgba(0, 229, 255, .6); }
a:hover { text-decoration: underline; }
a:focus-visible { outline: none; box-shadow: var(--ring); border-bottom-color: rgba(0, 229, 255, 1); }

button, .btn, .cta {
  border: none;
  border-radius: 10px;
  padding: .6rem 1rem;
  font: inherit;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  transition: transform .15s ease, box-shadow .2s ease;
}
button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
button:active, .btn:active, .cta:active { transform: translateY(0); }
button:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: none; box-shadow: var(--ring); outline-offset: 2px; }

/* Outline variant helper */
.btn.o { background: transparent; color: var(--text); border: 1px solid rgba(0, 229, 255, .8); }

/* List styling defaults */
ul { list-style: square; }

/* Utilities for responsive layout */
@media (min-width: 720px) {
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
}
@media print {
  body { background: #fff; color: #000; }
  .card, .image-frame, .product-ad { background: #fff; border: 1px solid #ccc; }
  a, button { color: #000; text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Aside defaults (present for completeness) */
aside { display: block; }

/* End of stylesheet */