/* Global reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Theme constants and base */
:root {
  --text: #eafff5;
  --surface: rgba(8, 24, 16, 0.66);
  --glass: rgba(8, 24, 16, 0.60);
  --accent: #2ff08a;
  --outline: rgba(0, 255, 140, 0.9);
}

html, body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  min-height: 100vh;
  background-color: #000;
  /* Green galaxy starscape background (CSS layered) */
  background-image:
    radial-gradient(circle at 12% 22%, rgba(57,255,146,.65) 0 0.5px, transparent 0.5px),
    radial-gradient(circle at 65% 40%, rgba(0,255,130,.45) 0 0.5px, transparent 0.5px),
    radial-gradient(circle at 89% 12%, rgba(0,255,90,.4) 0 0.5px, transparent 0.5px),
    radial-gradient(circle, rgba(0,0,0,.45) 2px, rgba(0,0,0,.75) 2px),
    linear-gradient(135deg, rgba(0,30,0,.6), rgba(0,0,0,.9) 60%);
  background-size: 2px 2px, 2px 2px, 2px 2px, cover, cover;
  background-blend-mode: screen;
}

/* Header as frosted-halo hero section */
header {
  margin: 1rem auto;
  padding: 3rem 1rem;
  max-width: 1000px;
  border-radius: 16px;
  display: grid;
  justify-items: center;
  text-align: center;
  background: rgba(5, 20, 15, 0.55);
  border: 1px solid rgba(120, 255, 180, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  position: relative;
}
header h1 {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.9rem, 4vw + 1rem, 3.6rem);
  line-height: 1.04;
  margin: 0.25rem 0 0.5rem;
  color: #eafff5;
  text-shadow: 0 0 10px rgba(57,255,146,.9);
}
header .meta {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .92rem;
  color: rgba(234,255,235,.95);
  margin-top: .2rem;
}
header::after {
  content:"";
  position:absolute;
  inset: -2px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(57,255,146,.55), rgba(0,255,150,.55) 60%);
  mask: linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: 0;
  opacity: .9;
  filter: saturate(1.1);
}
header * { position: relative; z-index: 1; }

/* Main content layout */
main { padding: 1rem; display: grid; justify-items: center; }

/* Article card with frosted-glass aesthetic */
article {
  width: 100%;
  max-width: 880px;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(8, 24, 16, 0.58);
  border: 1px solid rgba(180, 255, 210, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  line-height: 1.9;
}
.featured-image { border-radius: 12px; overflow: hidden; margin: .75rem 0; }
.featured-image img { display: block; width: 100%; height: auto; }

/* Article typography */
article p { color: #eafff0; font-size: 1.05rem; margin: 0 0 1rem; }
article p + p { margin-top: .75rem; }

/* Footer and promo ad styling */
footer { padding: 1.25rem; display: grid; gap: 1rem; justify-items: center; }

/* Ad card with CTA styling */
.product-ad {
  width: min(100%, 860px);
  padding: .9rem 1rem;
  text-align: center;
  border-radius: 12px;
  background: rgba(10, 40, 20, 0.58);
  border: 1px solid rgba(180,255,210,.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-ad h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.product-ad a { text-decoration: none; }
.product-ad a p {
  margin: 0; display: inline-block;
  padding: .7rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  color: #021;
  background: linear-gradient(135deg, rgba(52,255,198,.95), rgba(0,255,150,.95));
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: transform .18s ease;
}
.product-ad a:hover p { transform: translateY(-1px); }

/* Small footer copy (monospace vibe) */
footer:not(.product-ad) { text-align: center; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

/* Accessibility: focus styles for interactive elements */
:focus-visible {
  outline: 2px solid var(--outline);
  outline-offset: 2px;
  border-radius: 6px;
}
a, button { color: inherit; }
button, [role="button"] { cursor: pointer; }

/* Responsive tweaks: mobile-first defaults then expand at breakpoints */
@media (min-width: 720px) {
  article { padding: 1.25rem 1.75rem; }
  header { padding: 4rem 2rem; }
}
@media (min-width: 1100px) {
  header { padding: 4.5rem 2.5rem; }
  article { padding: 1.5rem 2.25rem; }
}