:root {
  --bg: #000000;
  --bg-2: #0b0b14;
  --text: #e9e1ff;
  --muted: #c9b8d9;
  --accent: #6b174f;       /* aubergine base */
  --accent-2: #8a2e66;     /* lighter aubergine highlight */
  --glass: rgba(12, 0, 28, 0.32);
  --glass-border: rgba(255, 255, 255, 0.28);
  --shadow: 0 6px 24px rgba(0,0,0,.4);
  --focus: 0 0 0 3px rgba(255,255,255,.5);
  --outline: 2px solid #fff;
}

html, body { height: 100%; }
* { box-sizing: border-box; }

html, body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(circle at 25% 20%, rgba(106,0,79,.25) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(60,0,40,.25) 0%, transparent 40%),
    linear-gradient(135deg, #000 0%, #0a0010 60%, #000 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 3px);
  background-color: var(--bg);
  overflow-x: hidden;
}

/* Layout primitives */
.container { max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding: 0 1rem; }

/* Glass panels (fallback-friendly) */
header, main, footer, aside, article {
  background: rgba(12, 0, 28, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: 1rem auto;
  width: min(1100px, 92%);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside, article {
    background: rgba(12, 0, 28, 0.66);
  }
}
@media (min-width: 960px) {
  header, main, footer, aside, article { padding: 1.25rem; }
}

/* Typography */
h1, h2, h3, h4 { color: #f6eaff; margin: .25rem 0 .5rem; line-height: 1.08; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw + 0.5rem, 3.5rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.4rem, 1.6vw + 1rem, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1vw + .9rem, 1.5rem); }
p { color: var(--text); margin: 0 0 1rem; }
strong { color: #fff; }

/* Image frame with aspect ratio and glow */
.image-frame { aspect-ratio: 16 / 9; width: 100%; display: block; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content helpers */
.content { padding: 0.75rem 0 0; }
ul, li { margin: 0 0 0.75rem; padding: 0; }
ul { padding-left: 1.25rem; color: var(--muted); }
li { margin: .25rem 0; }

/* Utility classes */
.container { padding-block: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.25); border-radius: 10px; padding: .75rem; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.45); }

/* Tag pills */
.tag { display: inline-block; padding: .15em .6em; font-size: .75rem; border-radius: .6em; background: rgba(106,0,79,.75); color: #fff; }

/* Links & buttons (interactive states & accessibility) */
a, button, .btn, .cta {
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  border-radius: 8px;
  padding: .65rem 1rem;
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  background: var(--accent);
  transition: transform .15s ease, background .25s ease, border-color .25s ease, color .25s ease;
  cursor: pointer;
}
a { color: var(--accent-2); }
a:hover, a:focus { text-decoration: underline; color: #ffd7f0; outline: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--outline);
  outline-offset: 2px;
  text-decoration: underline;
}
.btn { background: var(--accent); border: 1px solid rgba(255,255,255,.28); }
.btn:hover { background: #7a0f47; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn.outline { background: transparent; border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn.outline:hover { background: rgba(255,255,255,.08); }

/* Primary/secondary CTAs (semantic roles) */
.cta { background: linear-gradient(135deg, rgba(107,23,79,.95), rgba(60,0,60,.95)); }
.cta.secondary { background: rgba(255,255,255,.08); color: var(--text); }

/* Layout helpers for semantic regions */
header, main, footer { display: block; }

/* Specific section roles (as per selectors) */
.product-ad { display: block; padding: .75rem; border-radius: 12px; background: rgba(18,0,40,.42); border: 1px solid rgba(255,255,255,.25); text-align: center; margin: .5rem 0; }
.product-ad a { color: #fff; text-decoration: none; font-weight: 700; }
.product-ad a:hover { text-decoration: underline; }

/* Print styles for readability */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; border: none; padding: 0; }
  a { text-decoration: underline; color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Small screens: tweak spacing for mobile readability */
@media (max-width: 600px) {
  .image-frame { border-radius: 10px; }
  header, main, footer { padding: .75rem; }
}