:root {
  --bg: #0b0b12;
  --bg-2: #0e1a10;
  --pink: #ff2e9a;
  --pink-2: #ff6fb1;
  --green: #1f7a4c;
  --green-2: #2b9a63;
  --text: #f6fffe;
  --muted: #bddbd0;
  --surface: rgba(15, 23, 20, 0.65);
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: 2px solid var(--green);
  --focus-offset: 2px;
  --container-max: clamp(740px, 90vw, 1200px);
}

/* Global, mobile-first base */
html, body {
  height: 100%;
}
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background-color: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  background-image:
    /* Pink checkerboard layer (subtle) */
    linear-gradient(45deg, rgba(255, 0, 140, .25) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 0, 140, .25) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 0, 140, .25) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 0, 140, .25) 75%);
  background-size: 32px 32px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-repeat: repeat;
  /* Layered gradient overlay for depth (pure CSS) */
  background-blend-mode: overlay;
}
body::before {
  /* Subtle scanlines/noise effect (pure CSS) */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to bottom, rgba(0,0,0,.08) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: 0.55;
}
@media (prefers-reduced-motion: reduce) {
  html, body {
    background-attachment: scroll;
  }
  body::before { display: none; }
}

/* Layout helpers */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
}
.image-frame {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #111;
  display: block;
  box-shadow: 0 6px 18px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.04);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.content {
  padding: 1rem 0;
  color: var(--text);
  font-size: clamp(14px, 1.2vw + 12px, 17px);
  line-height: 1.55;
}
.tag {
  display: inline-block;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  background: rgba(27, 146, 83, 0.25);
  color: #eafff4;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid rgba(27, 146, 83, 0.6);
}
.product-ad {
  display: block;
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: linear-gradient(to bottom, rgba(27, 146, 83, 0.25), rgba(27, 146, 83, 0.15));
  border: 1px solid rgba(27, 146, 83, 0.6);
  color: #eafff4;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.product-ad:hover { transform: translateY(-2px); }
.product-ad:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }

/* Typography targets (section headers, etc.) */
h1, h2, h3 {
  font-family: inherit;
  margin: 0.35em 0;
  line-height: 1.25;
}
h1 {
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  letter-spacing: .2px;
}
h2 {
  font-size: clamp(1.15rem, 1.6vw, 1.6rem);
  color: #eafff4;
}
p { margin: 0.6em 0; }

/* Links and buttons (interactive) */
a, button, .btn, .cta {
  cursor: pointer;
  text-decoration: none;
  color: #eafff4;
  outline: none;
}
a { color: var(--green); }
a:hover { text-decoration: underline; color: var(--green-2); }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; text-decoration: underline; }

/* Buttons variants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.6);
  background: linear-gradient(to bottom right, rgba(0,0,0,.25), rgba(255,0,140,.6) 60%);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.98; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }

/* Outline CTA used in hero sections or inline */
.cta {
  background: transparent;
  border: 1px solid rgba(255,255,255,.8);
  color: #eafff4;
}
.cta:hover { background: rgba(255,255,255,.05); }

/* Header and nav styling (semantic sections) */
header, nav, main, article, aside, footer {
  display: block;
}
header {
  text-align: center;
  padding: 1.75rem 1rem 2rem;
}
header h1 { color: #eafff4; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
header .meta {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
nav {
  margin-top: 0.75rem;
}
nav a {
  display: inline-block;
  padding: .4rem .65rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  color: #eafff4;
}
nav a:hover { text-decoration: underline; }

/* Main content area */
main {
  padding: 0 1rem 2rem;
}
.content {
  padding: 0;
}
.main-hero {
  display: grid;
  gap: 1rem;
}
.featured-image {
  width: 100%;
}
@media (min-width: 860px) {
  .main-hero { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* Article content interplay with glass panels where appropriate */
article { padding: 0 0; }
article h1 { margin-top: 0; }

/* Footer and ad sections as glass panels for cohesion */
footer {
  padding: 1rem;
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.15);
}
footer .product-ad, footer .sponsored-page {
  margin: .5rem 0;
  text-align: center;
}
footer p { color: var(--muted); font-size: 0.95rem; margin: 0.25rem 0; }

/* Print styles for readability (basic) */
@media print {
  body::before { display: none; }
  body {
    background: white;
    color: #000;
    -webkit-print-color-adjust: exact;
  }
  a { text-decoration: underline; color: #000; }
  .glass, .card { background: #fff; border: none; box-shadow: none; }
}
