/* Palette & Backdrops */
:root {
  --bg: #0b0f14;
  --bg-2: #11161d;
  --text: #eafff1;
  --muted: #b7ffd1;
  --accent: #a6ff00;      /* lime */
  --accent-2: #ffb07a;     /* peach */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 6px 20px rgba(0,0,0,0.25);
  --radius: 14px;
}

/* 1. Global & Baseline */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: 
    radial-gradient(circle at 25% 10%, rgba(166,255,0,0.18), transparent 40%),
    radial-gradient(circle at 75% 25%, rgba(255,176,120,0.18), transparent 40%),
    linear-gradient(135deg, #0b0f14 0%, #111725 60%, #0b0f14 100%);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* subtle noise/scanline texture (pure CSS) */
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  opacity: 0.35;
  z-index: 0;
}
*, ::selection { -webkit-tap-highlight-color: transparent; }

/* 2. Layout Helpers & Components */
.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  color: var(--text);
}

.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.28);
  background: #000;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform 0.3s ease;
}
.image-frame:focus-within img,
.image-frame:hover img {
  transform: scale(1.03);
}

.content {
  color: var(--text);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.6;
  max-width: 60ch;
}

ul, li {
  margin: 0;
  padding: 0;
  list-style-position: outside;
}
ul { padding-left: 1.25rem; }
li { margin: .25rem 0; }

/* 3. Typography & Utilities */
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(166,255,0,0.18);
  color: var(--text);
  border: 1px solid rgba(166,255,0,0.4);
  text-transform: uppercase;
  letter-spacing: .4px;
}

a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: .5rem . eight?;
}

/* Button variants (solid and outline) */
.btn { border-radius: 999px; padding: .6rem 1rem; border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.08); color: var(--text); display: inline-block; font-weight: 600; }
.btn--solid { background: linear-gradient(135deg, rgba(166,255,0,0.9) 0%, rgba(166,255,0,0.75) 100%); border: 1px solid rgba(166,255,0,0.9); color: #0a0; text-shadow: 0 1px 0 rgba(0,0,0,.15); }
.btn--outline { background: rgba(0,0,0,0.0); border: 1px solid rgba(166,255,0,0.9); color: var(--text); }
a:hover, a:focus { text-decoration: underline; }

/* Focus visibility (AA) */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

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

/* 4. Structural Elements */
header, main, article, footer, aside {
  padding: 0;
  margin: 0;
}
header {
  display: grid;
  gap: .5rem;
  place-items: center;
  text-align: center;
  padding: 1.25rem;
  margin-block: 0.75rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
}
header h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0;
  letter-spacing: .2px;
}
header .meta {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--muted);
}
nav {
  display: inline-flex;
  gap: .5rem;
  flex-wrap: wrap;
}
nav a {
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
nav a:hover { background: rgba(255,255,255,0.08); text-decoration: underline; }

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

/* Hero / featured image wrap (using image-frame concept) */
.featured-image { display: grid; place-items: center; padding: .25rem 0 0; }
.featured-image img { width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 6px 16px rgba(0,0,0,0.25); }

/* Inline hero text adjustments for hierarchy */
article h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: .25rem 0 0.5rem; }

/* 5. Content framing and media within article */
article p { margin: .5rem 0; }
article h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin: .9rem 0 .4rem; }

/* 6. Footer / Ad panels (glass surfaces) */
footer { display: grid; gap: 1rem; padding: 1rem 0; place-items: center; }
footer .product-ad, footer .sponsored-page {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.75rem;
  width: min(420px, 90%);
  text-align: center;
  box-shadow: var(--shadow);
}
footer p { margin: .25rem 0 0; text-align: center; color: var(--muted); }

/* Link blocks styling in footer */
footer a { color: var(--text); }

/* Visual accessibility helpers for links in content */
article a { color: var(--accent); }
article a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* 7. Print (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  header, main, footer { background: #fff; color: #000; }
}

/* 8. Pretty minor responsive tweaks */
@media (max-width: 640px) {
  .container { padding-inline: 0.25rem; }
  header { padding: 1rem; }
}
