:root {
  --bg: #0a0710;
  --bg-2: #140a1a;
  --text: #eef2f7;
  --muted: #c8bfd0;
  --accent: #ff2a7a;
  --accent-2: #ff5aa9;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0,0,0,.4);
  --radius: 14px;
  --focus: 3px solid #ffd0e8;
}

html, body {
  height: 100%;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.5;
  background: linear-gradient(135deg, rgba(139,0,0,.9) 0%, rgba(255,0,120,.85) 60%, rgba(0,0,0,.9) 100%), #000;
  background-attachment: fixed;
  overflow-x: hidden;
  isolation: isolate;
}

/* Layered background: gradient + subtle scanlines/noise (pure CSS) */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,40,120,.15), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255,0,80,.12), transparent 40%),
    linear-gradient(135deg, rgba(118,0,20,.25), rgba(0,0,0,.25) 60%);
  z-index: -2;
  pointer-events: none;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,0,50,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(255,0,100,.03) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: .6;
  z-index: -1;
  pointer-events: none;
}

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

.grid { display: grid; gap: 1rem; }

/* Glass panel base (fallback included) */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .glass { background: rgba(255,255,255,.12); }
}

/* Layout elements */
header, main, footer, aside {
  padding: 1rem;
  margin: 0;
}

/* Header styling with clear typographic hierarchy */
header {
  display: grid;
  gap: .5rem;
  place-items: center;
  text-align: center;
  padding: 2rem 1rem;
}
header h1 {
  font-size: clamp(1.6rem, 4vw + .5rem, 2.8rem);
  line-height: 1.15;
  margin: .15rem 0;
  color: var(--text);
  letter-spacing: .2px;
}
header .meta {
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
  color: var(--muted);
}
nav {
  display: inline-flex;
  gap: .5rem;
  padding-top: .25rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .3rem .6rem;
  border-radius: 6px;
}
nav a:hover { text-decoration: underline; }

/* Main content area (article within) */
main {
  padding: 1rem 0 2rem;
}
article {
  display: grid;
  gap: 1rem;
}
.featured-image {
  width: 100%;
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Content helpers */
.content { padding: .5rem 0; }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: .75rem 0 .25rem; color: #fff; }
p { color: #e9e4ee; margin: .6rem 0; }
blockquote {
  border-left: 4px solid var(--accent);
  padding-left: .75rem;
  color: #fff;
  opacity: .95;
  margin: .5rem 0;
  font-style: italic;
}
ol, ul { padding-left: 1.25rem; margin: .4rem 0 1rem; }
li { margin: .3rem 0; }

/* Lists & badges */
.tag {
  display: inline-block;
  font-size: .75rem;
  padding: .25em .5em;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad {
  display: block;
}
.product-ad a {
  display: block;
  text-align: center;
  color: #fff;
  text-decoration: none;
}
.product-ad p { margin: .25rem 0; font-weight: 600; }

/* Utility grid & cards (responsive helpers) */
.container.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }

/* Card styling (compact, glassy) */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .9rem;
  box-shadow: var(--shadow);
}
.card h3 { margin: .2rem 0 .4rem; }

/* Buttons & links (interactive, accessible) */
a, button { font-family: inherit; font-weight: 600; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 208, 232, 0.9);
  border-radius: 6px;
}
.btn, .cta { display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.15rem; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; background: var(--accent); color: #fff; transition: transform .15s ease, background .25s ease; }
.btn:hover, .cta:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--accent);
}
.btn--outline:hover { background: rgba(255,42,122,.15); }

/* Focus states for interactive elements (high contrast) */
:focus-visible {
  outline: none;
  outline: 3px solid #ffd0e8;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Form defaults (if present in future) */
input, select, textarea {
  font: inherit;
  color: var(--text);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .5rem .75rem;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,42,122,.25);
}
label { display: block; margin-bottom: .25rem; font-size: .9rem; color: var(--muted); }

/* Footer styling with glass panel vibe */
footer { display: grid; gap: .75rem; padding-top: 1rem; }

/* Print styles for readability (small) */
@media print {
  html, body { background: #fff; color: #000; }
  header, nav, footer { page-break-after: avoid; }
  .glass { background: #fff; border: 1px solid #ccc; box-shadow: none; }
  a, button { color: #000; }
}
 
/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
