:root {
  --bg: #0b0f20;
  --bg-2: #1a0e25;
  --text: #f9f3ff;
  --muted: #cdb6c9;
  --accent: #ff3b3b;
  --accent-2: #ff6b6b;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  --radius: 12px;
  --radius-xl: 14px;
}

/* Section: Base, Reset-like minimalism with mobile-first defaults */
html, body { height: 100%; }
* { box-sizing: border-box; }
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);
  line-height: 1.55;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255, 60, 120, 0.25), transparent 40%),
    radial-gradient(circle at 85% 40%, rgba(255, 0, 100, 0.25), transparent 40%),
    linear-gradient(135deg, rgba(5,0,18,0.9) 0%, rgba(8,0,25,0.9) 60%, rgba(0,0,0,0.95) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: normal, overlay, overlay, normal;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  max-width: 100%;
}

/* Layout helpers */
.container { width: 100%; max-width: clamp(640px, 90vw, 1100px); margin: 0 auto; padding: 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Section: Page structure */
header { padding: 1.25rem 1rem; text-align: center; }
header h1 { font-size: clamp(1.8rem, 2.5vw + 1rem, 3.5rem); line-height: 1.05; margin: .25rem 0 .25rem; letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: clamp(0.8rem, 1.4vw, 1rem); margin-top: .25rem; }

/* Navigation */
nav { margin-top: .5rem; }
nav a { display: inline-block; padding: .5rem 1rem; border-radius: 999px;
  color: var(--text); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25); text-decoration: none; transition: all .2s ease; }
nav a:hover { background: rgba(255,255,255,.14); text-decoration: underline; }

/* Main content */
main { padding: 1rem 0; }
article { margin: 0 auto; max-width: clamp(520px, 92vw, 900px); padding: 0 0.25rem 1rem; }
.featured-image { margin: 1rem 0; }
.image-frame { aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 22px rgba(0,0,0,.25); background: #000; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Text content styling with glassy panels where relevant */
.content { padding: .25rem 0 0; }
h2 { font-size: clamp(1.4rem, 2.2vw + 1rem, 2.6rem); margin: .6rem 0 .4rem; }
h3 { font-size: clamp(1.05rem, 1.6vw + .8rem, 1.4rem); margin: .6rem 0; }
p { margin: .6rem 0; }
blockquote {
  margin: .8rem 0; padding: .6rem 1rem; border-left: 3px solid rgba(255,255,255,.5);
  color: #ffd9e8; background: rgba(255,255,255,.04);
}
ul { margin: .4rem 0 1rem 1.25rem; padding: 0; }
ul li { margin: .25rem 0; }

/* Footer / ad blocks with glass panels */
footer { padding: 1rem 1rem 2rem; display: block; }
.product-ad, .sponsored-page { margin: .25rem 0; }
.product-ad a, .sponsored-page a { display: block; text-align: center; padding: .75rem; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: var(--text); text-decoration: none; }

/* Interactive elements: buttons and links */
a, button, .btn, .cta { cursor: pointer; color: var(--text); text-decoration: none; outline: none; }
.btn { display: inline-block; padding: .6em .95em; border-radius: 999px; border: 1px solid rgba(255,255,255,.38);
  background: var(--accent); color: #fff; font-weight: 600; transition: transform .15s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: #e0312b; }
.btn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 999px; }
.btn--outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.6); }
.cta { padding: .55em 1em; border-radius: 999px; }

/* Image container variant for accessibility and glassy feel on images in cards */
.aside { }

/* Print styles */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  .btn, .cta { display: none; }
  .image-frame { border: 1px solid #000; }
}

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