:root {
  /* Palette: pastel yellow cosmic nebula + galaxy purple accents */
  --bg: #0a0a14;
  --bg-2: #1a0f2e;
  --text: #eaf0ff;
  --muted: #cbd5e1;
  --accent: #a17cff;      /* galaxy purple */
  --accent-2: #ffd86b;    /* pastel yellow */
  --panel: rgba(255, 255, 255, 0.12);    /* glass panel base (with fallback) */
  --panel-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.25);
  --focus: #9bd6ff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }
html { color-scheme: dark light; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 235, 140, 0.25) 0 20%, transparent 40%),
    radial-gradient(circle at 80% 28%, rgba(160, 94, 246, 0.25) 0 22%, transparent 40%),
    linear-gradient(135deg, #0b0a14 0%, #1a0f2e 60%, #0b0b14 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 4px);
  background-blend-mode: screen, screen, normal, overlay;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a, button, .btn, .cta { cursor: pointer; color: inherit; }

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

header {
  padding-block: 1rem;
  padding-inline: 0.5rem;
  text-align: center;
}

header h1 {
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3rem);
  line-height: 1.15;
  margin: 0.25rem 0 0.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .2px;
}

header .meta {
  color: var(--muted);
  font-size: clamp(0.88rem, 1vw, 1rem);
  margin: 0.25rem 0 0;
}

main { padding: 0.5rem 0 2rem; }

article {
  background: rgba(255, 255, 255, 0.18); /* fallback glass */
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.75rem auto;
  max-width: min(900px, 92%);
  box-shadow: var(--shadow);
  /* Glass backdrop (modern browsers) */
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  article {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.featured-image { margin: 0 0 0.75rem; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.image-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.content { padding: 0.25rem 0; }

h2, h3 { color: #fff; margin: 0.75rem 0 0.25rem; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.125rem); margin: 0.5rem 0 1rem; }

ul, ol { padding-left: 1.25rem; margin: 0.25rem 0 0.75rem; color: var(--text); }
li { margin: 0.25rem 0; }

blockquote {
  margin: 0.75rem 0;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--accent);
  color: #fff;
  background: rgba(0,0,0,0.18);
  border-radius: 6px;
}

.image-frame, .image-frame img { will-change: transform; }

.product-ad {
  display: block;
  padding: 0.75rem;
  margin: 0.5rem 0;
  text-align: center;
  border-radius: 12px;
  background: rgba(161,124,255,0.20);
  border: 1px solid rgba(161,124,255,0.50);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.product-ad:hover { transform: translateY(-1px); }
.product-ad:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }

footer {
  padding: 1rem 0;
  margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.25);
}
footer p { text-align: center; color: var(--muted); margin: 0.5rem 0; }

.sponsored-page { display: inline-block; margin: 0.25rem; }

@media (min-width: 720px) {
  .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
  .container { padding-inline: 1.25rem; }
  article { padding: 1.25rem; }
}

a {
  color: var(--accent-2);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

button, .btn, .cta {
  font: inherit;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(161,124,255,0.95);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.3s ease, border-color 0.3s ease;
}
.btn { background: rgba(161,124,255,0.95); border-color: rgba(161,124,255,0.95); }
.btn.secondary { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.40); color: #fff; }
.cta { background: rgba(255,214,107,0.95); border-color: rgba(255,214,107,0.95); color: #1b170b; }

button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); }
button:active, .btn:active, .cta:active { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  .image-frame, .featured-image { display: none; }
  article { background: transparent; border: none; box-shadow: none; }
}