:root {
  --bg: #2a0000;
  --bg-2: #3a0000;
  --text: #f6f6f7;
  --muted: #cbd5e1;
  --accent: #ff2a2a;
  --accent-2: #e50914;
  --glass: rgba(255,255,255,.08);
  --glass-2: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.25);
  --shadow: 0 6px 20px rgba(0,0,0,.5);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f0f0;
    --bg-2: #efe7e7;
    --text: #1f1f1f;
    --muted: #555;
    --accent: #b40000;
    --accent-2: #c40000;
    --glass: rgba(0,0,0,.06);
    --glass-2: rgba(0,0,0,.14);
    --border: rgba(0,0,0,.15);
  }
}

* { box-sizing: border-box; }

html, body { height: 100%; }

html, body { margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  min-height: 100%;
  background: 
    linear-gradient(135deg, rgba(122,0,0,.95) 0%, rgba(40,0,0,.95) 60%, rgba(18,0,0,.95) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.25)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 2px, transparent 2px 4px);
  background-blend-mode: overlay, normal, overlay;
}

/* Section: Layout primitives */
header { text-align: center; padding: 2rem 1rem; }

header h1 {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 3rem);
  line-height: 1.15;
  margin: 0;
  letter-spacing: .4px;
  background: linear-gradient(90deg, #fff, #ff6b6b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

main { display: grid; place-items: center; padding: 1rem; }

article {
  width: min(100%, 1100px);
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.image-frame {
  width: 100%; max-width: 720px;
  aspect-ratio: 16 / 9;
  margin: 1rem auto;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
}

.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content helpers */
.content { color: var(--muted); font-size: clamp(1rem, 0.4vw + 0.95rem, 1.05rem); line-height: 1.6; }

/* Section: Glass panels (cards) */
.product-ad, .sponsored-page {
  display: block;
  margin: 0.75rem 0;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
}

footer { padding: 1rem; text-align: center; color: var(--muted); }

/* Typography & interactive elements */
a, button, .btn, .cta { color: var(--text); text-decoration: none; background: none; border: none; font: inherit; cursor: pointer; }

/* Link behavior + focus visibility */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }

/* Buttons (solid and outline variants) */
.btn, .cta {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: #e22122; }

/* Outline variant */
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(239,68,68,.6);
}
.btn--outline:hover { background: rgba(239,68,68,.15); }

/* Card & tag utilities */
.card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: .75rem;
}

.tag {
  display: inline-block;
  padding: .25em .5em;
  border-radius: 999px;
  font-size: .75rem;
  color: #fff;
  background: rgba(239,68,68,.4);
  border: 1px solid rgba(239,68,68,.75);
}

ul, li { margin: 0; padding: 0; list-style: disc; padding-left: 1.25rem; color: var(--muted); }

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

/* Accessibility helpers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Visual polish for glass panels on dark background (fallback if backdrop-filter unsupported) */
@supports not (backdrop-filter: blur(12px)) {
  .image-frame, article, .product-ad, .sponsored-page {
    backdrop-filter: none;
    background: rgba(255,255,255,.12);
  }
}

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

/* Print styles for basic readability */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
