:root {
  /* Palette derived from khaki + sage green with accessible contrast */
  --bg: #1b1f0f;           /* deep olive/khaki core */
  --bg-2: #2a2e14;          /* layered khaki tone */
  --text: #eaf7e0;           /* high-contrast text on dark surfaces */
  --muted: #cbd9ad;          /* subdued body copy */
  --accent: #a7c79d;         /* sage green primary accents */
  --accent-2: #d8eec6;       /* lighter sage for highlights */
  --surface: rgba(230, 238, 210, 0.20); /* glass panel surface */
  --surface-2: rgba(180, 190, 150, 0.28);
  --border: rgba(255, 255, 255, 0.28);
  --focus-ring: 3px solid rgba(166, 197, 140, 0.95);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { line-height: 1.4; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(27,31,15,0.92) 0%, rgba(42,46,18,0.92) 60%, rgba(27,31,15,0.92) 100%),
    radial-gradient(circle at 20% 0%, rgba(167,199,141,0.18), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(141,167,116,0.14), transparent 40%);
  min-height: 100vh;
  font-family: ui-system, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}
body::before {
  /* Subtle scanline / noise overlay for "circuit board" feel */
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.18) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.25;
}

 .image-frame, .featured-image {
  border-radius: 12px;
  overflow: hidden;
}
.image-frame {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.image-frame img, .featured-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: optimizeQuality;
  filter: saturate(1.05);
  transition: transform 0.3s ease;
}
.image-frame img:hover, .featured-image img:hover { transform: scale(1.01); }

header, main, footer {
  display: block;
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 1rem;
}

/* Glass panels (fallback-friendly) */
header {
  border-radius: 14px;
  padding: 1.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  margin-top: 1rem;
}
header h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.75rem, 2.4vw + 1rem, 3.5rem);
  line-height: 1.05;
  letter-spacing: .2px;
  color: var(--text);
}
header .meta {
  margin: 0 0 .75rem;
  color: var(--muted);
  font-size: clamp(0.9rem, 0.8vw + 0.75rem, 1.05rem);
}
nav {
  display: flex; gap: .5rem; flex-wrap: wrap; align-items: center;
}
nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .25rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.0);
  background: rgba(167,199,157,0.15);
}
nav a:hover, nav a:focus-visible {
  text-decoration: underline;
  outline: none;
  color: #fff;
  background: rgba(167,199,157,0.28);
}

main {
  margin-top: 1rem;
  border-radius: 14px;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
main article { padding: 0; }

/* Content & typography */
h2, h3 { color: var(--text); margin: 1.25rem 0 0.5rem; }
h2 { font-size: clamp(1.5rem, 1vw + 1.2rem, 2.25rem); }
h3 { font-size: clamp(1.1rem, 0.8vw + 0.9rem, 1.4rem); }
p { color: var(--muted); font-size: clamp(0.95rem, 0.8vw + 0.8rem, 1.15rem); margin: 0 0 1rem; }
blockquote {
  margin: .75rem 0 1rem; padding: .75rem 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(0,0,0,0.15);
  border-radius: 6px;
  color: #eafff0;
}
ol, ul { padding-left: 1.25rem; margin: .25rem 0 1rem; color: var(--muted); }
li { margin: .25rem 0; }

/* Content helper */ 
.content { line-height: 1.55; }

/* Buttons & links */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: none; color: var(--accent-2); }
.btn, .cta, button {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: linear-gradient(#2e3a2a, #485a36);
  color: #f8f9f0;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover, .cta:hover, button:hover { transform: translateY(-1px); background: linear-gradient(#3b4d2e, #5b7a3b); }
.btn:focus-visible, .cta:focus-visible, button:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent);
}
.btn--outline:hover {
  background: rgba(167,199,157,0.15);
}
.product-ad {
  display: block;
  text-align: center;
  padding: .9rem;
  border-radius: 12px;
  background: rgba(26, 32, 18, 0.28);
  border: 1px solid rgba(255,255,255,0.28);
  margin: .75rem 0;
}
.product-ad a { text-decoration: none; color: var(--text); font-weight: 600; display: inline-flex; gap: .5rem; align-items: center; }

.sponsored-page { margin-top: .5rem; }

/* Lists & utility cards */
ul, li { margin: 0; padding: 0; }
.tag {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  color: #0b1f0a;
  background: rgba(166, 210, 140, 0.9);
  border: 1px solid rgba(0,0,0,.05);
}
.card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

/* Layout helpers */
.container { max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (min-width: 1024px) {
  .container { padding-inline: 0; }
  main { padding: 1.25rem 1rem; }
  header { padding: 2rem 1rem; }
}
footer { padding: 1rem; margin-top: 1rem; border-radius: 14px; }

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