/* Base & Palette (tokenized) */
:root{
  --bg: #1a0f2a;          /* aubergine core */
  --bg-2: #2a0f28;        /* espresso accent */
  --text: #e9e1f8;          /* high-contrast text on dark glass */
  --muted: #c8b3d6;
  --accent: #6d2a69;        /* rich aubergine highlight */
  --accent-2: #3a1f0f;       /* espresso depth */
  --glass: rgba(255,255,255,0.08);
  --glass-2: rgba(0,0,0,0.25);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --focus: #7bdcff;
  --radius: 14px;
  --maxw: clamp(320px, 84vw, 1100px);
}

/* Global reset & utilities */
*, *::before, *::after { box-sizing: border-box; }
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, var(--bg) 0%, var(--bg-2) 60%, #000 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 2px, transparent 2px 4px);
  background-attachment: fixed;
  font-size: clamp(14px, 1.3vw + 12px, 18px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 2px 2px;
  opacity: .4;
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

/* Layout scaffolding */
header, nav, main, article, aside, footer { padding: 0; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1rem; }

/* Glass panels (fallback if backdrop-filter unsupported) */
.card,
header, main, footer, .content, .product-ad, .grid,
.article-block {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px) saturate(1.15);
}
@supports not (backdrop-filter: blur(8px)) {
  .card,
  header, main, footer, .content, .grid, .article-block {
    background: rgba(255,255,255,0.12);
  }
}

/* Header & hero */
header {
  text-align: center;
  padding: 1.25rem 1rem;
}
header h1 {
  font-size: clamp(1.4rem, 1.6rem + 1.2vw, 2.8rem);
  line-height: 1.15;
  margin: 0.25rem 0 0.5rem;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}
nav {
  margin-top: .5rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid transparent;
}
nav a:hover, nav a:focus-visible {
  text-decoration: underline;
  outline: none;
  border-color: rgba(255,255,255,.4);
}
main { padding: 1rem 0 2rem; }

/* Featured image wrapper (responsive) */
.featured-image {
  margin: 1rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.featured-image img { width: 100%; height: auto; display: block; }

/* Image frame utility (as requested) */
.image-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content area & typographic rhythm */
article { padding: 0; }
article h2, article h3 { color: var(--text); margin: .75rem 0 .5rem; }
article p { color: #efe5f7; margin: .5rem 0; }
article em { font-style: italic; color: #f0d7ff; }
article strong { color: #fff; }

ul { padding-left: 1.4rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Utility & layout helpers */
.content { padding: .5rem 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card { padding: 1rem; }

/* Tag (utility) */
.tag {
  display:inline-block;
  font-size: .75rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  color: #fff;
}

/* Footer & CTAs */
footer {
  padding: 1.25rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.15);
}
.product-ad, .sponsored-page {
  display: inline-block;
  padding: .75rem 1rem;
  margin: .25rem;
  border-radius: 8px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.28);
  text-align: center;
  min-width: 180px;
}
.product-ad a, .sponsored-page a {
  color: var(--text);
  text-decoration: none;
}
.product-ad a p, .sponsored-page a p { margin: 0; }

/* Links & interactive elements */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: none;
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
}
a { color: var(--text); }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }

/* Button variants (solid/outline) */
.btn, .cta {
  padding: .6rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(to bottom, rgba(93,16,80,.95), rgba(28,6,24,.95));
  color: #fff;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.btn:active, .cta:active { transform: translateY(0); }
.btn[aria-pressed="true"] { filter: saturate(1.2); }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 8px;
}
@media (hover: hover) {
  a:hover { text-decoration: underline; }
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .card { background: #fff; border: 1px solid #ddd; box-shadow: none; }
}
 
/* Accessibility & semantics */
:focus-visible { outline-offset: 4px; outline: 2px solid var(--focus); outline-offset: 4px; }

/* Structural selectors (required) */
html, body, header, nav, main, article, footer, aside { /* structural intent handled by design */ }
.image-frame, .image-frame img { /* explicitly styled as required */ }

/* End of styles */