/* Base tokens */
:root {
  --bg: #0b0f12;
  --bg-2: #11161b;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.14);
  --surface-3: rgba(255,255,255,0.22);
  --text: #eaf9f0;
  --muted: #a8bfb0;
  --accent: #6b8f3c;        /* olive */
  --accent-2: #a8d37a;      /* lighter olive */
  --border: rgba(255,255,255,0.25);
  --shadow: 0 10px 24px rgba(0,0,0,0.55);
  --focus: 0 0 0 3px rgba(107,143,60,0.75);
  --radius: 14px;
  --maxw: clamp(320px, 90vw, 1100px);
  --white: #fff;
}

/* Section: Reset + Foundations */
* { box-sizing: border-box; }
html, body { height: 100%; }
html, body { padding: 0; margin: 0; scroll-behavior: smooth; color: var(--text); background: transparent; }
body {
  font-family: ui-system, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  min-height: 100%;
  /* Layered background: gradient + olive highlights + subtle noise/scanlines */
  background: linear-gradient(135deg, rgba(5,7,7,0.95) 0%, rgba(10,12,12,0.92) 60%, rgba(9,12,8,0.95) 100%),
              radial-gradient(circle at 20% 0%, rgba(107,143,60,0.15), transparent 40%),
              radial-gradient(circle at 80% 100%, rgba(107,143,60,0.08), transparent 30%);
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(to right, rgba(255,255,255,0.04) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
  opacity: 0.25;
}
body::after {
  content:"";
  position: fixed; inset:0;
  pointer-events:none;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.08), transparent 40%),
              radial-gradient(circle at 50% 100%, rgba(170,190,100,0.08), transparent 40%);
  mix-blend-mode: overlay;
  opacity: 0.6;
}

/* Header, main, footer, aside styling to meet selectors requirement */
header, nav, main, article, aside, footer {
  width: 100%;
}
header { padding: 1.75rem 1rem; text-align: center; }
header h1 { font-size: clamp(1.6rem, 1.2rem + 2.4vw, 3.6rem); margin: 0; letter-spacing: .5px;
  color: var(--white);
  text-shadow: 0 0 6px rgba(170,210,140,0.75);
}
nav { display: none; } /* navigation not present but styled for completeness */

/* Layout utilities */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
}
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Article content panel (glass panels) */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  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,0.15); }
}
.content { padding: 0.75rem 1rem; color: var(--text); }

/* Image frame */
.image-frame {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 0 14px rgba(120,210,100,0.25);
  background: #0a0b0d;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: auto;
  filter: saturate(1.05);
}
.image-frame::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: inherit;
  box-shadow: inset 0 0 12px rgba(0,0,0,0.25);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .image-frame { transition: none; }
}

/* Product ad blocks (footer sections) */
.product-ad, .sponsored-page {
  display: block;
  width: min(100%, 860px);
  margin: 1rem auto;
  padding: 1rem;
  border-radius: 12px;
}
.product-ad { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); }
.sponsored-page { background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.25); }

/* Links, buttons, CTAs */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.65em 1.05em;
  border-radius: 999px;
  display: inline-block;
  font: inherit;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
a:hover, a:focus-visible { text-decoration: underline; outline: none; color: #eafff0; }
a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(107,143,60,0.75); border-color: rgba(107,143,60,0.75); }
button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); }
button:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(107,143,60,0.75); }

/* Variant helpers (solid and outline) */
.btn { background: rgba(107,143,60,0.95); color: #07260c; border: 1px solid rgba(107,143,60,0.95); }
.btn.outline { background: transparent; border: 1px solid rgba(107,143,60,0.95); color: var(--text); }
.btn.primary { background: rgba(168,211,122,0.95); border-color: rgba(168,211,122,0.95); color: #0b1a05; }

/* List styling (ul, li) */
ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
li { margin: 0; }

/* Utility classes */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }
.tag { display: inline-block; padding: .25em .6em; border-radius: 999px; font-size: .75rem; color: #032f0a;
  background: rgba(107,143,60,0.25); border: 1px solid rgba(107,143,60,0.55); }

/* Typography: fluid headings and body */
h1, h2, h3, h4 { margin: .25rem 0; font-weight: 700; letter-spacing: .2px; }
p { margin: 0.5rem 0 1rem; color: var(--muted); }
strong { color: var(--text); }

/* Print styles: basic readability */
@media print {
  body { background: white; color: #000; }
  nav, .glass { display: none; }
  img { max-width: 100%; height: auto; }
}

/* Dark mode baseline (default) + light mode variant */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f5;
    --bg-2: #eef3ee;
    --surface: rgba(20,20,20,0.08);
    --surface-2: rgba(20,20,20,0.14);
    --surface-3: rgba(20,20,20,0.22);
    --text: #1b1e1b;
    --muted: #5a6b5a;
    --border: rgba(0,0,0,0.15);
  }
  body {
    background: linear-gradient(135deg, #f6f7f5 0%, #eef3ee 60%, #f7f7f2 100%);
  }
  .image-frame { border-color: rgba(0,0,0,0.25); }
  a, button, .btn, .cta { color: #0b2a0b; }
}
