/* Core palette & system typography */
:root {
  --bg: #0a0a1a;
  --bg-2: #1a1230;
  --text: #eaf3ff;
  --muted: #b8c7d8;
  --accent: #87a97e;       /* sage green (primary) */
  --accent-2: #a280ff;     /* ultraviolet / violet (secondary) */
  --glass: rgba(135, 170, 120, 0.18);
  --glass-border: rgba(135, 170, 120, 0.40);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --radius: 14px;
  --fg-on-glass: #eafff0;
}
:root, html, body { height: 100%; }

/* Global resets & mobile-first base */
*,
*::before,
*::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: 
    /* gradient base with ultraviolet/green vibe */
    linear-gradient(135deg, #0a0a1a 0%, #1a1020 40%, #0a0a1a 100%);
  /* layered accent glows and subtle texture (pure CSS noise/scanlines) */
  background-blend-mode: normal;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Ultraviolet concrete + scanlines (CSS-only) */
  background-image:
    linear-gradient(135deg, #0a0a1a 0%, #1a1020 60%, #0a0a1a 100%),
    repeating-linear-gradient(to bottom,
      rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 2px),
    radial-gradient(circle at 20% -5%, rgba(120,80,200,0.20), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(90,180,120,0.08), transparent 25%);
  background-size: auto, 4px 4px, cover, cover;
  background-position: center, top left, center, center;
}
@media (prefers-reduced-motion: reduce) {
  html, body { background-attachment: scroll; }
}
@media print {
  html, body { background: white; color: black; }
  a { text-decoration: underline; }
}

/* Layout primitives */
.container { max-width: clamp(340px, 90vw, 1100px); margin: 0 auto; padding: 0 1rem; }
.grid { display: grid; gap: 1rem; }

/* Glass panel (frosted) */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(16, 20, 40, 0.88); border-color: rgba(135,170,120,0.60); }
}

/* Core page scaffolding */
header {
  padding: 2rem 1rem;
  text-align: center;
}
header h1 {
  margin: 0.25rem 0 0.25rem;
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3rem);
  line-height: 1.15;
  letter-spacing: .2px;
}
header .meta {
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: clamp(0.8rem, 0.6vw + 0.8rem, 1rem);
}
nav {
  margin-top: 0.75rem;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color .2s ease;
}
nav a:hover, nav a:focus-visible {
  color: var(--text);
  outline: none;
  text-decoration: underline;
}
main { padding: 1rem; }

/* Content styling (article) */
article { max-width: clamp(520px, 85vw, 900px); margin: 0 auto; padding: 0; }

/* Image frame with glow / border */
.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  background: #000;
  margin: 1rem 0 1.25rem;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Typography hierarchy for hero-like sectioning inside content */
h2 { font-size: clamp(1.4rem, 2.5vw + 0.8rem, 2.2rem); margin: 0.75rem 0 0.5rem; color: #fff; }
h3 { font-size: clamp(1.05rem, 1.8vw + 0.6rem, 1.25rem); margin: 0.75rem 0 0.25rem; color: #e6f3ff; }
p, li { color: #eaf4ff; margin: 0.5rem 0; }
ul { padding-left: 1.25rem; margin: 0.25rem 0 0.75rem; }
blockquote {
  border-left: 3px solid var(--accent-2);
  padding-left: 0.75rem;
  margin: 0.75rem 0;
  color: #eafffb;
  opacity: .95;
}
blockquote p { margin: 0; }

/* Lists & emphasis */
strong { color: #fff; }

/* Footer / product ad panels rendered as glass blocks */
footer {
  padding: 1.25rem 1rem 2rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
  align-items: stretch;
}
footer .product-ad, footer .sponsored-page {
  width: min(540px, 92%);
  text-align: center;
  padding: 0.75rem;
}
footer .product-ad a, footer .sponsored-page a {
  color: var(--fg-on-glass);
  text-decoration: none;
  font-weight: 600;
}
footer .product-ad { background: rgba(20, 24, 48, 0.32); border: 1px solid rgba(255,255,255,0.22); border-radius: 12px; display: flex; align-items: center; justify-content: center; min-height: 56px; }
footer .sponsored-page { background: rgba(20, 24, 48, 0.32); border: 1px solid rgba(255,255,255,0.22); border-radius: 12px; display: flex; align-items: center; justify-content: center; min-height: 56px; }
footer p { color: var(--muted); text-align: center; margin: 0; }

/* Interactive controls (buttons & links) */
.btn, a.btn, .cta {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn { background: var(--accent); color: #062b15; }
.btn:hover { transform: translateY(-1px); background: color-m-magenta; } /* fallback harmless color-mix will be overridden below in code if desired */
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
a.btn { color: #04140f; }

/* Solid primary and outline variants */
.btn.primary { background: var(--accent); color: #062b15; }
.btn.primary:hover { background: #6fae79; }
.btn.outline, a.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(135, 170, 120, 0.60);
}
.btn.outline:hover, a.btn.outline:hover { color: var(--fg-on-glass); background: rgba(135,170,120,0.20); }

/* Link behavior improvements for accessibility */
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
a:hover { text-decoration: underline; }

/* Utility components (optional for content authors) */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.55em;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(135, 170, 120, 0.25);
  color: #eafff3;
  border: 1px solid rgba(135, 170, 120, 0.50);
}

/* Content helpers (glass panels for sections) */
.section-glass { padding: 0.75rem; }

/* Print-friendly small enhancements */
@media print {
  header, nav { display: none; }
  article { max-width: 100%; padding: 0; }
  footer { display: none; }
  * { color: #000 !important; background: transparent !important; }
}
 
/* Reduced motion preference for accessibility */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}