/* Base tokens */
:root{
  --bg: #0b062a;
  --bg-2: #1a0a3a;
  --text: #eae6ff;
  --muted: #c9b8ff;
  --accent: #8a5cff;
  --accent-2: #d08bff;
  --glass: rgba(255,255,255,.14);
  --glass-border: rgba(255,255,255,.25);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  --gap: 1rem;
}
html, body { height: 100%; }
* { box-sizing: border-box; }
html, body, header, nav, main, article, footer, aside { }
/* Base layout + background (layered gradient + subtle scanlines) */
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(70,0,70,.95) 0%, rgba(10,0,40,.95) 60%, rgba(20,0,60,.95) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.15));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::after{
  content:"";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity:.6;
  pointer-events: none;
  z-index: 0;
}

/* Global page chrome (glass panels) */
header, main, footer {
  width: min(1120px, 94%);
  margin: 1rem auto;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  z-index: 1;
}
header { text-align: center; padding: 2rem 1rem; }
main { padding: 1rem 1rem; }
footer { padding: 1rem; text-align: center; }

/* Typography & structure helpers */
.container{ width:100%; max-width: clamp(720px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid{ display: grid; gap: var(--gap); }
.card{ padding: .75rem; border-radius: 12px; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.25); }
.tag{ display:inline-block; padding:.25em .5em; border-radius:999px; font-size:.75rem; background: rgba(138,92,255,.28); color:#fff; border:1px solid rgba(138,92,255,.6); }

/* Content styling */
.image-frame{ aspect-ratio: 16/9; width: 100%; overflow:hidden; border-radius:12px; border:1px solid rgba(255,255,255,.25); box-shadow:0 6px 18px rgba(0,0,0,.25); background:#000; }
.image-frame img{ width:100%; height:100%; object-fit:cover; display:block; }
.featured-image{ margin: .75rem 0 1rem; }
.featured-image img{ width:100%; height:auto; border-radius:12px; border:1px solid rgba(255,255,255,.25); box-shadow:0 6px 18px rgba(0,0,0,.25); }

/* Headline & body copy hierarchy */
h1, h2{ margin:0 0 .5rem; line-height:1.15; }
h1{ font-size: clamp(1.75rem, 4vw, 3rem); letter-spacing:.5px; }
h2{ font-size: clamp(1.25rem, 3vw, 1.75rem); }

/* Text defaults */
p{ margin: .5rem 0 1rem; line-height: 1.5; color: #f4f0ff; }
ul{ padding-left: 1.25rem; margin: .5rem 0 1rem; }
li{ margin:.25rem 0; }

/* Navigation & links (contrast-aware) */
a, button, .btn, .cta { color: var(--text); text-decoration: none; padding:.5rem 1rem; border-radius:999px; display:inline-block; border:1px solid transparent; background: transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease; }
a{ color: var(--accent); }
a:hover{ text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius:999px; }

/* Button variants (for future use) */
.btn{ background: var(--accent); color:#fff; border:1px solid rgba(0,0,0,.0); padding:.55rem 1.1rem; font-weight:600; }
.btn:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.cta{ background: transparent; border:1px solid var(--accent); color:var(--text); }

/* Sections in footer (glass panels-style ad blocks) */
.product-ad, .sponsored-page{ display:inline-block; width: calc(50% - .5rem); margin: .25rem; }
.product-ad a, .sponsored-page a{ display:block; padding:.6rem 1rem; text-align:center; border-radius:10px; background: rgba(138,92,255,.28); color:#fff; border:1px solid rgba(138,92,255,.6); }

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

/* Responsive tweaks & utilities */
@media (min-width: 700px){
  main{ padding: 1rem 1.25rem; }
  .product-ad, .sponsored-page{ width: calc(50% - 0.75rem); }
}
@media print{
  body{ background:#fff; color:#000; }
  header, main, footer{ background:transparent; border:none; box-shadow:none; }
  a{ color:#000; text-decoration: underline; }
}
@media (min-width: 900px){
  header{ padding: 2.25rem 1rem; }
  .container{ padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce){
  /* already handled above; kept for clarity if additional rules added later */
}

/* Structural selectors required by the spec (present but minimal styling) */
html, body, header, nav, main, article, footer, aside { }
.content { }

/* Glass fallback (non-backdrop) when backdrop-filter unsupported */
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer { background: rgba(255,255,255,.22); }
}
