:root {
  --bg: #0b0f08;
  --bg-2: #142013;
  --text: #e8f5dc;
  --muted: #a5ba95;
  --accent: #6b8a3c;      /* olive */
  --accent-2: #d7c088;    /* sand */
  --surface: rgba(20, 28, 20, 0.28);
  --surface-2: rgba(18, 26, 18, 0.58);
  --border: rgba(255, 255, 255, 0.28);
  --focus: #ffffff;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --radius: 14px;
  --radius-sm: 10px;
  --gap: 1rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

html { color-scheme: dark; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + olive tones + sand accents + subtle noise/scan */
  background-image:
    linear-gradient(135deg, rgba(30, 38, 28, 0.92) 0%, rgba(18, 25, 15, 0.92) 60%, rgba(28, 22, 14, 0.92) 100%),
    radial-gradient(circle at 15% 0%, rgba(112, 110, 60, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(68, 60, 22, 0.22) 0%, transparent 40%);
  background-blend-mode: normal, overlay, overlay;
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
}

/* olive jungle leaves silhouette background (subtle) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(16, 56, 20, 0.25) 0 12px, transparent 12px),
    radial-gradient(circle at 30% 60%, rgba(16, 72, 28, 0.22) 0 14px, transparent 14px),
    radial-gradient(circle at 60% 30%, rgba(20, 54, 20, 0.18) 0 10px, transparent 12px);
  background-size: 120px 60px, 140px 80px, 120px 70px;
  opacity: 0.22;
  mix-blend-mode: multiply;
  filter: saturate(0.9);
}

/* subtle scanlines / grain */
body::after {
  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 2px),
    repeating-linear-gradient(to right, rgba(0,0,0,0.02) 0 1px, transparent 1px 2px);
  opacity: 0.45;
  mix-blend-mode: overlay;
  animation: none;
  z-index: 0;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  padding-inline: 1rem;
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: rgba(14, 20, 14, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
}

.tag {
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .75rem;
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(255,255,255,.08);
  color: var(--text);
  line-height: 1;
}

/* Glass panels (fallback if backdrop-filter is unsupported) */
header, main, footer, aside {
  background: rgba(9, 12, 9, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem auto;
  max-width: clamp(280px, 92vw, 1020px);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@media (prefers-reduced-motion: reduce) {
  header, main, footer, aside { transition: none; animation: none; }
  * { animation: none !important; }
}

header { text-align: center; padding: clamp(1rem, 2vw, 1.75rem); margin: 1rem auto; }
header h1 {
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 .4rem;
  letter-spacing: .5px;
  color: #eafbd8;
}
header .meta {
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  color: var(--muted);
}

/* Main article typography */
main { padding: 0; }
article {
  max-width: clamp(680px, 90vw, 920px);
  margin: 0 auto;
  padding: 1rem;
  color: var(--text);
}
.featured-image { margin: 1rem 0 0; }

.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
  background: #000;
  display: block;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  filter: saturate(1);
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0.75rem 0 0.25rem;
  color: #eaffd9;
}
p {
  margin: .75rem 0;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  color: var(--text);
}
blockquote {
  margin: .75rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}
ul {
  padding-left: 1.25rem;
  margin: .5rem 0;
}
li { margin: .25rem 0; }

/* Links and buttons */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  outline: none;
}
a { transition: color .2s ease, text-decoration-color .2s; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(107,138,60,.9);
  color: #041a0e;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.btn:hover { transform: translateY(-1px); background: #8fb357; }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: var(--accent);
  color: #f6fbed;
  border-color: rgba(0,0,0,.15);
}
.btn.primary:hover {
  background: #5b7a2f;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  color: var(--text);
}
.cta { display: inline-block; }

/* Ad / footer sections as glass blocks */
.product-ad, .sponsored-page {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.product-ad a, .sponsored-page a { display: inline-block; padding: .6rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.25); }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Footer layout / responsive tweaks */
footer {
  display: grid;
  gap: .75rem;
  padding: 1rem 0 2rem;
}
footer > section {
  justify-self: center;
}
@media (min-width: 700px) {
  footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: center;
    justify-items: stretch;
  }
  .product-ad, .sponsored-page { justify-content: center; }
}

/* Print styles for readability */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
  a { color: #00f; text-decoration: underline; }
}

/* Ensuring logical properties where sensible (no heavy overrides) */
:root {
  --margin-block: 1rem;
}
h1 { margin-block: var(--margin-block); }
p { margin-block: calc(var(--margin-block) / 2); }