/* Tokens */
:root {
  --bg: #0b1020;
  --bg-2: #14143a;
  --text: #e8eaff;
  --muted: #b6b4d6;
  --accent: #7c5cff;
  --accent-2: #4de0ff;
  --grad: linear-gradient(135deg, #0b4a93 0%, #5b0fa0 40%, #ff6a00 70%, #2a0a3a 100%);
  --glass: rgba(255,255,255,.08);
  --glass-border: rgba(255,255,255,.25);
  --shadow: 0 8px 22px rgba(0,0,0,.25);
  --radius: 12px;
  --focus: 2px solid #fff;
}

/* Base / Reset (mobile-first) */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: var(--grad);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
}
img { max-width: 100%; display: block; }

/* Subtle layered background: gradient + scanlines/noise (pure CSS) */
body::before {
  content: "";
  position: fixed; inset: 0;
  background: conic-gradient(from 180deg at 50% 50%, rgba(124,92,255,.06), rgba(0,0,0,.0) 40% 60%, rgba(124,92,255,.06));
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  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%;
  mix-blend-mode: overlay;
  opacity: .25;
  pointer-events: none;
  z-index: -1;
}

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

.grid { display: grid; gap: 1rem; }

/* Header / main structure */
header, nav, main, article, aside, footer { padding-block: 1rem; }
header {
  text-align: center;
  padding: clamp(1.25rem, 2vw, 2rem);
  margin: 0 auto;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
header h1 { margin: 0.25rem auto 0.5rem; font-size: clamp(1.6rem, 1.8vw + 1rem, 2.6rem); line-height: 1.15; letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: clamp(0.9rem, .6vw + .8rem, 1.05rem); }

/* Simple nav styling */
nav { margin-top: .25rem; }
nav a {
  color: #fff;
  text-decoration: none;
  padding: .45rem .75rem;
  border-radius: .5rem;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(124,92,255,.25);
}
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: none; }

/* Article content / typography */
main { padding: 1rem 0 2rem; }
article { display: block; line-height: 1.55; color: var(--text); }

/* Featured image frame */
.featured-image { margin: 1rem 0 0; }
.image-frame { width: 100%; aspect-ratio: 16/9; border-radius: .75rem; overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.25);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Content helpers used by selectors */
.content { max-width: 72ch; margin: 0 auto; padding: 0 0.25rem; }
p, h1, h2, h3, ul, ol, blockquote { margin: .75rem 0; }
h1, h2 { color: #fff; }
h1 { font-size: clamp(1.4rem, 1.6vw + 1rem, 2.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.15rem, 1.2vw + .9rem, 1.6rem); color: #f5f0ff; }

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

/* Glass panel examples in content-like sections */
.card, .product-ad { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px; padding: .75rem; box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.product-ad { display: block; text-align: center; padding: .9rem; margin: .75rem 0; }
.product-ad a { color: #fff; text-decoration: none; display: inline-block; padding: .5rem 1rem; border-radius: .5rem;
  border: 1px solid rgba(255,255,255,.3); background: rgba(124,92,255,.32); }
.product-ad a:hover { text-decoration: underline; }

/* Core interactive elements */
a, button, .btn, .cta {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: .6em 1em;
  border-radius: .6em;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(124,92,255,.28);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
a:hover, a:focus-visible, button:hover, .btn:hover, .cta:hover {
  text-decoration: underline;
  transform: translateY(-1px);
}
button, .btn, .cta { cursor: pointer; }
button { background: rgba(0,0,0,.0); }

/* Focus visibility for accessibility */
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Utility: tags */
.tag { display:inline-block; padding:.2em .5em; border-radius:.5em; font-size:.8em;
  background: rgba(124,92,255,.25); border:1px solid rgba(124,92,255,.55); color:#fff; }

/* Footer / ads areas */
footer { padding: 1.25rem 0; text-align: center; color: var(--muted); }
footer p { margin: .5rem auto; color: #d9d9ff; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a, a:visited { color: #00f; text-decoration: underline; }
  .image-frame, .product-ad { background: #fff; border: none; box-shadow: none; }
}

/* Responsive tweaks */
@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  header { padding: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}