:root {
  --bg: #0b110f;
  --bg-2: #1b2511;
  --text: #eaf0e6;
  --muted: #a8b8a0;
  --accent: #7fb34d;
  --accent-2: #4f6f2a;
  --glass: rgba(18, 28, 18, 0.28);
  --glass-2: rgba(18, 28, 18, 0.18);
  --border: rgba(120, 170, 120, 0.42);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
}
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, rgba(16,18,12,.95), rgba(8,10,8,.95)),
              radial-gradient(circle at 10% 10%, rgba(125,185,104,.10), transparent 40%);
  background-blend-mode: normal, overlay;
  background-image:
    linear-gradient(135deg, rgba(16,18,12,.95), rgba(8,10,8,.95)),
    radial-gradient(circle at 10% 10%, rgba(125,185,104,.10), transparent 40%),
    repeating-linear-gradient(to right, rgba(0,0,0,.04) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 40px);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utilities & layout */
.container { width: min(92%, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: 12px; padding: .75rem; box-shadow: var(--shadow); }
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(127, 195, 125, .25);
  border: 1px solid rgba(120, 170, 120, .5);
  color: var(--text);
}
.image-frame {
  width: min(100%, 720px);
  margin: 1rem auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(180,200,180,.4);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Typography & sections */
header { padding: 2rem 1rem; text-align: center; }
header h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 .25rem;
}
header .meta { font-size: clamp(0.75rem, 1.6vw, 0.9rem); color: var(--muted); }

/* Navigation */
nav { margin-top: .5rem; }
nav a {
  color: var(--accent-2);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 4px;
  border: 1px solid rgba(127,165,127,.4);
}
nav a:hover, nav a:focus-visible { color: #eaffdc; text-decoration: underline; }

/* Main content */
main { padding: 1rem; }
article { max-width: clamp(40em, 90vw, 72em); margin: 0 auto; line-height: 1.55; color: var(--text); }
article h2 { margin: 1rem 0 .5rem; font-size: clamp(1.4rem, 3vw, 2rem); }
article h3 { margin: .8rem 0; font-size: 1.1rem; }
article p { margin: .4rem 0 1rem; }

blockquote {
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-left: 4px solid var(--accent-2);
  background: rgba(125, 195, 125, 0.15);
  border-radius: 6px;
}
blockquote p { margin: 0; }

ul { margin: .25rem 0 0 1.15rem; padding: 0; }
ul li { margin: .25rem 0; }

/* Glass panel (content area) with fallback */
.content {
  background: rgba(18, 28, 18, 0.26);
  border: 1px solid rgba(120,170,120,.34);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .content { background: rgba(18, 28, 18, 0.66); }
}

/* Product ad in footer */
.product-ad {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: .5rem 0;
  border-radius: 10px;
  background: rgba(18,28,18,.26);
  border: 1px solid rgba(120,170,120,.38);
}
.product-ad a { color: var(--text); text-decoration: none; display: block; padding: .5rem; }
.product-ad a:hover { text-decoration: underline; }

/* Footer / utility sections */
footer {
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  align-items: start;
  color: var(--muted);
}
footer p {
  grid-column: 1 / -1;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  margin: .25rem 0 0;
}
aside { padding: .5rem; }

/* Link & button styles with accessibility */
a, button, .btn, .cta {
  font-family: inherit;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

/* Button variants (primary / outline) */
.btn, .cta {
  display: inline-block;
  border-radius: 6px;
  padding: .6rem .95rem;
  border: 1px solid rgba(120,170,120,.5);
  background: rgba(82,110,70,.4);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: rgba(120,170,120,.6); }
.btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
.btn + .btn { margin-left: .5rem; }

/* Print */
@media print {
  body { background: #fff; color: #000; }
  header, nav, main, footer {Background: transparent; }
  a { text-decoration: underline; }
}

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