/* Base tokens */
:root{
  --bg: #0e141c;
  --bg-2: #171c24;
  --text: #e9e8f3;
  --muted: #a7a9b6;
  --accent: #ff2e97;
  --accent-2: #e6008a;
  --glass: rgba(18, 22, 28, 0.28);
  --glass-2: rgba(18, 22, 28, 0.22);
  --border: rgba(255,255,255,.25);
  --shadow: 0 8px 20px rgba(0,0,0,.25);
  --focus: 0 0 0 3px rgba(255,0,168,.75);
}

/* Layered background: gradient + nebula hints + scanlines + soft noise */
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body{
  margin: 0;
  color: var(--text);
  background-color: #000;
  background-image:
    radial-gradient(circle at 25% 15%, rgba(255,0,140,.20), transparent 40%),
    radial-gradient(circle at 75% 0%, rgba(0,255,170,.15), transparent 30%),
    linear-gradient(135deg, #0b0f14 0%, #141b24 50%, #0b0f14 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: screen, screen, overlay, normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* Layout utilities */
.container{ max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding: 0 1rem; }
.grid{ display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card{ background: var(--glass); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card{ background: rgba(18,22,28,.75); border: 1px solid rgba(255,255,255,.45); }
}
.image-frame{ width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.image-frame img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* Typography & content flow */
h1,h2{ margin: 0 0 .5rem; line-height: 1.15; color: var(--text); }
p{ margin: 0 0 1rem; color: var(--text); }
blockquote{ border-left: 3px solid rgba(255,255,255,.4); margin: .5rem 0; padding: .25rem 1rem; color: var(--muted); font-style: italic; }

/* Header / hero shell */
header{ text-align: center; padding: 2rem 1rem; }
header h1{ font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.12; margin-bottom: .25rem; }
header .meta{ color: var(--muted); font-size: clamp(.85rem, 2.5vw, 1rem); }

/* Main content */
main{ padding: 0 1rem; }
article{ display: grid; gap: 1rem; }

/* Interactive elements (links, buttons) */
a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible{
  outline: none; box-shadow: var(--focus); outline-offset: 2px;
}
button, .btn, .cta{ font-family: inherit; font-weight: 700; cursor: pointer; border: 0; border-radius: 999px; }

/* Primary / secondary CTAs */
.btn{ display: inline-block; padding: .75rem 1.25rem; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,0,170,.95), rgba(255,0,170,.65)); color: #fff;
  transition: transform .2s ease, background .2s ease, box-shadow .2s;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.4);
}
.btn:hover{ transform: translateY(-1px); background: linear-gradient(135deg, rgba(255,0,170,.98), rgba(255,0,170,.75)); }
.btn:active{ transform: translateY(0); }
.btn.outline{ background: transparent; border: 1px solid rgba(255,255,255,.8); color: var(--text); }

/* Glass panels for content areas (fallback handled via @supports) */
.section{ padding: .75rem; }

ul, ol{ padding-inline-start: 1.25rem; margin-block: .75rem 1rem; }
li{ margin: .25rem 0; }

/* Helpers for light-weight sections */
.tag{ display: inline-block; padding: .25rem .5rem; border-radius: 6px; background: rgba(255,255,255,.15); color: #fff; font-size: .75rem; }

/* Header / nav pills if present */
nav{ display: inline-flex; gap: .5rem; align-items: center; justify-content: center; padding: .25rem 0; }

/* Footer */
footer{ padding: 1rem; display: grid; gap: .75rem; justify-items: center; }

/* Responsive tweaks */
@media (min-width: 800px){
  header{ padding: 3rem 1rem; }
  main{ padding: 1.75rem 0; }
}
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* Print readability (small) */
@media print{
  body{ background: #fff; color: #000; }
  header, main, footer{ padding: 0; }
}
