/* Section: Tokens */
:root {
  --bg: #0f0f12;
  --bg-2: #17161a;
  --surface: rgba(18, 18, 22, 0.60);
  --text: #f7f7f7;
  --muted: #b9bec8;
  --accent: #e01922;
  --accent-2: #ff2d2d;
  --panel-border: rgba(255, 255, 255, 0.28);
  --panel-glow: rgba(226, 27, 34, 0.45);
  --radius: 14px;
  --radius-sm: 10px;
  --focus-ring: 0 0 0 3px rgba(255,255,255,.6);
  --shadow-soft: 0 8px 24px rgba(0,0,0,.40);
  --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* Section: Base reset & accessible defaults */
*,
*::before,
*::after { box-sizing: border-box; }
html, body, header, nav, main, article, aside, footer { height: auto; }
html, body { height: 100%; }
html { font-family: var(--font-stack); line-height: 1.4; }

a, button, .btn, .cta { cursor: pointer; color: var(--text); text-decoration: none; outline: none; }

/* Section: Layered background (gradient + scanlines + subtle texture) */
html, body {
  background:
    /* subtle vignette glow */
    radial-gradient(1200px circle at 50% -10%, rgba(224, 0, 0, 0.15) 0%, rgba(0,0,0,0) 60%),
    /* base gradient for cyberpunk charcoal feel */
    linear-gradient(135deg, #14161a 0%, #0b0d12 60%, #14161a 100%),
    /* fine scanlines to evoke mood */
   repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 2px);
  background-color: #0b0d12;
  background-blend-mode: normal, overlay, overlay;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Section: Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }

/* Section: Glass panels (fallback + backdrop-filter) */
.glass {
  background: rgba(20, 20, 28, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass {
    background: rgba(20, 20, 28, 0.60);
  }
}

/* Section: Image frame styling */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 16px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.image-frame:hover img {
  transform: scale(1.02);
}

/* Section: Typography (responsive, fluid) */
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: 0.2px; }
h1 { font-size: clamp(1.75rem, 2.75vw + 1rem, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.15rem, 1.6vw + 1rem, 1.75rem); }
p { color: var(--text); font-size: clamp(0.95rem, 0.4vw + 0.9rem, 1.125rem); line-height: 1.6; margin: 0 0 1rem 0; }
blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--muted); }
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; }

/* Section: Links & CTAs (focus states) */
a:focus-visible, button:focus-visible { outline: var(--focus-ring); outline-offset: 2px; border-radius: 6px; }
a:hover { text-decoration: underline; color: #ffd6d6; }
.btn, .cta { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.28);
  background: rgba(226,27,34,0.95); color: #fff; font-weight: 600; transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: #d9161d; }
.btn:active { transform: translateY(0); }
.btn.secondary, .cta.secondary { background: transparent; color: var(--text); border-color: rgba(255,255,255,.5); }

/* Accessible color accents on links */
a.accent { color: var(--accent); border-bottom: 1px solid rgba(226,27,34,.25); }
a.accent:hover, a.accent:focus { color: #ffd6d6; border-bottom-color: rgba(226,27,34,.7); }

/* Section: Content area wrapper */
.content { max-width: clamp(320px, 90vw, 860px); margin-inline: auto; padding-block: 1rem; }

/* Section: Common content blocks */
.card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius-sm);
  padding: 0.75rem; box-shadow: 0 6px 14px rgba(0,0,0,.25); }

/* Section: Utility classes (brandable chips) */
.tag {
  display: inline-block; padding: .25rem .6rem; border-radius: 999px; font-size: .75rem;
  background: rgba(226,27,34,.25); color: #fff; border: 1px solid rgba(226,27,34,.6);
}
.container.center { text-align: center; }

/* Section: Page structure styling (selectors required) */
html, body, header, nav, main, article, footer, aside {
  /* the layout targets from the prompt are styled here via base rules above */
}

/* Section: Header pattern */
header {
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
header nav { margin-top: .75rem; }

/* Section: Main content layout (mobile-first) */
main { padding: 1.25rem 1rem 2rem; display: block; }
main .featured-image { margin: 0 0 1rem; }

/* Section: Footer layout */
footer {
  padding: 1.25rem;
  display: grid;
  gap: .75rem;
  justify-items: center;
  align-items: start;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.25);
}
.product-ad, .sponsored-page {
  width: min(100%, 900px);
  padding: .75rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.22);
  text-align: center;
}
.product-ad a, .sponsored-page a { color: var(--text); display: inline-block; padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.25); }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; background: rgba(0,0,0,.4); }

/* Section: Print accessibility (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a, button { text-decoration: none; color: #000; }
  .glass { background: #fff; border: 1px solid #ccc; }
}
 
/* Section: Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}