/* Base tokens */
:root {
  --bg: #0b0b0f;
  --bg-2: #141018;
  --text: #f6f6f6;
  --muted: #c9c9c9;
  --accent: #ff2a2a;
  --accent-2: #ffd400;
  --card: rgba(18,18,18,.65);
  --card-2: rgba(18,18,18,.5);
  --border: rgba(255,255,255,.25);
  --shadow: 0 8px 28px rgba(0,0,0,.55);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(255,212,0,.8);
}

/* Layout basics */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: #000;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
body::before {
  /* Layered gradient: red core with yellow highlights */
  background: 
    linear-gradient(135deg, rgba(255,0,0,.28) 0%, rgba(255,212,0,.18) 60%, rgba(0,0,0,.6) 100%),
    radial-gradient(circle at 20% 0%, rgba(255,0,0,.15), rgba(0,0,0,0) 40%);
  mix-blend-mode: screen;
}
body::after {
  /* Subtle scanlines/noise layer */
  background: repeating-linear-gradient(to bottom,
               rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  opacity: .5;
  mix-blend-mode: overlay;
}
header, nav, main, article, aside, footer {
  padding: 0;
}
.container { width: 100%; max-width: clamp(640px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Glass panels (with backdrop-filter) */
.glass {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px);
}
.no-backdrop {
  background: rgba(18,18,18,.78);
  border: 1px solid rgba(255,255,255,.28);
}

/* Header / Hero */
header {
  text-align: center;
  padding: clamp(1rem, 4vw, 2.5rem) 1rem;
}
header h1 {
  font-size: clamp(2rem, 4vw + 1rem, 4rem);
  line-height: 1.04;
  margin: 0.25rem 0 0.5rem;
  font-weight: 800;
  letter-spacing: .02em;
  background: linear-gradient(90deg, #fff, #ffd400, #ff2a2a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
header .meta {
  font-size: clamp(.9rem, 1vw + .25rem, 1.05rem);
  color: var(--muted);
  margin-top: .25rem;
}

/* Main content */
main { padding: 1rem 0 2rem; }
article { padding: 0 0.25rem; }

/* Hero image frame */
.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 20px rgba(0,0,0,.4);
  margin: 0.75rem 0;
}
.image-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Typography content */
.content { font-size: clamp(1rem, .95rem + .3vw, 1.125rem); line-height: 1.6; color: var(--text); }
h2 { font-size: clamp(1.25rem, 1rem + 2vw, 2rem); margin: .5rem 0 0.5rem; }

/* Lists and quotes */
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; }
blockquote {
  margin: .75rem 0;
  padding: .75rem 1rem;
  border-left: 3px solid var(--accent-2);
  color: #eaeaea;
  background: rgba(0,0,0,.25);
  border-radius: 6px;
}

/* Product ad + related sections in footer */
.product-ad, .sponsored-page {
  margin: .5rem 0 1rem;
}
.product-ad a, .sponsored-page a {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: .75rem;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,0,0,.75), rgba(255,212,0,.75));
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad a:hover, .sponsored-page a:hover {
  filter: brightness(1.05);
}
footer {
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.25);
}

/* Link and button styles (interactive) */
a, button, .btn, .cta {
  color: #fff;
  text-decoration: none;
  background: var(--accent);
  border: 0;
  padding: .75rem 1rem;
  border-radius: 8px;
  display: inline-block;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
.btn, .cta {
  background: var(--accent);
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.25);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity:.8; }

/* Focus states (accessibility) */
:focus-visible {
  outline: none;
  outline: var(--focus);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* Utility */
.container.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Image caption helper (optional) */
.caption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: .25rem; }

/* Print styles */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  header, footer { display: block; }
  .image-frame { page-break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

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

/* Dark-by-default, light-mode variants */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f6f6;
    --bg-2: #e9e3d5;
    --text: #0e0e0e;
    --muted: #555;
    --accent: #c40000;
    --accent-2: #b8860b;
    --card: rgba(255,255,255,.92);
    --card-2: rgba(255,255,255,.8);
    --border: rgba(0,0,0,.15);
  }
  body { background: #f7f7f7; color: var(--text); }
  body::before { display: none; }
  body::after { display: none; }
  .glass { background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.1); color: #111; }
  a, .btn, .cta { background: var(--accent); }
  a:hover, a:focus { text-decoration: underline; }
}
