:root {
  /* Palette (aubergine + pewter) */
  --bg: #1a0f25;
  --bg-2: #250a2d;
  --surface: rgba(226, 214, 255, 0.10);
  --surface-2: rgba(238, 238, 238, 0.08);
  --text: #f5f4fb;
  --muted: #c9c3d4;
  --accent: #8e63c1;
  --accent-2: #bfb4c9;
  --shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  --focus: 0 0 0 3px rgba(142, 99, 193, 0.55);
  --radius: 14px;
  --radius-sm: 10px;
  --glow: 0 6px 18px rgba(0,0,0,.25);
  --border: rgba(255,255,255,.28);
}

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

html, body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: 
    linear-gradient(135deg, rgba(26,6,37,.95), rgba(16,7,25,.95) 60%),
    radial-gradient(circle at 25% -10%, rgba(110, 40, 170,.25), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

nav a, a, button, .btn, .cta { text-decoration: none; color: inherit; }

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

.header-grid, header, main, footer, aside {
  display: block;
}

header, main, footer, aside {
  background: rgba(16, 9, 25, 0.24);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--glow);
}

header h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.8rem, 2.4vw + 1rem, 3.2rem);
  line-height: 1.08;
  letter-spacing: .2px;
}

header .meta {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

nav {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: .5rem;
}

nav a {
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
  background: rgba(0,0,0,.15);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
nav a:hover { transform: translateY(-1px); background: rgba(0,0,0,.22); }
nav a:focus-visible { outline: none; box-shadow: var(--focus); border-color: rgba(255,255,255,.6); }

main { display: flex; justify-content: center; padding: 1rem 0 2rem; }

article {
  width: 100%;
  max-width: clamp(860px, 94vw, 1100px);
  padding: 1rem;
  display: block;
  gap: 1rem;
}

.featured-image, .image-frame {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  background: #000;
}
.featured-image { aspect-ratio: 16/9; }
.image-frame { aspect-ratio: 16/9; }
.image-frame img, .featured-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  vertical-align: middle;
  filter: saturate(1.05);
}

h2, h3 { color: #fff; margin-top: .75rem; margin-bottom: .5rem; }
h2 { font-size: clamp(1.4rem, 1.6rem + 1.2vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1.2rem + .6vw, 1.6rem); }

p { color: var(--text); opacity: .95; margin: .5rem 0 1rem; }

blockquote {
  margin: .75rem 0; padding: .75rem 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(142,99,193,.15);
  border-radius: 6px;
}

ul { padding-left: 1.25rem; margin: .4rem 0 1rem; }
li { margin: .25rem 0; }

.product-ad, .sponsored-page {
  display: flex; align-items: center; justify-content: center;
  padding: .75rem; margin: .5rem 0;
  background: rgba(18, 12, 26, 0.28);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
}
.product-ad a, .sponsored-page a { color: var(--text); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

footer { padding: 1rem; text-align: center; }

a, button, .btn, .cta {
  cursor: pointer;
  outline: none;
}

.btn, .cta {
  display: inline-block;
  padding: .65rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(142,99,193,.28);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: rgba(142,99,193,.38); }
.btn:focus-visible, .cta:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
  outline-offset: 2px;
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(238,238,255,.6);
  color: var(--text);
}
.btn--outline:hover { background: rgba(255,255,255,.08); }

.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(142, 99, 193, .28);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}

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

@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: none; border: none; padding: 0; }
  a { text-decoration: underline; color: #000; }
  .image-frame, .featured-image { page-break-inside: avoid; }
}