/* Base palette & layout tokens (dark olive cyber theme) */
:root {
  --bg: #0b0f0a;
  --bg-2: #0a1a0b;
  --text: #eaf8e6;
  --muted: #a6cfa0;
  --accent: #7bd26a;
  --accent-2: #4bd36c;
  --glass: rgba(14, 28, 14, 0.22);
  --glass-border: rgba(90, 160, 70, 0.4);
  --shadow: 0 8px 28px rgba(0,0,0,.45);
  --focus: 2px solid #9ff07a;
}

/* Base reset & typography (mobile-first) */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.6;
  background-image:
    linear-gradient(135deg, rgba(86,110,20,.92) 0%, rgba(24,48,12,.92) 60%, rgba(12,24,12,.95) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0px, rgba(255,255,255,.04) 1px, transparent 1px, transparent 2px);
  background-blend-mode: overlay;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}
img { display: block; max-width: 100%; height: auto; }

header, nav, main, article, aside, footer { padding: 0; }

/* Layout containers & utilities */
.container { width: 100%; max-width: clamp(720px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; }
.card { background: rgba(0,0,0,.28); border: 1px solid rgba(120,180,90,.5); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }

/* Header / hero styling */
header { padding: 1.25rem 0; text-align: center; }
header h1 { font-size: clamp(1.75rem, 4vw + 0.5rem, 3.25rem); margin: 0.25rem 0 0.5rem; line-height: 1.04; letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: clamp(0.9rem, 1vw + 0.4rem, 1.05rem); }

/* Content area */
main { padding: 1.5rem 0; }
.article { padding: 0; }

/* Image framing (supporting classes) */
.image-frame, .featured-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
  background: #111;
  margin: 0.75rem 0;
}
.image-frame img, .featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Text content */
.content { padding-block: 0.5rem; padding-inline: 0; }
h2 { font-size: clamp(1.4rem, 2.5vw + 0.8rem, 2.2rem); margin: 0.8rem 0 0.4rem; }
p { margin: 0 0 1rem; color: #eaf7e9; }

/* Blockquote styling (story highlight) */
blockquote { margin: 1rem 0; padding: .75rem 1rem; border-left: 4px solid var(--accent-2); color: #eaffea; background: rgba(0,0,0,.15); border-radius: 6px; }

/* List styling */
ul { padding-left: 1.25rem; margin: .75rem 0 1rem; }
li { margin: .25rem 0; }

/* Glass panels (fallback included) */
.product-ad, .sponsored-page {
  padding: .75rem;
  margin: .75rem 0;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(120,180,90,.4);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.product-ad a, .sponsored-page a { display:flex; align-items:center; justify-content:center; padding: .75rem; color: var(--text); text-decoration: none; font-weight: 600; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Footer */
footer { padding: 1rem 0; }

/* Interactive elements */
a, button, .btn, .cta { outline: none; text-decoration: none; }
a { color: var(--accent-2); }
a:hover, a:focus { text-decoration: underline; }

/* Buttons (solid and outline variants) */
.btn, .cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  cursor: pointer; font-weight: 700;
  transition: transform .15s ease, background .2s ease, border-color .2s;
}
.btn { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #052d0c; border: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .95; }

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,.6);
}
.cta { padding-inline: 1.25rem; }

/* Focus management (WCAG AA-ish) */
:focus-visible { outline: 3px solid #9ff07a; outline-offset: 2px; border-radius: 6px; }

/* Responsiveness & layout helpers (grid utilities) */
@media (min-width: 640px) {
  .container { padding-inline: 0; }
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f7f0;
    --bg-2: #eef5ea;
    --text: #0b2e1a;
    --muted: #536c4b;
    --accent: #2a8e2e;
    --accent-2: #4fbd52;
    --glass: rgba(255,255,255,.85);
    --glass-border: rgba(0,0,0,.15);
  }
  body {
    background-image:
      linear-gradient(135deg, rgba(120,170,100,.25) 0%, rgba(60,110,60,.25) 60%),
      repeating-linear-gradient(0deg, rgba(0,0,0,.03) 0px, rgba(0,0,0,.03) 1px, transparent 1px, transparent 2px);
    color-scheme: light;
  }
  .image-frame, .featured-image { border-color: rgba(0,0,0,.15); }
  .product-ad, .sponsored-page { background: rgba(255,255,255,.75); }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}