:root {
  /* Tokens */
  --bg: #041b0f;
  --bg-2: #0a2511;
  --text: #e8fff6;
  --muted: #a8d3b3;
  --accent: #1be7e2;
  --accent-2: #7bd389;
  --surface: rgba(12, 24, 20, 0.22);
  --surface-2: rgba(15, 28, 22, 0.28);
  --card: rgba(14, 28, 22, 0.28);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

html, body, header, nav, main, article, aside, footer {
  min-height: 0;
}

/* Base / Theme */
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: 
    radial-gradient(circle at 20% 0%, rgba(22, 255, 230, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 80% 15%, rgba(0, 200, 150, 0.12) 0%, transparent 40%),
    linear-gradient(135deg, rgba(2, 26, 14, 0.96) 0%, rgba(3, 28, 22, 0.92) 60%, rgba(5, 18, 14, 0.95) 100%);
  background-blend-mode: screen, overlay, normal;
  font-family: ui-system, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans";
  font-size: clamp(14px, 1.2vw + 12px, 18px);
  line-height: 1.5;
  -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 scanlines / noise overlay (pure CSS) */
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  opacity: 0.28;
}

a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, transform .15s ease;
  -webkit-taplatform: none;
}

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

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(680px, 78vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(27, 232, 226, 0.15);
  border: 1px solid rgba(27, 232, 226, 0.55);
  color: #d9fffb;
  font-size: 0.75rem;
}

.image-frame, .image-frame img {
  border-radius: 12px;
}

.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  background: rgba(0,0,0,0.25);
}

/* Specific image frame fallback (when not using .image-frame) */
.featured-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  background: rgba(0,0,0,0.25);
}
.featured-image img { width: 100%; height: auto; display: block; }

/* Glass panels (frosted glass) */
.glass {
  background: rgba(2, 12, 10, 0.22);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  /* Fallback when backdrop-filter is not supported */
}
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .glass {
    background: rgba(2, 12, 10, 0.6);
    border: 1px solid rgba(255,255,255,0.4);
  }
}

/* Typography / hero */
header {
  text-align: center;
  padding: 1.25rem 0 0.5rem;
}
header h1 {
  font-size: clamp(1.8rem, 2.3vw + 1rem, 3rem);
  line-height: 1.05;
  margin: 0.25rem 0 0.25rem;
  letter-spacing: .4px;
  color: var(--text);
}
header .meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.25rem 0 0.75rem;
}
nav {
  margin-top: .5rem;
}
nav a {
  display: inline-block;
  padding: .5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.15);
  text-decoration: none;
  color: var(--text);
}
nav a:hover { transform: translateY(-1px); }

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

/* Content styling for readability on glass */
.content p, .content li, section p, section li, article p {
  color: #eafff5;
}
section ul { padding-left: 1.25rem; margin: 0.5rem 0; color: var(--muted); }

/* Quote styling */
blockquote {
  margin: .5rem 0;
  padding: .5rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  color: #eaffff;
}

/* Links & focus states */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
a:hover { text-decoration: underline; }

/* CTAs */
.btn {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  font-weight: 600;
}
.btn:hover { background: rgba(0,0,0,.35); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  border: 1px solid rgba(26, 230, 224, 0.8);
  color: var(--accent);
}
.cta {
  font-weight: 700;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.28);
}
.cta:hover { background: rgba(0,0,0,.38); }

/* Product ad / footer blocks */
.product-ad {
  padding: .75rem;
  border-radius: 12px;
  background: rgba(2, 26, 18, 0.28);
  border: 1px solid rgba(0,0,0,.25);
  display: inline-block;
  margin: .25rem;
}
.product-ad a { display: block; padding: .5rem; color: var(--text); text-decoration: none; text-align: center; }
.product-ad a:hover { background: rgba(0,0,0,.25); }

/* Footer layout */
footer {
  padding: 1rem 0;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 1rem;
}
footer .sponsored-page { display: inline-block; margin: .25rem; }

/* Utilities */
.ul { padding-left: 1.25rem; }

@media (min-width: 640px) {
  .container { padding-inline: 0; }
  header { padding-top: 1.25rem; }
}

@media (min-width: 800px) {
  .container { max-width: 980px; }
}

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

/* Typographic rhythm */
h2 {
  font-size: clamp(1.25rem, 1.2rem + 1vw, 1.75rem);
  margin: 0.25rem 0 0.5rem;
  color: var(--text);
}
p { margin: 0.5rem 0; }

/* Print styles */
@media print {
  body { background: white; color: black; }
  a, a:visited { color: black; }
  .glass { background: #f0f0f0; border: 1px solid #ccc; }
}
 
/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}