/* Base Tokens and Setup */
:root{
  --bg: #041a14;
  --bg-2: #0b2b1f;
  --text: #f6fffe;
  --muted: #c4f3e0;
  --accent: #2bd27b;
  --accent-2: #7affbd;
  --card: rgba(255,255,255,.08);
  --card-2: rgba(0,0,0,.25);
  --border: rgba(255,255,255,.25);
  --shadow: 0 6px 18px rgba(0,0,0,.28);
  --radius: 12px;
  --focus: 0 0 0 3px rgba(43,210,123,.6);
  --text-on-dark: #eafff2;
}

/* Base / Reset */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
body {
  margin: 0;
  color: var(--text);
  background: #061b15;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  /* Layered background base with gradient + emerald glows (no images) */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(0,220,140,.25), transparent 40%),
    radial-gradient(circle at 80% 40%, rgba(0,150,110,.20), transparent 40%),
    linear-gradient(135deg, var(--bg), var(--bg-2) 60%, #041404 100%);
  background-attachment: fixed;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
/* Subtle glow overlays (pure CSS) */
body::before {
  background: 
    radial-gradient( circle at 15% 20%, rgba(0,255,180,.15), transparent 40% ),
    radial-gradient( circle at 85% 70%, rgba(0,180,120,.12), transparent 40% );
  mix-blend-mode: screen;
  opacity: 0.95;
}
body::after {
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  opacity: .6;
}
a { color: var(--accent-2); text-decoration: none; }
a:focus-visible, a:hover { text-decoration: underline; outline: none; }

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

/* Glass / Frosted panels */
.glass {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .glass { background: rgba(255,255,255,.08); }
}

/* Header / navigation */
header {
  display: grid;
  gap: .5rem;
  text-align: center;
  padding: 1rem;
  margin: 1rem auto;
}
header h1 { 
  font-size: clamp(1.6rem, 1.2rem + 2.8vw, 3rem);
  line-height: 1.08;
  margin: 0;
  font-weight: 800;
  color: var(--text-on-dark);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
header .meta { color: var(--muted); font-size: .92rem; }

/* Nav link button style in header */
header nav a {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-weight: 600;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
header nav a:hover { transform: translateY(-1px); background: rgba(255,255,255,.14); }
header nav a:focus-visible { outline: none; box-shadow: var(--focus); }

/* Main content / article */
main { padding: 0 1rem; position: relative; z-index: 1; }
article { display: grid; gap: 1rem; padding: 0.25rem; }
.featured-image { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 8px 22px rgba(0,0,0,.35); background: #000; }
.image-frame { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Typography scale for content */
h2 { font-size: clamp(1.4rem, 0.8rem + 2vw, 2.2rem); margin: .25rem 0 0.4rem; color: #fff; }
h3 { font-size: clamp(1.15rem, 0.6rem + 1.8vw, 1.6rem); margin: .75rem 0 .4rem; color: #eafff7; }
p { font-size: clamp(0.95rem, 0.6vw + .9rem, 1.05rem); line-height: 1.5; color: #eafff5; margin: .5rem 0; }

/* Lists */
ul { margin: .5rem 0 1rem 1.25rem; padding: 0; }
li { margin: .35rem 0; }

/* Content area helper */
.content { padding: .5rem; }

/* Glass panels in content (where appropriate) */
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1rem; }

/* Images within content sections using frame rules */
.image-frame { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 18px rgba(0,0,0,.3); }

/* Footer / ads panels */
footer { padding: 1rem 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.product-ad, .sponsored-page { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 1rem; text-align: center; min-height: 72px; display: flex; align-items: center; justify-content: center; }
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }

/* Utility / decorative */
.tag {
  display: inline-block;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  font-size: .75rem;
  color: var(--text);
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Buttons / CTAs (solid and outline variants) */
a.btn, button.btn { padding: .75rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); font-weight: 700; cursor: pointer; display: inline-block; text-align: center; }
a.btn { text-decoration: none; }
.btn--solid { background: var(--accent); color: #03240a; border: none; }
.btn--outline { background: rgba(255,255,255,.08); color: var(--text); border: 1px solid rgba(124, 239, 196, .9); }
a.btn:hover, button.btn:hover { transform: translateY(-1px); }
a.btn:focus-visible, button.btn:focus-visible { outline: none; box-shadow: var(--focus); }

/* Accessibility: high contrast text over glass when on small screens */
@media (prefers-contrast: more) {
  :root { --text: #ffffff; }
  .glass { background: rgba(255,255,255,.12); }
}

/* Layout helpers for responsive tweaks */
@media (min-width: 700px) {
  footer { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print styles */
@media print {
  body { background: #fff; color: #000; }
  header, nav, footer { display: none; }
  article { padding: 0.5rem; }
}