/* Base & Theme Tokens */
:root{
  --bg: #0b0b14;
  --bg-2: #1d0f2b;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.12);
  --text: #e9e0ff;
  --muted: #c6b8d8;
  --accent: #ff7a22;        /* burnt orange */
  --accent-2: #ffb36b;
  --border: rgba(255,255,255,.25);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --radius: 14px;
  --radius-sm: 10px;
}

/* Layout Foundations */
html, body { height: 100%; }
html { font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(140, 92, 246, .18), rgba(255, 122, 34, .10) 60%),
    var(--bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::before {
  /* subtle lilac noise/scanline texture (pure CSS) */
  content:"";
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.05) 0 2px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.04) 0 2px, transparent 2px),
    linear-gradient(180deg, rgba(0,0,0,.0) 0, rgba(0,0,0,.05) 2px, rgba(0,0,0,.0) 2px);
  background-size: 8px 8px, 8px 8px, 100% 100%;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
* { box-sizing: border-box; }

/* Global typographic scale (fluid) */
h1, h2 { line-height: 1.05; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: .25rem 0 0.25rem; color: var(--text); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin: .75rem 0 .25rem; color: #f2e9ff; }
p { margin: 0 0 1rem; color: #e8e0ff; }
ul { margin: 0 0 1rem 1.25rem; padding: 0; }

/* Sectioning & Layout */
header, main, footer, aside { display: block; }
header { padding: 1rem 1rem 0.25rem; position: relative; z-index: 1; }
header h1 { font-weight: 700; letter-spacing: .2px; }
header nav { margin-top: .25rem; display: inline-flex; gap: .5rem; }
main { padding: 0 1rem; }
footer { padding: 1rem; display: grid; gap: .75rem; }

/* Centered content container & utilities */
.container { width: min(92%, 1100px); margin-inline: auto; padding-inline: 0.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 1rem; }

/* Glass panels (with fallback) */
.product-ad, .sponsored-page, .card, .aside, .content { 
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: .75rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .product-ad, .sponsored-page, .card, .aside, .content { background: rgba(255,255,255,.14); }
}
.image-frame { width: 100%; max-width: 900px; margin: .5rem auto; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 20px rgba(0,0,0,.25); background: #111; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

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

/* Section-specific content blocks */
.featured-image { display: grid; place-items: center; }

/* Typography scale for body text with responsive sizing */
.content p { font-size: clamp(1rem, 1.2vw + 0.8rem, 1.15rem); line-height: 1.5; color: var(--text); }

/* Links, buttons, CTAs (interactive states) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  padding: .55rem .92rem;
  display: inline-block;
  background: rgba(255,255,255,.08);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
a:hover, button:hover, .btn:hover, .cta:hover { background: rgba(255,255,255,.14); text-decoration: underline; text-underline-offset: 3px; transform: translateY(-1px); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(127,127,255,.25);
}
.btn { background: var(--accent); border: none; color: #fff; padding: .55rem 1rem; }

/* Workhorse utility classes */
.container, .grid, .card, .tag { /* reserved for layout components if used */
}
.card { padding: 1rem; }

/* Image frame for the header/hero image within glass panels if used in future */
.image-frame { /* defined above; kept for completeness when used elsewhere */ }

/* Lists & accents */
li { color: #e8e0ff; }

/* Print-friendly adjustments */
@media print {
  body { background: #fff; color: #000; }
  a { color: #00f; text-decoration: underline; }
}
  
/* Accessibility & motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
  
/* Layout wiring for provided HTML structure */
header { display: block; padding-block: 0.5rem; border-bottom: 1px solid rgba(255,255,255,.15); }
header nav a { padding: .25rem .5rem; }

/* Section headroom for hero hierarchy */
main > article { display: block; }
section { margin: .75rem 0; }

/* Footer optics: ensure glass panels align in a compact, readable strip */
footer .product-ad, footer .sponsored-page { display: inline-block; min-width: 240px; vertical-align: top; margin-right: .5rem; }
footer p { margin: .25rem 0 0; font-size: .9rem; color: var(--muted); }