/* Base tokens */
:root {
  --bg: #0a0b10;
  --bg-2: #12131a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.25);
  --text: #eaecef;
  --muted: #a6aab5;
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --radius: 14px;
  --accent: #ff2b2f;      /* scarlet */
  --accent-2: #e60073;    /* neon scarlet/pink */
  --glass: rgba(255,255,255,0.08);
  --glass-2: rgba(255,255,255,0.14);
  --focus: 0 0 0 3px rgba(255,255,255,.5);
  --radius-sm: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif;
}

/* Reset & base */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: var(--font); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(210,210,210,.25), rgba(210,210,210,0) 40px),
    radial-gradient(circle at 85% 25%, rgba(255,0,60,.15), rgba(255,0,60,0) 40px),
    radial-gradient(circle at 50% 90%, rgba(150,180,200,.08), rgba(150,180,200,0) 40px),
    linear-gradient(135deg, #0b0c10 0%, #0a0b11 60%, #0a0b14 100%);
  min-height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Subtle CSS noise/scanlines overlay (pure CSS) */
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0px, rgba(255,255,255,.04) 1px, transparent 1px, transparent 2px);
  opacity: .25;
  pointer-events: none;
  mix-blend-mode: overlay;
}
img { max-width: 100%; display: block; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(720px, 60rem, 1120px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Section glass panels (works on header, main, footer, and as-needed) */
header, main, footer, aside {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin: 1rem auto;
}
@media (min-width: 768px) {
  header, main, footer, aside { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

/* Typography scales (fluid) */
h1 { font-size: clamp(1.75rem, 1.1rem + 3vw, 3.25rem); line-height: 1.15; margin: 0 0 .5rem; }
h2 { font-size: clamp(1.25rem, 0.9rem + 1.5vw, 2rem); margin: .75rem 0 0.25rem; color: var(--text); }
h3 { font-size: clamp(1rem, 0.8rem + 1vw, 1.25rem); margin: .5rem 0; }

/* Global typography refinements for readability on glass */
p { color: var(--text); opacity: .95; margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Image frame styling */
.image-frame, .featured-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  background: #111;
}
.image-frame img, .featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center; }
.image-frame::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 8px rgba(0,0,0,.25);
  pointer-events: none;
}
.image-frame { filter: saturate(1.05); }

/* Content wrapper (where available) */
.content { max-width: 72ch; margin: 0 auto; padding: 0 0.5rem; }

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

/* Links & interactive controls */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
}
a { transition: color .2s ease; }
a:hover, a:focus { text-decoration: underline; outline: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus); outline-offset: 2px;
  border-radius: 6px;
}
button, .btn, .cta {
  font: inherit;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.05));
  color: var(--text);
  cursor: pointer;
  display: inline-block;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #e0262a);
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
}
.btn.secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.4);
  color: var(--text);
}
.btn:active {
  transform: translateY(0);
  filter: brightness(.98);
}
.anchor-outline { outline: 2px solid transparent; outline-offset: 2px; }

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

/* Lists styling for readability and contrast */
ul { list-style: none; padding: 0; margin: 0; }
li { padding-left: 0; }
li + li { margin-top: .25rem; }

/* Small ui chips */
.tag {
  display: inline-block; padding: .25rem .5rem; border-radius: 999px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4);
  font-size: .8rem; line-height: 1; color: #fff;
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
  a { text-decoration: underline; color: #000; }
}
  
/* Responsive hero adjustments for readability on small devices */
@media (min-width: 760px) {
  header { padding: 1.25rem 0; }
  .image-frame, .featured-image { border-radius: 14px; }
  h1 { font-size: clamp(2rem, 1.2rem + 2.5vw, 3.5rem); }
}
  
/* Reduced motion preference override (minimal) */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}