:root {
  /* Palette tokens derived from sunset orange + aubergine theme */
  --bg: #1b0920;            /* aubergine base */
  --bg-2: #2a0f2b;          /* darker accent */
  --text: #f6f7fb;            /* high-contrast text on dark glass */
  --muted: #cbd5e1;           /* muted text/light UI hints */
  --accent: #FF7A1A;          /* sunset orange primary */
  --accent-2: #C24F00;        /* deeper orange for accents */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --radius: 12px;
}

/* Base & layout foundation */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background-color: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Layered background: gradient + subtle scanlines + glow pattern */
  background-image:
    linear-gradient(to bottom right, rgba(0,0,0,.25), rgba(0,0,0,.0)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 20% -10%, rgba(255,122,26,.15), transparent 40%),
    linear-gradient(135deg, #2a0f2b 0%, #1b0920 60%, #0a0711 100%);
  background-blend-mode: multiply, overlay, screen, normal;
  min-height: 100vh;
}

/* Focus management for accessibility */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

.grid { display: grid; gap: 1rem; }

/* Cards / panels (glassmorphism) */
.card,
.product-ad,
.sponsored-page,
header,
footer,
section {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
}

.card { padding: 1rem; }

/* Image framing with glow */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  background: #0000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

/* Content semantics */
.content { padding: 1rem; }

/* Structural sections from the page */
header, main, footer, aside { display: block; }

/* Typography & hero emphasis */
header h1 {
  font-size: clamp(1.5rem, 1.2rem + 2.2vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.25rem;
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
header .meta {
  font-size: clamp(0.8rem, 0.6vw + 0.6rem, 1rem);
  color: rgba(255,255,255,.85);
  margin: 0 0 0.75rem;
}
main { padding: 1rem 0; }

/* Content typography for article text */
article p,
article ol,
article ul,
article li,
article h2,
article h3 {
  color: var(--text);
  margin: 0.5rem 0;
}
article h2 { font-size: clamp(1.25rem, 0.8vw + 1.4rem, 2rem); margin-top: .25rem; color: #fff; }
article h3 { font-size: 1.05rem; margin: .5rem 0; }

/* Lists & navigation spacing reset for readability */
ul, li { padding-left: 1.25rem; }
ul { list-style: disc; }
li { line-height: 1.55; }

/* Link & button styling (accessibility high-contrast) */
a, button, .btn, .cta {
  color: #fff;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Primary/secondary call-to-action buttons (solid + outline) */
.btn,
.cta {
  display: inline-block;
  padding: 0.72em 1.15em;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.btn.primary:hover { transform: translateY(-1px); }
.btn.primary:active { transform: translateY(0); }
.btn.outline {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Glass panels fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(4px)) {
  .backdrop-fallback {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.34);
  }
}

/* Layout helpers (responsive grid utilities) */
.utility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.utility-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }

/* Footer product ads as glass panels */
.product-ad,
.sponsored-page {
  padding: 1rem;
  text-align: center;
  min-width: 0;
}
.product-ad a,
.sponsored-page a { display: block; padding: .5rem 1rem; color: #fff; }
.product-ad p,
.sponsored-page p { margin: 0; font-weight: 600; }

/* Print-friendly (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  .card, .product-ad, .sponsored-page { background: #fff; border: 1px solid #ccc; }
}
    
/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}