:root {
  --bg: #0a001a;
  --bg-2: #14031a;
  --text: #f7eaff;
  --muted: #cdb9d9;
  --accent: #ff2d9c;
  --accent-2: #ff2a1a;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0,0,0,.38);
  --radius: 12px;
  --ring: 0 0 0 3px rgba(255,45,120,.6);
  --maxw: clamp(720px, 92vw, 1100px);
  --fg: #fff;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial; }
body {
  margin: 0;
  color: var(--text);
  min-height: 100%;
  background:
    radial-gradient(circle at 15% -10%, rgba(255,0,120,.25), transparent 25%),
    radial-gradient(circle at 85% 8%, rgba(255,60,122,.15), transparent 25%),
    linear-gradient(135deg, rgba(5,0,20,.95), rgba(16,0,28,.95) 60%, rgba(6,0,12,.95)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-color: #080012;
  background-blend-mode: screen, overlay, normal, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-size: 16px;
}

header, main, article, footer, aside { display: block; }

/* Glassy surface for sections when possible; fallback handled below */
article, .card, .product-ad, header, footer {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem;
}

@supports not (backdrop-filter: blur(8px)) {
  article, .card, .product-ad, header, footer {
    background: rgba(255, 255, 255, 0.12);
  }
}

.container, .grid, .card, .tag {
  --c: var(--text);
}

/* Layout primitives */
.container {
  width: 100%;
  max-width: var(--maxw);
  padding: 0 1rem;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.tag {
  display: inline-block;
  padding: .18rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,0,120,.25);
  color: #fff;
}

/* Image frame styling (note: .image-frame used by other pages; keep ready) */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform .25s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Core typography (mobile-first, responsive) */
h1, h2, h3, h4 {
  color: #fff;
  line-height: 1.15;
  margin: 0 0 .5rem;
  font-weight: 700;
}
h1 { font-size: clamp(1.6rem, 3vw + 1rem, 3rem); letter-spacing: .3px; }
h2 { font-size: clamp(1.25rem, 2vw + .75rem, 2.25rem); margin-top: .75rem; }
h3 { font-size: clamp(1.05rem, 1.6vw + .75rem, 1.4rem); }
p { font-size: clamp(0.95rem, 0.9vw + .6rem, 1.05rem); color: rgba(247,232,255,.92); margin: .5rem 0 1rem; }

header {
  padding: 1.25rem 0;
  text-align: center;
}
header h1 { font-size: clamp(1.4rem, 2vw + 1rem, 2.4rem); margin: .25rem 0 0.25rem; }
header .meta { color: var(--muted); font-size: clamp(0.8rem, 0.8vw + .4rem, 0.95rem); margin-top: .25rem; }

/* Page structure styling (centered content with max width) */
main {
  padding: 0 0.5rem;
}
article {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem;
}
article > * { margin: 0 0 1rem; }

/* Featured image area (wrapper in HTML is .featured-image) */
.featured-image { width: 100%; margin: .25rem 0 0.75rem; }

/* Content helpers (if used) */
.content { padding: .75rem; }

/* Product ad block (glass panel with CTA) */
.product-ad {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .95rem 1rem;
}
.product-ad h3 { margin: 0; font-size: 1.05rem; }
.product-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem .9rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.6);
  transition: transform .15s ease, background .2s ease;
}
.product-ad a:hover { background: #ff2f9b; transform: translateY(-1px); }

/* Link and button styling (interactive states + accessibility) */
a, button, .btn, .cta {
  font-family: inherit;
  color: #fff;
  text-decoration: none;
  border: 0;
  background: none;
  cursor: pointer;
}
a { color: var(--accent); text-decoration-thickness: 0.12em; text-underline-offset: 3px; }
a:hover, a:focus { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* Buttons (solid and outline variants) */
.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,0,120,.92);
  color: #fff;
  font-weight: 700;
  transition: transform .15s ease, background .2s ease;
}
.btn.secondary {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-color: rgba(255,255,255,.4);
}
.btn:hover { transform: translateY(-1px); background: linear-gradient(to bottom, rgba(255,0,120,.98), rgba(200,0,90,.92)); }
.cta { padding: .6rem 1rem; }

/* Lists */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Accessibility + motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  .card, .product-ad { background: #fff !important; border: 1px solid #ccc; }
}
