/* Palette & tokens */
:root {
  --bg: #0a0a12;
  --bg-2: #13031a;
  --text: #f7eaff;
  --muted: #d8cfe7;
  --accent: #ff5faa;      /* pink */
  --accent-2: #ffd96f;    /* pastel yellow */
  --surface: rgba(255, 246, 210, 0.14);
  --surface-2: rgba(255, 246, 210, 0.22);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  --radius: 12px;
  --focus: 3px solid #ffffff;
  --focus-offset: 2px;
  --container-max: min(1100px, 92vw);
}

/* Baseline */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  background-image:
    radial-gradient(circle at 0 0, rgba(255, 0, 120, 0.25) 2px, transparent 3px),
    radial-gradient(circle at 8px 8px, rgba(255, 210, 0, 0.18) 2px, transparent 3px),
    linear-gradient(135deg, rgba(12,0,22,0.5) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(#130317, #0a0a12);
  background-blend-mode: overlay, overlay, normal, normal;
  background-size: 16px 16px, 16px 16px, 100% 100%, 100% 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0.04) 0 1px, transparent 1px 2px);
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.6;
}
@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
}

/* Layout primitives */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding: 0 1rem; }

/* Header / Hero */
header { padding-block: 1.25rem; text-align: center; }
header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.6vw + 1rem, 3rem);
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--text);
}
header { /* subtle glassy header fallback on very dark bg */ 
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,.15);
  padding-block: .9rem;
  border-radius: 0 0 12px 12px;
  backdrop-filter: saturate(1.05) blur(6px);
  -webkit-backdrop-filter: saturate(1.05) blur(6px);
}

/* Main content */
main { display: grid; place-items: start center; padding: 1rem 1rem 2rem; }
article { width: min(100%, 1100px); }

/* Image frame */
.image-frame {
  width: min(92vw, 820px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
  background: #000;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05);
}

/* Glass panel utility (for content blocks) */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { 
    background: var(--surface-2);
  }
}

/* Content helpers */
.content { padding: 1rem; color: var(--text); line-height: 1.6; }

/* Utility grid + cards + tags (future-proof) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  background: #ffd96f;
  color: #2a1b00;
}

/* Product ad / sponsored sections (footer) */
.product-ad, .sponsored-page {
  display: inline-block;
  margin: .25rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: rgba(255,246,210,.14);
  border: 1px solid rgba(255,255,255,.28);
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: inline-block; padding: 0 0; }
.product-ad:hover, .sponsored-page:hover { transform: translateY(-1px); background: rgba(255,246,210,.20); }

/* Links & controls */
a, button, .btn, .cta {
  font-family: inherit;
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  padding: .65rem 1rem;
  border-radius: 8px;
  display: inline-block;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
a:hover, button:hover, .btn:hover, .cta:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.45);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.25), 0 0 0 6px rgba(0,0,0,.25);
  border-color: rgba(255,255,255,.75);
  outline-offset: var(--focus-offset);
}
a:focus-visible { text-decoration: underline; }

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

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