/* Base palette and tokens */
:root {
  --bg: #0a0f14;
  --bg-2: #11161c;
  --text: #eaf7f0;
  --muted: #97a98a;
  --accent: #96c05a;       /* olive accent */
  --accent-2: #7aa43a;     /* deeper olive */
  --panel: rgba(12, 22, 18, 0.28);
  --panel-2: rgba(255, 255, 255, 0.14);
  --glow: 0 6px 18px rgba(0,0,0,.25);
  --radius: 12px;
  --focus: 2px solid rgba(146, 208, 90, .9);
}

/* Reset & base layout */
html, body { height: 100%; }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  background: linear-gradient(135deg, rgba(9,12,14,.9) 0, rgba(9,12,14,.95) 60%, rgba(14,18,22,.98) 100%), radial-gradient(circle at 15% -10%, rgba(118, 180, 90,.08), transparent 40%), #0b0f14;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html { scroll-behavior: smooth; }

/* Subtle holographic noise/scanlines layer (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  animation: scan 12s linear infinite;
  opacity: .6;
}
@keyframes scan { to { transform: translateY(-2px); } }

/* Section headers (optional micro-headers) */
header, main, footer { display: block; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 82vw, 1100px);
  margin: 0 auto;
  padding: 0 0.75rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: rgba(10, 14, 12, 0.28);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--glow);
}
@supports not (backdrop-filter: blur(10px)) {
  .card { background: rgba(10, 14, 12, 0.65); }
}
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  color: #eaf7f0;
  background: rgba(150, 210, 110, .22);
  border: 1px solid rgba(150,210,110,.55);
}

/* Typography */
h1, h2, h3 { margin: 0 0 .5rem; color: var(--text); }
h1 { font-size: clamp(1.6rem, 3vw + 1rem, 2.8rem); line-height: 1.15; letter-spacing: .2px; text-align: center; }
h2 { font-size: clamp(1.4rem, 2.4vw + .6rem, 2.2rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); }
p { margin: .5rem 0 1rem; color: var(--muted); }
blockquote { margin: 1rem 0; padding-left: .75rem; border-left: 3px solid rgba(150,210,110,.5); color: var(--text); }

/* Core layout regions (required selectors) */
html, body, header, nav, main, article, footer, aside {
  /* basic containment for structure; no extra styles here beyond defaults */
}
header {
  padding: 2rem 1rem 1rem;
  text-align: center;
}
header h1 { color: var(--text); margin-bottom: .25rem; }
header .meta { font-size: .9rem; color: var(--muted); }

/* Hero and content framing */
main { padding: 0 0 2rem; }
article { display: block; width: 100%; }

/* Images & image framing (support .image-frame and .featured-image) */
.image-frame,
.featured-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(180,210,170,.6);
  background: #0b0f14;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.image-frame { aspect-ratio: 16 / 9; }
.image-frame img, .featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content container for article text */
.content { padding: 0; }

/* Subsections and lists */
ul, li { margin: 0; padding: 0 0 0 1.15rem; }
ul { margin-bottom: .75rem; }
li { margin: .25rem 0; }

/* Product ad (footer region) */
.product-ad {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: .75rem;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 1rem;
  background: rgba(5, 12, 10, 0.3);
  border: 1px solid rgba(100, 200, 150, 0.6);
  border-radius: 12px;
}
.product-ad h3 { margin: 0; font-size: 1rem; }
.product-ad p { margin: 0; }

/* Links & buttons (interactive controls) */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; outline: none; color: var(--accent-2); }
a:focus-visible { outline: 2px solid rgba(146,208,90,.95); outline-offset: 3px; }

/* Button base and variants */
.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.36);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid rgba(146,208,90,.95); outline-offset: 2px; }

/* Solid (primary) and outline variants */
.btn.primary, .cta {
  background: linear-gradient(135deg, rgba(150, 200, 110, 0.95), rgba(120, 170, 100, 0.95));
  border: 1px solid rgba(210, 235, 210, 0.9);
  color: #041b0a;
}
.btn.outline {
  background: rgba(7, 16, 12, 0.28);
  border: 1px solid rgba(146, 208, 90, 0.8);
  color: var(--text);
}
.cta { font-weight: 700; }

/* Glass panels (with fallback) */
.section-glass, .glass {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .section-glass, .glass { background: rgba(12, 22, 18, 0.8); }
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
}
  
/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}