/* Section: Theme Tokens */
:root {
  --bg: #0a0a14;
  --bg-2: #0b0b1a;
  --text: #f6f6ff;
  --muted: #c9b8d8;
  --accent: #ff2dbf;
  --accent-2: #ffd700;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.5);
  --radius: 14px;
  --focus-ring: 3px solid rgba(255, 45, 191, 0.9);
  --glass-blur: blur(12px);
  --glass-bg: rgba(255, 255, 255, 0.10);
  --glow: 0 0 12px rgba(255, 0, 140, 0.6);
}

/* Section: Global & Layout */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: UI-Sans-Serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial; }
body {
  margin: 0;
  color: var(--text);
  background-color: #0a0a14;
  /* Layered background: pink neon gradient + subtle scanlines/noise (CSS only) */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(255,0,140,.25), transparent 25%),
    linear-gradient(135deg, rgba(140,0,120,.25), rgba(0,0,0,.65) 60%, rgba(0,0,0,.75)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, normal, overlay;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a, button, .btn, .cta { cursor: pointer; }

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

/* Grid & Card helpers */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.tag { display:inline-block; padding: .25rem .5rem; border-radius: 999px; font-size: .75rem; color: #111; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* Section: Typography */
h1, h2 { margin: 0 0 .5rem; font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(1.8rem, 4vw + 1rem, 4rem); letter-spacing: .5px; text-shadow: 0 0 10px rgba(255,0,140,.6); }
h2 { font-size: clamp(1.25rem, 2.5vw + .75rem, 2.25rem); }
p { margin: .75rem 0; line-height: 1.6; color: #f4f0ff; }

/* Section: Header & Intro */
header {
  padding: 1.25rem;
  text-align: center;
  background: rgba(10,10,20,0.45);
  border-bottom: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
header h1 { color: #fff; text-wrap: balance; }
header .meta { color: var(--muted); font-size: .92rem; }

/* Section: Image frame (gallery / hero) */
.image-frame { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); display: block; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Content area */
.content { padding: 0; }

/* Section: Main article layout */
main { padding: 1rem; }
article { max-width: 800px; margin: 0 auto; }

/* Section: Blockquote styling */
blockquote {
  margin: .75rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: #fff;
  opacity: .95;
}
blockquote p { margin: 0; }

/* Section: Links & buttons (interactive states) */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }

/* Button variants */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.4);
  background: linear-gradient(to bottom, rgba(255,255,255,.28), rgba(255,255,255,.08));
  color: #0a0a0a; font-weight: 600; text-shadow: none; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.6);
}
.btn--outline:hover { background: rgba(255,255,255,.08); }

/* Section: Footer / product ads */
footer { padding: 1rem; margin-top: 1rem; color: var(--muted); }
.product-ad, .sponsored-page { text-align: center; }
.product-ad a, .sponsored-page a { display: block; padding: .75rem; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; transition: transform .15s ease, background .2s ease; }
.product-ad a:hover, .sponsored-page a:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.product-ad a:focus-visible, .sponsored-page a:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

/* Section: Accessibility helpers */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Section: Specialized selectors (as required) */
html, body, header, nav, main, article, footer, aside { scroll-behavior: smooth; }
.image-frame:hover { box-shadow: 0 12px 40px rgba(0,0,0,.65); }

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

/* Section: Responsive adjustments & prefers-color-scheme */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f3ff;
    --bg-2: #f0eaff;
    --text: #11111a;
    --muted: #555a70;
    --card: rgba(255,255,255,.85);
    --border: rgba(0,0,0,.15);
    --accent: #8b00ff;
    --accent-2: #b8860b;
    --shadow: 0 6px 18px rgba(0,0,0,.15);
  }
  body {
    background-image:
      radial-gradient(circle at 20% 0%, rgba(139,0,255,.18), transparent 25%),
      linear-gradient(135deg, rgba(200,180,255,.25), rgba(0,0,0,.05) 60%, rgba(255,255,255,.1)),
      repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
    background-blend-mode: overlay, normal, overlay;
  }
  header { background: rgba(255,255,255,.65); border-bottom-color: rgba(0,0,0,.15); }
  .image-frame { border-color: rgba(0,0,0,.15); background: rgba(255,255,255,.9); }
  a, .btn { color: var(--accent); }
}
