/* Base & Theme Tokens */
:root {
  --bg: #2b003b;                /* Aubergine base */
  --bg-2: #190018;              /* Deep shadow */
  --text: #e8e4f0;              /* Platinum text */
  --muted: #c7c2d0;              /* Muted text for meta/secondary */
  --accent: #cfcbd8;             /* Platinum accent */
  --accent-2: #f7f6fb;           /* Lighter platinum for UI */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.25);
  --shadow-soft: 0 2px 8px rgba(0,0,0,0.15);
  --shadow: 0 6px 20px rgba(0,0,0,0.35);
  --focus: 0 0 0 3px rgba(160,190,255,0.9);
}

/* Section: Reset & Layout Foundations */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.4; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: aubergine gradient + subtle scanlines/noise */
  background-image:
    radial-gradient(circle at 15% 10%, rgba(200,160,240,0.18), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(120,90,180,0.28), transparent 40%),
    linear-gradient(to bottom, rgba(25,0,40,0.95), rgba(15,0,25,0.95) 60%, rgba(9,0,15,0.95)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, normal, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* Section: Global Glassy Surfaces (fallback-friendly) */
header, main, article, aside, footer {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
}

/* Section: Layout Helpers */
.container { max-width: clamp(320px, 92vw, 1100px); padding: 1rem; margin: 0 auto; }
.grid { display: grid; gap: 1rem; }
.card { padding: .85rem; border-radius: 10px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.25); }

/* Section: Typography */
h1, h2 { color: var(--text); margin: .5em 0; line-height: 1.15; }
h1 { font-size: clamp(1.8rem, 2.6vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.15rem, 1.4vw + .9rem, 2rem); font-weight: 600; }
p { margin: .6em 0 1em; color: rgba(232, 226, 240, 0.95); }
a { color: #e9e4f2; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-inline-start: 1.25rem; margin: .6em 0 1em; }
li { margin: .25em 0; }

/* Section: Image Frame */
.image-frame {
  width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Content Zone */
.content { padding: .75rem 0; }

/* Section: Buttons & Links (CTA) */
.btn, .cta, a, button { font-family: inherit; font-weight: 600; border-radius: 8px; border: 1px solid rgba(255,255,255,0.42); padding: .55rem .95rem; cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease; text-align: center; }
a, button { background: rgba(255,255,255,0.14); color: #fff; }
.btn { background: rgba(255,255,255,0.18); color: #0a0a0a; border-color: rgba(255,255,255,0.5); }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, rgba(210,200,235,0.95), rgba(170,160,210,0.95)); color: #120018; border-color: rgba(255,255,255,0.75); }
.btn.outline { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--text); }
.btn:focus-visible, .cta:focus-visible, a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--focus); outline: none; }
a:focus-visible { text-decoration: underline; }

/* Section: Lists & Tags */
.tag { display: inline-block; padding: .15rem .6rem; font-size: .78rem; border-radius: 999px; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.45); }

/* Section: Image Helpers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Section: Specific Page Elements */
header { padding: 1rem; margin: 1rem auto; }
header h1 { font-weight: 700; letter-spacing: .2px; }
header .meta { font-size: .9rem; color: var(--muted); margin-top: .25rem; }

/* Main layout adjustments for content density */
main { padding: 1rem; margin: 0 auto; max-width: clamp(320px, 92vw, 1100px); }

/* Footer: glassy blocks for product ads */
.product-ad, .sponsored-page { padding: .6rem; text-align: center; border-radius: 10px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.38); }
.product-ad a, .sponsored-page a { display: inline-block; padding: .4rem 0; width: 100%; }

/* Section: Accessibility Helpers */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  body { color: #000; background: #fff; }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
  a, button { color: #000; text-decoration: underline; }
}
@media (min-width: 700px) {
  .container { padding-inline: 0; }
}
aside { display: block; }

/* End of Styles */