/* Base tokens */
:root {
  --bg: #0b0623;
  --bg-2: #140a25;
  --text: #f7eaff;
  --muted: #cbb8d5;
  --accent: #ff2f9e;      /* neon pink */
  --accent-2: #ffd7f0;    /* pastel pink */
  --card: rgba(255,255,255,.08);
  --card-strong: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.25);
  --shadow: 0 6px 18px rgba(0,0,0,.25);
  --focus: 2px solid rgba(255, 47, 158, 0.95);
}

/* Reset & base layout */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
}

/* Background layering: gradient + neon hex honeycomb overlay + subtle scanlines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  /* subtle neon glow sweep across the frame */
  background: radial-gradient( circle at 20% 0%, rgba(255,47,158,.20), transparent 40% ),
              radial-gradient( circle at 80% 20%, rgba(255,150,210,.12), transparent 40% ),
              linear-gradient(135deg, rgba(10,0,20,.25), rgba(0,0,0,.15) 60%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  /* hex honeycomb pattern (inline SVG data URL) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'><defs><pattern id='p' width='60' height='52' patternUnits='userSpaceOnUse'><polygon points='30,6 54,16 54,46 30,56 6,46 6,16' fill='none' stroke='%23ff2ec7' stroke-width='2'/></pattern></defs><rect width='100%' height='100%' fill='url(%23p)'/></svg>");
  background-size: 60px 52px;
  opacity: .25;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { display: none; }
}

/* Layout primitives */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }
.card, .image-frame { background: var(--card); border: 1px solid var(--border); border-radius: 12px; }

/* Typography scaling (fluid) */
h1, h2, h3 { color: var(--text); margin: .25rem 0; }
p { color: var(--text); margin: .75rem 0; }
h1 { font-size: clamp(1.4rem, 2.5vw + 1rem, 2.6rem); line-height: 1.15; letter-spacing: .2px; }
h2 { font-size: clamp(1.05rem, 1.8vw + .5rem, 1.6rem); line-height: 1.25; }
h1 + p { margin-top: .25rem; }

/* Section scaffolding styles (header/main/footer) */
header, main, footer, aside { padding: 1rem; z-index: 1; position: relative; }

/* Glass panels (frosted) with backdrop-filter support and fallbacks */
.card, .product-ad, .image-frame {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card, .product-ad, .image-frame { background: rgba(255,255,255,.14); backdrop-filter: none; }
}
a, button, .btn, .cta {
  color: var(--accent-2);
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}
a:hover, a:focus { text-decoration: underline; outline: none; color: #ffe0f0; }
:focus-visible { outline: 3px solid rgba(255,47,158,.95); outline-offset: 2px; }

/* Header styling with a compact hero feel */
header {
  padding: 1.75rem 1rem;
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,.25);
  background: rgba(8,6,14,.45);
  backdrop-filter: blur(10px);
}
header h1 {
  font-weight: 700;
  margin-bottom: .25rem;
}
header .meta {
  font-size: .92rem;
  color: var(--muted);
}
nav { margin-top: .5rem; }
nav a { color: var(--accent-2); border-bottom: 1px solid rgba(255,255,255,0); padding-bottom: 2px; }

/* Main content layout */
main { padding: 1rem 0; }
article { display: block; padding: .5rem; }

/* Featured image frame (image-frame class) and fallback .featured-image */
.image-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: auto;
  transition: transform .3s ease;
}
.image-frame:hover img { transform: scale(1.01); }

/* Content helpers (even if not all used by HTML) */
.content { padding: 0.75rem 0; color: var(--text); }
ul, li { margin: 0; padding: 0; list-style: disc; padding-left: 1.25rem; color: var(--text); }
ol { padding-left: 1.25rem; }

/* Product ad (footer area) */
.product-ad { padding: .9rem; display: inline-block; margin: .25rem; min-width: 180px; }
.product-ad a { display: block; padding: .6rem 0; text-align: center; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
.product-ad a:hover { background: rgba(255,255,255,.12); }

/* Footer text block */
footer { display: block; padding-top: .5rem; color: var(--muted); }

/* Link & button variant styling */
.btn {
  display: inline-block; padding: .65em 1em; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: var(--accent);
  color: white; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 14px rgba(255,47,158,.45);
}
.btn:hover { background: #e52a8f; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: none;
}
.btn--outline:hover { background: rgba(255,255,255,.08); }

/* Utilities (grid & card helpers) */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card + .card { margin-top: .75rem; }

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

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