:root {
  --bg: #000;
  --bg-2: #111;
  --text: #f5f5f5;
  --muted: #a6a6a6;
  --accent: #ff7a00;
  --accent-2: #ffb14d;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(0, 0, 0, 0.25);
  --glass-border: rgba(255, 255, 255, 0.25);
  --card: rgba(0, 0, 0, 0.28);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7f7;
    --bg-2: #eaeaea;
    --text: #111;
    --muted: #555;
    --glass: rgba(255, 255, 255, 0.92);
    --glass-2: rgba(0, 0, 0, 0.08);
    --glass-border: rgba(0, 0, 0, 0.15);
    --card: rgba(255, 255, 255, 0.75);
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  }
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html, body, header, nav, main, article, aside, footer {
  /* structural defaults kept lean for performance */
}

html, body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #0a0a0a 0%, #0b0b0b 40%, #000 100%);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

/* Layered background: orange zigzag + gradient + subtle scanlines/noise (pure CSS) */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* orange zigzag chevrons + ambient glow */
  background-image:
    linear-gradient(135deg, rgba(255,122,0,.25) 0 25%, transparent 25% 50%, rgba(255,122,0,.25) 50% 75%, transparent 75% 100%),
    linear-gradient(45deg, rgba(255,122,0,.25) 25%, transparent 25% 50%, rgba(255,122,0,.25) 50% 75%, transparent 75% 100%);
  background-size: 60px 60px, 60px 60px;
  background-position: 0 0, 0 0;
  mix-blend-mode: screen;
  opacity: 0.25;
  filter: saturate(110%);
}

html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* subtle scanlines + faint vignette */
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,.15) 1px, rgba(0,0,0,0) 2px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-size: auto 2px, auto 4px;
  mix-blend-mode: overlay;
  opacity: 0.6;
  filter: saturate(85%);
}

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

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

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}

@supports not (backdrop-filter: blur(12px)) {
  .card {
    background: rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,.25);
  }
}

.tag {
  display: inline-block;
  padding: 0.125em 0.5em;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #111;
  background: #ffb030;
  font-weight: 700;
}

/* Glass panels & surfaces */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  display: block;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.image-frame:hover img {
  transform: scale(1.02);
}

/* Content regions */
.content { line-height: 1.5; color: var(--text); }

/* Core typography with responsive scales */
h1, h2, h3 { margin: .25em 0; font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(1.75rem, 4.5vw, 3rem); letter-spacing: .5px; }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { font-size: clamp(0.95rem, 1.8vw, 1.05rem); margin: .75rem 0; color: var(--text); }

ul { padding-left: 1.25rem; margin: .25rem 0; }
li { margin: .25rem 0; }

/* Links & controls */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: none;
  font: inherit;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn, .cta {
  display: inline-block;
  padding: 0.72rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(180deg, rgba(255,122,0,.95), rgba(255,122,0,.75));
  color: #111;
  font-weight: 700;
  letter-spacing: .2px;
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }
.btn.secondary {
  background: rgba(0,0,0,.25);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.3);
}

/* Hero / header styling */
header {
  padding-block: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
header h1 {
  margin: 0.25rem auto;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: .5px;
  text-shadow: 0 0 14px rgba(255, 140, 0, .65);
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  margin-top: .25rem;
  letter-spacing: .4px;
}

/* Main content flow */
main { display: block; padding: 0; margin: 0; }
article {
  padding: 1rem 0 2rem;
}

/* Featured image container wrapper if present */
.featured-image {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 1rem;
}
.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
  object-fit: cover;
}

/* Footer layout & product ad blocks */
footer {
  padding: 1.25rem;
  display: grid;
  gap: .75rem;
  justify-items: center;
  text-align: center;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.product-ad {
  width: min(100%, 720px);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: .75rem;
  transition: transform .2s ease;
}
.product-ad a { display: block; padding: .25rem; color: var(--text); }
.product-ad:hover { transform: translateY(-2px); }
.sponsored-page { width: min(100%, 720px); }

footer p { margin: .25rem 0 0; }

/* Global accessibility & motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print styles */
@media print {
  html, body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
}
