:root {
  --bg: #0b0410;
  --bg-2: #1f0a12;
  --text: #e9e0ea;
  --muted: #c9a6b9;
  --accent: #ff0bd5;
  --accent-2: #b01254;
  --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 22px rgba(0,0,0,.28);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(255,0,180,.6);
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(255,0,180,.08), rgba(80,0,60,.15) 60%, rgba(0,0,0,.25)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0 1px, transparent 1px 2px),
    #0b0410;
  background-blend-mode: overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: .9rem;
  box-shadow: var(--shadow);
}

.tag {
  display: inline-block;
  padding: .25em .6em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  color: #fff;
  margin-right: .25em;
}

/* Typography scale (responsive) */
h1, h2, h3 {
  margin: .25em 0;
  font-weight: 700;
}
h1 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.75rem); line-height: 1.15; letter-spacing: .2px; }
h2 { font-size: clamp(1.4rem, 1vw + 1rem, 2rem); }
h3 { font-size: clamp(1.15rem, .6vw + .8rem, 1.4rem); }

/* Section defaults */
header, main, footer, aside {
  width: 100%;
}

/* Header (hero) */
header {
  padding: 2rem 0 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
header h1 { color: #fff; margin: 0 0 .25rem; }
header .meta { color: var(--muted); font-size: clamp(0.8rem, 0.8vw + 0.4rem, 0.95rem); }

/* Simple nav styling */
nav {
  margin-top: .75rem;
}
nav a {
  color: #fff;
  text-decoration: none;
  padding: .45em .75em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
}
nav a:hover { text-decoration: underline; }

/* Main/article content with glassy panels */
main { padding: 0 0 2rem; }
article {
  margin: 0 auto;
  padding: 1rem;
  border-radius: var(--radius);
  max-width: clamp(320px, 90vw, 900px);
  /* Glass panel look with fallback */
  background: rgba(18,0,18,.42);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  article { background: rgba(18,0,18,.75); }
}
.article-content { color: var(--text); }

/* Featured image frame (supporting .image-frame class) */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  margin: 0.75rem 0 1rem;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Fallback class if image is wrapped differently */
.featured-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  margin: 0.75rem 0;
}
.featured-image img { width: 100%; height: auto; display: block; }

/* Content helpers (required selector) */
.content { padding: .5rem 0; color: var(--text); }

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

/* Product ad / footer sections in a glassy style */
footer {
  padding: 1rem 0 2rem;
  text-align: center;
}
.product-ad, .sponsored-page {
  display: inline-block;
  padding: .6rem 1rem;
  margin: .25rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  min-width: 180px;
}
.product-ad a, .sponsored-page a {
  color: #fff;
  text-decoration: none;
}
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Link and button treatments (focus-visible for accessibility) */
a, button, .btn, .cta {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); }
a:hover { text-decoration: underline; }
.btn, .cta {
  display: inline-block;
  padding: .65em 1.1em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(255,255,255,.35);
}
a:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 999px;
  z-index: 1;
}

/* Utilities for layout tweaks on small screens */
@media (max-width: 700px) {
  header { padding: 1.5rem 0; }
  article { padding: .8rem; }
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #00f; text-decoration: underline; }
  .image-frame { page-break-inside: avoid; }
}

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