/* Section: Base */
:root {
  --bg: #04070d;
  --bg-2: #0b0f14;
  --text: #eafaf5;
  --muted: #a8b6c0;
  --accent: #39ff77;
  --accent-2: #e6e6e6;
  --glass: rgba(255, 255, 255, 0.09);
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: clamp(14px, 1.2vw + 12px, 18px);
  line-height: 1.55;
  background: 
    radial-gradient(circle at 15% 0%, rgba(0,255,120,.08), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(0,255,120,.05), transparent 40%),
    linear-gradient(135deg, #05070d 0%, #0b1117 40%, #02060a 100%);
  background-blend-mode: overlay, overlay, normal;
  min-height: 100dvh;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(
    180deg,
    rgba(0,0,0,.04) 0 1px,
    transparent 1px 2px
  );
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: .6;
}
img { max-width: 100%; height: auto; display: block; }

/* Section: Layout helpers */
.container { width: 100%; max-width: clamp(720px, 86vw, 1200px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: .75rem; }

/* Section: Glass panels (header/main/footer) with fallback */
header, main, footer, aside {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  backdrop-filter: saturate(1.05) blur(12px);
  -webkit-backdrop-filter: saturate(1.05) blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside {
    background: rgba(255,255,255,.18);
  }
}
header { display: grid; gap: .5rem; }
header h1 { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); margin: 0; letter-spacing: .2px; color: var(--text); }
header .meta { color: var(--muted); font-size: .92rem; margin: 0; }

/* Section: Content typography and hero */
main { padding-block: 1rem; }
article { display: block; padding: 0; margin: 0; }
.featured-image { margin: .75rem 0 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.image-frame { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.25); display: block; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.05); }

/* Section: Typography specifics */
h2, h3 { color: var(--text); margin: .75rem 0 .25rem; font-weight: 700; line-height: 1.25; }
p { margin: .5rem 0; color: #e9f5f0; }
ul { margin: .5rem 0 1rem 1.25rem; color: var(--text); }
li { margin: .25rem 0; }

/* Section: Links, buttons, utilities */
a, button, .btn, .cta { color: var(--text); text-decoration: none; background: none; border: none; cursor: pointer; font: inherit; }
a { color: var(--accent-2); }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

/* Button variants */
.btn { display: inline-block; padding: .65rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: var(--text); font-weight: 600; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: rgba(0,0,0,.15); color: #041f0b; }
.btn.primary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.btn.outline { background: rgba(0,0,0,.25); border: 1px solid rgba(57,255,119,.8); color: var(--text); }

/* Utility: tags */
.tag { display: inline-block; padding: .15rem .5rem; font-size: .75rem; border-radius: 999px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); color: var(--text); }

/* Section: Content wrapper tweaks for layout harmony */
.content { padding: .5rem 0 0; color: var(--text); }

/* Section: Product ad styling (footer area) */
.product-ad a { display: block; padding: .75rem 1rem; border-radius: 10px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.28); text-align: center; color: var(--text); text-decoration: none; transition: transform .2s ease; }
.product-ad a:hover { transform: translateY(-1px); }

/* Section: Utility typography for print readability */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: #fff; border: none; border-radius: 0; box-shadow: none; }
  a, a:visited { color: #000; text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}