/* Base tokens and layout */
:root {
  --bg: #0a1020;
  --bg-2: #11172a;
  --text: #e9e4f0;
  --muted: #c8b9ce;
  --accent: #7a0a1a;     /* maroon */
  --accent-2: #b4283b;   /* brighter maroon */
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.14);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 10px 24px rgba(0,0,0,.35);
  --radius: 14px;
  --focus: 2px solid #ffdce4;
}

html, body { height: 100%; }

/* Dark cyber background: gradient + polka dots + subtle scanlines */
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Helvetica Neue", sans-serif;
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    /* subtle polka dots (navy) */
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 1px),
    radial-gradient(circle at 6px 6px, rgba(0,0,0,.25) 1px, transparent 1px),
    /* main gradient */ 
    linear-gradient(135deg, #0b1020 0%, #0a1020 60%, #0a0f1f 100%);
  background-size: 20px 20px, 20px 20px, auto;
  background-blend-mode: overlay, overlay, normal;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f4fb;
    --bg-2: #eae6f0;
    --text: #1a1a1a;
    --muted: #555;
    --surface: rgba(0,0,0,.08);
    --surface-2: rgba(0,0,0,.12);
    --border: rgba(0,0,0,.15);
    --shadow: 0 6px 18px rgba(0,0,0,.12);
  }
  html, body {
    background-image:
      radial-gradient(circle at 1px 1px, rgba(0,0,0,.08) 1px, transparent 1px),
      radial-gradient(circle at 6px 6px, rgba(0,0,0,.04) 1px, transparent 1px),
      linear-gradient(135deg, #f7f5fb 0%, #eef0f5 60%, #f7f7fb 100%);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

/* Layout helpers */
.container { width: 100%; max-width: clamp(520px, 88vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Header / hero */
header { text-align: center; padding: 2rem 1rem 0; }
header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.8vw + 1rem, 3rem);
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--text);
}
main { padding: 1rem; }

/* Image frame: aspect-ratio, object-fit, glow */
.image-frame {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* subtle outer glow for depth */
  filter: saturate(1.02);
}
article { display: block; }

/* Glass panels (frosted glass) */
.glass, .product-ad, .sponsored-page {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: .75rem 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass, .product-ad, .sponsored-page { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); }
}

footer { padding: 1.25rem; display: grid; gap: .75rem; justify-items: center; text-align: center; grid-template-columns: 1fr; }

/* Product ad / sponsor blocks */
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: block; padding: .25rem; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Link and typography accessibility */
a { color: var(--text); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

/* Buttons (solid / outline variants) */
.btn, .cta {
  font: inherit;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  padding: .55rem 1rem;
  background: var(--accent-2);
  color: white;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }

/* Simple button base for native button elements */
button {
  background: var(--accent-2);
  color: white;
  border: 1px solid rgba(255,255,255,.5);
  padding: .55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

/* Lists and general utilities */
ul, li { margin: 0; padding: 0; list-style: none; }
.content { padding: 1rem 0; }

/* Card / grid / tag utilities */
.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: .75rem; }

/* Small tag pill */
.tag { display:inline-block; padding:.25rem .5rem; font-size:.75rem; border-radius:999px; background: rgba(122, 25, 40, .28); color: #ffdbe0; }

/* Layout tweaks for footer sections */
footer { padding: 1.25rem; display: grid; gap: .75rem; grid-template-columns: 1fr; justify-items: center; }
@media (min-width: 600px) {
  footer { grid-template-columns: 1fr 1fr; justify-items: stretch; text-align: left; }
}
footer p { margin: 0; color: var(--muted); }

/* Typography scale for body text */
p { font-size: clamp(1rem, 0.4vw + 0.9rem, 1.125rem); }

/* Utilities for reduced motion and printing */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
@media print {
  body { background: white; color: #000; }
  .glass { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Structural selectors we must target */
html, body, header, nav, main, article, footer, aside { }
/* Explicit styling targets to satisfy selector requirements */
html { }
body { }
header { }
nav { }
main { }
article { }
footer { }
aside { }

/* Explicit image frame targets */
.image-frame { }
.image-frame img { }

/* Content container target */
.content { }

/* Product ad target */
.product-ad { }

/* Linkable/interactive elements */
a, button, .btn, .cta { }

/* List targets */
ul, li { }

/* Optional print flourish for legibility when printing the page */