:root {
  /* Tokenized palette (red/orange derived) */
  --bg: #0b0000;
  --bg-2: #2a0000;
  --text: #f7f7f7;
  --muted: #c9c9c9;
  --accent: #ff3b30;     /* vivid red */
  --accent-2: #ff8a1f;   /* orange accent */
  --glass: rgba(255,255,255,0.08);
  --glass-2: rgba(255,255,255,0.22);
  --glass-border: rgba(255,255,255,0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html, body, header, nav, main, article, footer, aside {
  min-height: 0;
}

html, body {
  height: 100%;
  margin: 0;
  color: var(--text);
  background: 
    /* layers: deep red gradient + subtle scanline noise + vignette */
    linear-gradient(135deg, rgba(15,0,0,.95) 0%, rgba(40,0,0,.95) 60%, rgba(0,0,0,.95) 100%),
    repeating-linear-gradient(0deg, rgba(255,0,0,.04) 0px, rgba(255,0,0,.04) 1px, transparent 1px, transparent 2px),
    linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,0) 60%);
  background-attachment: fixed;
  font-family: UI-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

header, main, footer, aside {
  display: block;
}

.container {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Header */
header {
  padding: 1.75rem 1rem;
  text-align: center;
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin: 1rem auto;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
header h1 {
  font-size: clamp(1.25rem, 1.1rem + 2.2vw, 2.25rem);
  line-height: 1.15;
  margin: 0.25rem 0 0.4rem;
  font-weight: 700;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 0.6vw + 0.8rem, 1rem);
}
nav {
  margin-top: 0.5rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: 6px;
  display: inline-block;
}
nav a:hover { text-decoration: underline; }

main {
  padding: 1rem 0 2rem;
}

article {
  margin: 0 auto;
  padding: 1rem;
  max-width: 900px;
  border-radius: 14px;
  /* Glass panel with backdrop-filter; fallback is a semi-translucent panel */
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@media (prefers-reduced-motion: reduce) {
  article { backdrop-filter: none; }
}
.featured-image {
  margin: 0 0 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 18px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.04);
  background: rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
h1 + p { margin-top: .5rem; }

/* Typography scale for content hierarchy */
h1 { font-size: clamp(1.4rem, 0.8rem + 4vw, 2.6rem); line-height: 1.15; margin: .25rem 0 0.5rem; font-weight: 700; }
h2 { font-size: clamp(1.15rem, 0.8rem + 2.5vw, 1.9rem); margin: .9rem 0 .5rem; }
h3 { font-size: clamp(1rem, 0.6rem + 2vw, 1.35rem); margin: .75rem 0; }

p { color: #eaeaea; margin: .6rem 0; }

/* Lists */
ul { padding-left: 1.25rem; margin: .6rem 0; }
li { margin: .25rem 0; color: #e9e9e9; }

/* Glass content helpers */
.content { padding: 0; color: var(--text); }

/* Product/ad / footer blocks */
.product-ad, .sponsored-page, aside {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: .6rem 0.8rem;
  text-align: center;
  display: block;
  margin: .5rem 0;
}
.product-ad a, .sponsored-page a {
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  padding: .25rem .5rem;
}
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }
footer {
  padding: 1rem 0 2rem;
  text-align: center;
  color: var(--muted);
}
footer p { margin: .25rem 0; color: #d6d6d6; }

/* CTA / button styling (solid and outline variants) */
.btn, .cta, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5ch;
  padding: .6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.28);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
  will-change: transform;
}
.btn:hover, .cta:hover, a.btn:hover {
  background: #ff4f40;
  transform: translateY(-1px);
}
.btn:active, .cta:active, a.btn:active {
  transform: translateY(0);
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.35);
}
.btn.secondary:hover {
  background: rgba(255,255,255,.08);
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
a, button { outline: none; }

/* Links behavior */
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Utilities */
.tag {
  font-size: .75rem;
  padding: .15em .5em;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  color: #fff;
  display: inline-block;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
@media (max-width: 700px) {
  header { padding: 1.25rem 0.75rem; }
  .featured-image { margin-bottom: .75rem; }
}
@media print {
  html, body { background: #fff; color: #000; }
  article { background: #fff; border: none; box-shadow: none; }
  a, a:visited { color: #0000ee; text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}