/* Base + Tokens */
:root{
  --bg: #0b0b0b;
  --bg-2: #121212;
  --text: #eaf6ff;
  --muted: #a6a6a6;
  --accent: #ff8c00;
  --accent-2: #a7ff00;
  --glass: rgba(255,255,255,0.08);
  --glass-2: rgba(255,255,255,0.14);
  --shadow: 0 8px 28px rgba(0,0,0,.45);
}
html, body { height: 100%; }
html { color-scheme: dark; }
* { box-sizing: border-box; }
html, body, header, nav, main, article, footer, aside { }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: linear-gradient(135deg, rgba(16,16,16,.92), rgba(14,14,14,.98)),
              linear-gradient(to bottom, var(--bg), var(--bg-2));
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}
/* Subtle layered noise/scanlines (pure CSS) */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
  opacity: .9;
}

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

/* Section headers (structure) */
header, main, footer { position: relative; z-index: 1; }

/* Header hero */
header { padding: 2rem 0 1.5rem; text-align: center; }
header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw + .4rem, 2.8rem);
  line-height: 1.15;
  letter-spacing: .2px;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
@media (prefers-color-scheme: light) {
  header h1 { text-shadow: none; color: #0b0b0b; }
}

/* Main content */
main { padding: 1rem 0 2rem; }
article { display: grid; gap: 1rem; }

/* Image frame styling */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 20px rgba(0,0,0,.28), 0 10px 28px rgba(0,0,0,.35);
  background: #0a0a0a;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transform: scale(1.0001);
  transition: transform .3s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Glass panels & cards */
.card, .product-ad, .tag { }
.card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: var(--glass-2); }
}
.product-ad {
  display: inline-block;
  margin: .25rem;
  padding: .6rem 1rem;
}
.product-ad a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
}
.product-ad a:hover { text-decoration: underline; }
.sponsored-page { display: inline-block; margin: .25rem; padding: .6rem 1rem; }

/* Content area (text blocks) */
.content { padding: 0; color: var(--text); }

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

/* Typography helpers */
h2, h3 { margin: .5rem 0; }
p { margin: .25rem 0 0; color: var(--muted); }
.tag {
  display:inline-block; font-size:.75rem; padding:.25em .6em; border-radius:999px;
  background: rgba(0,0,0,.25); color:#fff; border:1px solid rgba(255,255,255,.25);
}
a, button, .btn, .cta {
  text-decoration: none;
  color: var(--text);
  border: none;
  background: transparent;
  font: inherit;
}
a { cursor: pointer; }
.btn, .cta {
  display:inline-block;
  padding: .65rem 1.05rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-weight: 600;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn--solid {
  background: var(--accent);
  color: #111;
  border-color: rgba(0,0,0,.25);
}
.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,.45);
}
.btn:hover, .cta:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}
a:focus-visible { outline-color: var(--accent); }

/* Link behavior on hover/focus for contrast */
a:hover { text-decoration: underline; }
a:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Nav placeholder (present page has no nav, but selectors required) */
nav { display: none; }

/* Aside/secondary regions (optional placeholders) */
aside { display: none; }

/* Footer layout */
footer { padding: 1.25rem; text-align: center; color: var(--muted); }
footer p { margin: .5rem 0 0; }

/* Print styles */
@media print {
  body { background: white; color: black; }
  a { text-decoration: underline; color: #000; }
  .glass { background: rgb(255,255,255); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
  
/* Dark-mode friendly tweak for light preference */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5f5;
    --bg-2: #ececec;
    --text: #0b0b0b;
    --muted: #555;
    --glass: rgba(10,10,10,.08);
    --glass-2: rgba(10,10,10,.14);
  }
  body { background: linear-gradient(135deg, #f5f5f5, #eaeaea); color: #0b0b0b; }
  .card, .product-ad { background: rgba(255,255,255,.72); border: 1px solid rgba(0,0,0,.08); }
  a { color: #0a58a5; }
}