/* Tokens & Global */
:root {
  --bg: #0a0a0a;
  --bg-2: #1a0d0a;
  --text: #f6f6f6;
  --muted: #cbd5e1;
  --accent: #ff4a1f;
  --accent-2: #ff2b2b;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(0, 0, 0, 0.25);
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 140, 0, 0.6);
  --focus: 0 0 0 3px rgba(255, 120, 0, 0.9);
  --radius: 14px;
  --shadow: 0 8px 20px rgba(0,0,0,.25);
  --shadow-soft: 0 4px 12px rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + subtle scanlines + paper texture vibe */
  background-image:
    linear-gradient(120deg, rgba(255, 120, 0, 0.18), rgba(255, 0, 0, 0.14)),
    radial-gradient(circle at 20% 0%, rgba(255, 90, 0, 0.12) 0 25%, transparent 25%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, normal;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* Subtle paper-like noise overlay (CSS-only) */
  background-image:
    linear-gradient(rgba(255,255,255,.04), rgba(255,255,255,.04)),
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: 0.6;
  z-index: -1;
  filter: saturate(1.1);
}
*,:before,*:after { box-sizing: border-box; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  padding-inline: 1rem;
  margin-inline: auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.glass { /* Glass panel – with fallback handled by @supports below */
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.no-backdrop .glass { background: rgba(24,24,24,0.65); border-color: rgba(255,255,255,0.45); }

/* Typography & headings */
h1, h2, h3 { margin: 0 0 0.5rem; }
p { margin: 0 0 0.75rem; color: var(--muted); }
ul { padding-left: 1.25rem; margin: 0.75rem 0; }
li { margin: 0.25rem 0; }

/* Core selectors targeted by the page */
html, body, header, nav, main, article, footer, aside {
  /* Ensure consistent display context; allow future extension if needed */
}
header, nav, main, article, footer {
  display: block;
}
image-frame { display: block; }

/* Header / Hero */
header {
  padding: clamp(1rem, 3vw, 2rem);
  text-align: center;
  background: rgba(15, 0, 0, 0.34);
  border-bottom: 1px solid rgba(255, 140, 0, 0.5);
  border-radius: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}
header h1 {
  font-size: clamp(1.4rem, 4vw + 1rem, 2.6rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: .4px;
  margin: 0;
  color: #fff;
}
nav { margin-top: .25rem; }
nav a {
  color: #fff;
  text-decoration: none;
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 0, 0.6);
  background: rgba(255, 120, 0, 0.28);
  transition: transform .2s ease, background .2s ease;
}
nav a:hover { transform: translateY(-1px); background: rgba(255,120,0,0.38); }

/* Main content */
main { padding: 2rem 0 2rem; display: grid; justify-items: center; }
.image-frame {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 140, 0, 0.6);
  box-shadow: 0 12px 26px rgba(0,0,0,.28), inset 0 0 12px rgba(255, 120, 0, 0.15);
  background: #0a0a0a;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
main .content { /* reserved content container if used elsewhere */
  margin-top: 1rem;
}
@supports not (backdrop-filter: blur(8px)) and not (-webkit-backdrop-filter: blur(8px)) {
  .glass, .content, header {
    background: rgba(20,20,20,0.75);
    border-color: rgba(255,255,255,0.45);
  }
  .no-backdrop { /* fallback class if needed on wrappers */ }
}

/* Sections in footer (ads / promos) */
footer {
  padding: 1.5rem 1rem;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
  background: rgba(0,0,0,.28);
  border-top: 1px solid rgba(255, 140, 0, 0.5);
}
.product-ad, .sponsored-page {
  width: min(100%, 800px);
}
.product-ad a, .sponsored-page a {
  display: block;
  padding: .8rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,110,0,.55), rgba(255,0,0,.40));
  border: 1px solid rgba(255,140,0,.75);
  transition: transform .2s ease;
}
.product-ad a:hover, .sponsored-page a:hover { transform: translateY(-1px); }

/* Buttons & links (solid & outline variants) */
a, button, .btn, .cta {
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn {
  display: inline-block;
  padding: .75rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(135deg, rgba(255,120,0,.28), rgba(255,0,0,.28));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); background: linear-gradient(135deg, rgba(255,120,0,.38), rgba(255,0,0,.38)); }
.btn:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,140,0,.8);
}
.cta {
  padding: .75rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.45);
  background: linear-gradient(135deg, rgba(255,90,0,.55), rgba(255,0,0,.45));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
a:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  outline-offset: 2px;
  border-radius: 10px;
}
a:hover, a:focus { text-decoration: underline; color: #ffd2cc; }

/* Utility: subtle emphasis for glass panels in content areas */
.content, .card, .glass { /* ensure focus states are visible on text over glass */ color: #fff; }

/* Lists & tags */
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(255, 110, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255,255,255,.5);
}

/* Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  a { text-decoration: underline; color: inherit; }
  header, footer { background: none; border: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}