/* Base reset & palette */
:root {
  --bg: #0a0a12;
  --bg-2: #140220;
  --bg-3: #ff2fb3;
  --text: #e9e1f0;
  --muted: #cdb8d6;
  --accent: #ff2fb3;
  --accent-2: #ff6bd3;

  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.18);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
  --radius: 14px;
  --radius-sm: 10px;

  --focus: 2px solid #ff7bd9;
  --focus-color: #ff2fb3;
  --focus-offset: 4px;
  --focus-shadow: 0 0 0 3px rgba(255, 43, 179, 0.25);
}

* { box-sizing: border-box; }
html, body { height: auto; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(255, 0, 160, 0.16), rgba(0,0,0,0.18) 60%),
    radial-gradient(circle at 20% -10%, rgba(255, 0, 120, 0.18), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(255, 0, 200, 0.15), transparent 40%),
    linear-gradient(#0b0914, #0b0914 60%, #0a0a0f);
  background-blend-mode: screen, screen, overlay, normal;
  min-height: 100%;
  font-size: clamp(14px, 0.6vw + 12px, 18px);
  line-height: 1.5;
  /* Subtle layered noise/scanlines (pure CSS) */
  background-image:
    linear-gradient(135deg, rgba(255, 0, 120, 0.18), rgba(0,0,0,0.18)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 50% -10%, rgba(255,0,128,0.14), transparent 40%);
  background-size: cover, auto, cover;
  overflow-x: hidden;
}

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

/* Sectioned, glassy container styling */
header, main, footer, aside, article {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: .75rem auto;
  max-width: min(1100px, 92vw);
}

header { padding: 1.25rem; text-align: center; }
header h1 { font-size: clamp(1.75rem, 2.6vw, 3rem); margin: .25rem 0 .45rem; line-height: 1.15; }
header .meta { color: var(--muted); font-size: clamp(0.9rem, 0.45vw + 0.8rem, 1.05rem); margin-bottom: .5rem; }
nav { margin-top: .5rem; display: inline-flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
nav a { color: var(--text); text-decoration: none; padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.15); }
nav a:hover { text-decoration: underline; text-underline-offset: 2px; }
nav a:focus-visible { outline: 0; box-shadow: var(--focus-shadow); }

main { padding: 1rem; }
article { max-width: 860px; margin: 0 auto; padding: 1rem; }

.featured-image { margin: 0 0 1rem; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.featured-image img { width: 100%; height: auto; display: block; object-fit: cover; }

h1 { font-size: clamp(1.6rem, 3vw, 2.75rem); line-height: 1.15; margin: .25rem 0 1rem; color: var(--text); }

/* Content blocks */
p { color: var(--text); margin: .6rem 0; }
blockquote { margin: 1rem 0; padding: .75rem 1rem; border-left: 4px solid var(--accent); background: rgba(255,255,255,.04); color: var(--muted); }
h2 { font-size: clamp(1.25rem, 1.6vw, 1.75rem); margin: 1.25rem 0 .5rem; }
ol, ul { padding-left: 1.25rem; margin: .4rem 0 1rem; }
li { margin: .25rem 0; }

/* Badges / tags helper */
.tag { display: inline-block; padding: .25rem .5rem; font-size: .75rem; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: var(--text); margin-right: .4rem; }

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

/* Content wrapper utility */
.content { max-width: 860px; margin-inline: auto; padding-block: 0; }

/* Grid / Cards / Utilities */
.container { max-width: clamp(720px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Product ad style (footer sections) */
.product-ad { display: block; text-align: center; padding: .75rem; }
.product-ad a { color: var(--text); text-decoration: none; display: block; }
.product-ad a:hover { text-decoration: underline; }

/* Link & button treatments */
a, button, .btn, .cta {
  font-family: inherit;
  color: var(--text);
}
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 2px; outline: 0; }
button, .btn, .cta {
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(to bottom right, rgba(255,255,255,.12), rgba(255,255,255,.04));
  color: var(--text);
  padding: .6rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn--solid, .cta { background: linear-gradient(135deg, rgba(255,0,170,.9), rgba(255,0,170,.6)); border: 1px solid rgba(255,255,255,.4); }
.btn--outline { background: transparent; border: 1px solid rgba(255,255,255,.5); }
button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); }
button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--focus-shadow);
  outline-offset: var(--focus-offset);
  border-color: rgba(255,255,255,.9);
}

/* Focus treatment for links and form controls (enhanced accessibility) */
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255, 43, 179, 0.25); }

/* Typographic scale helpers */
h1, h2, h3 { letter-spacing: .2px; }

/* Print styles (readable, minimal) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: #fff; border: none; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
}
