:root{
  --bg: #050a0b;
  --bg-2: #0b1116;
  --text: #eafff7;
  --muted: #b6f0d8;
  --accent: #00e676;       /* iridescent green */
  --accent-2: #ff1744;     /* scarlet accents */
  --glass: rgba(255,255,255,.08);
  --glass-border: rgba(255,255,255,.25);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: ui-sans-serif-system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + subtle scanlines */
  background-image:
    linear-gradient(135deg, rgba(0,230,118,.25), rgba(255,23,68,.15) 60%, rgba(0,0,0,0) 100%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.04) 0px, rgba(0,0,0,.04) 1px, transparent 1px, transparent 4px);
  background-blend-mode: screen, overlay;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
header, nav, main, article, footer, aside {
  display: block;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
button, .btn, .cta { font-family: inherit; cursor: pointer; }

header {
  padding: .9rem 1rem;
  text-align: center;
  display: grid;
  gap: .4rem;
  place-items: center;
  margin: 0 auto;
  width: 100%;
  border-radius: var(--radius);
  /* glass panel on header */
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
header h1 {
  font-size: clamp(1.6rem, 1.2rem + 4vw, 3.4rem);
  line-height: 1.04;
  margin: .2rem 0 .4rem;
  letter-spacing: .3px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
header .meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92rem;
  color: rgba(255,255,255,.85);
}
nav {
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  padding-top: .25rem;
}
nav a {
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  transition: color .2s ease, background .2s ease;
}
nav a:hover { text-decoration: underline; background: rgba(255,255,255,.08); }
main { padding: 1rem; display: block; }
article {
  max-width: clamp(720px, 90vw, 1100px);
  margin: 0 auto;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.featured-image { margin: .75rem 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: inset 0 0 20px rgba(0,255,128,.15); }
.featured-image img { width: 100%; height: auto; display: block; object-fit: cover; }

h2 { font-size: clamp(1.4rem, 0.8rem + 2.5vw, 2.2rem); margin: .75rem 0 .5rem; color: #fff; }
h3 { font-size: 1.25rem; margin: .6rem 0 .4rem; color: #eafff7; }

p { color: rgba(235,255,247,.95); line-height: 1.6; margin: .4rem 0 1rem; }
ul { margin: .25rem 0 1rem 1.1rem; color: rgba(235,255,247,.95); }
li { margin: .25rem 0; }

blockquote {
  margin: .9rem 0;
  padding: .5rem 1rem;
  border-left: 3px solid var(--accent-2);
  color: #eafff7;
  background: rgba(0,0,0,.15);
  border-radius: 6px;
}
hr { border: none; height: 1px; background: rgba(255,255,255,.15); margin: .75rem 0; }

.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 0 14px rgba(0,255,128,.25);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.content { padding: 0; }

.product-ad, .sponsored-page {
  padding: .75rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  text-align: center;
  min-width: 0;
}
.product-ad a, .sponsored-page a { color: #fff; text-decoration: none; display: block; padding: .25rem 0; }
.product-ad:hover, .sponsored-page:hover { background: rgba(255,255,255,.12); }

footer { padding: 1rem; display: grid; gap: 1rem; grid-template-columns: 1fr; justify-items: center; text-align: center; }

.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: .75rem; }

.tag {
  display: inline-block;
  padding: .15rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  color: #eafff7;
}

.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #29d36b);
  border: none;
  color: #002216;
}
.btn:hover { transform: translateY(-1px); background: rgba(0,0,0,.35); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

a.btn { text-decoration: none; }

@media (min-width: 720px) {
  footer { grid-template-columns: 1fr 1fr 1fr; text-align: center; }
  .product-ad, .sponsored-page { justify-self: center; width: min(90%, 420px); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

/* Glass backdrop fallback for no-backdrop-filter environments */
@supports not (backdrop-filter: blur(8px)) {
  header, article, footer, aside, .product-ad, .sponsored-page {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
  }
}

/* Print-friendly (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: #fff; border: 0; box-shadow: none; }
  a { text-decoration: underline; }
}
