html, body, header, nav, main, article, footer, aside {
  display: block;
}

:root {
  /* Palette derived from green + navy theme */
  --bg: #031019;
  --bg-2: #0a1a2b;
  --surface: rgba(8, 24, 32, 0.60);
  --surface-2: rgba(8, 24, 40, 0.50);
  --text: #eafff3;
  --muted: #a6d7a3;
  --accent: #2be087;
  --accent-2: #29e07a;
  --border: rgba(110, 255, 170, 0.40);
  --card: rgba(6, 20, 28, 0.60);
  --shadow: 0 8px 26px rgba(0,0,0,.40);
  --ring: 0 0 0 3px rgba(42, 224, 131, 0.55);
  --radius: 12px;
}

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

html, body { height: 100%; }
html { line-height: 1.15; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background: linear-gradient(135deg, rgba(0, 80, 40, 0.90) 0%, rgba(0, 20, 50, 0.90) 60%), #020b12;
  font-family: ui-system, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  isolation: isolates;
}
body::before {
  /* subtle gradient wash */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% -10%, rgba(0,255,120,.10), transparent 40%),
    linear-gradient(135deg, rgba(0, 40, 0, .15), rgba(0, 0, 0, .0) 40%);
  pointer-events: none;
}
body::after {
  /* subtle scanlines */
  content: "";
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background-image: linear-gradient(to bottom, rgba(0,0,0,.0) 0, rgba(0,0,0,.22) 100%);
  background-repeat: repeat-x;
  background-size: 100% 2px;
  opacity: .25;
  pointer-events: none;
  z-index: -1;
}
@media (prefers-color-scheme: light) {
  body {
    background: #f7f9fb;
    color: #0b1a14;
  }
  body::before { opacity: .08; }
  body::after { opacity: .15; }
}

header {
  margin: 1rem auto;
  padding: min(4vw, 1.5rem);
  max-width: 1100px;
  border-radius: var(--radius);
  background: rgba(8, 24, 40, 0.40);
  border: 1px solid rgba(64, 255, 170, .28);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  box-shadow: var(--shadow);
  text-align: center;
}
header h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.75rem, 3.2vw + 0.5rem, 3.25rem);
  line-height: 1.05;
  letter-spacing: .4px;
}
header .meta {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.85rem, 0.9vw, 1rem);
}

main {
  padding: 1rem 0 2rem;
}
.article-wrap { /* optional wrapper if used */ }

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

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: . nine; /* intentionally invalid to test fallback? remove this; keep valid */
}
.card { border-radius: 12px;
  padding: .75rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.card:hover { transform: translateY(-1px); transition: transform .2s ease; }

.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(110, 255, 180, 0.40);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  background: #000;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.image-frame:hover img { transform: scale(1.02); }

.content {
  color: var(--text);
  line-height: 1.6;
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.125rem);
  margin: 0;
}
.content p { margin: .75rem 0; }
.content ul { padding-left: 1.25rem; margin: .5rem 0; }
.content li { margin: .25rem 0; }

.product-ad {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(6,20,28,.42);
  border: 1px solid rgba(0,255,170,.40);
  text-align: center;
  min-width: 160px;
}
.product-ad a { color: var(--text); text-decoration: none; display: block; }

footer {
  padding: 1rem 0 2rem;
  text-align: center;
}
footer .product-ad,
footer .sponsored-page {
  display: inline-block;
  padding: .75rem 1rem;
  margin: .25rem;
  border-radius: 12px;
  background: rgba(6, 20, 28, 0.40);
  border: 1px solid rgba(0, 255, 170, .40);
  min-width: 160px;
}
footer p { margin: .5rem 0 0; font-size: .85rem; color: var(--muted); }

a, button, .btn, .cta {
  text-decoration: none;
  color: var(--text);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
a:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  outline-offset: 2px;
}

.btn {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(64,255,170,.6);
  background: linear-gradient(135deg, rgba(10,40,22,.95), rgba(0,30,16,.95));
  color: #eafff6;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  border: 1px solid rgba(64,255,170,.75);
  color: var(--text);
}
.btn--outline:hover { background: rgba(64,255,170,.08); }

.cta { composes: btn; }

a:hover { text-decoration: underline; text-underline-offset: 2px; }

ul { margin: 0 0 0 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Utility: simple glass on sections if present */
section {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(6,20,28,.28);
  border: 1px solid rgba(110,255,170,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin: .75rem 0;
}
@supports not (backdrop-filter: blur(8px)) {
  section { background: rgba(6,20,28,.66); }
}

/* Typography helpers */
h2 {
  font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem);
  margin: .75rem 0 .25rem;
  color: #eafff2;
}
h3 { font-size: clamp(1.1rem, .9vw + .9rem, 1.25rem); margin: .5rem 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; box-shadow: none; }
  a { text-decoration: underline; }
}
@media (prefers-color-scheme: light) {
  html, body {
    background: #f7f9fb;
    color: #0b1b12;
  }
  header {
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(0,0,0,.08);
  }
  section {
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(0,0,0,.08);
  }
  .product-ad, .sponsored-page { background: rgba(255,255,255,.9); border-color: rgba(0,0,0,.08); }
}
