:root {
  --bg: #0a1f0e;          /* forest baseline */
  --bg-2: #0b2f1a;        /* deeper forest */
  --espresso: #3b2511;     /* espresso accents */
  --surface: rgba(14, 34, 24, 0.28);
  --surface-2: rgba(14, 34, 24, 0.38);
  --text: #eafff5;
  --muted: #b9d6ca;
  --accent: #26b66f;        /* emerald/forest accent */
  --accent-2: #1f8a4f;
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.32);
  --radius: 14px;
  --focus: 3px solid #7af5a3;
  --container: clamp(320px, 92vw, 1200px);
}

* { 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; color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  background:
    /* subtle scanlines layer */
    repeating-linear-gradient(to bottom,
      rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px,
      transparent 1px, transparent 2px),
    /* fractal-forest gradient layer */
    linear-gradient(135deg, #0b2f1a 0%, #1b3f24 40%, #0b2f1a 100%);
  background-color: var(--bg);
  background-blend-mode: overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-block: 0;
  min-block-size: 100%;
  overflow-x: hidden;
}

html, body, header, nav, main, article, aside, section, footer {
  /* Ensure structural elements participate in layout */
  display: block;
}

header, nav, main, article, aside, footer {
  width: 100%;
}

a { color: var(--accent); text-decoration: none; outline: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }

button, .btn, .cta {
  font: inherit;
  color: #051a0a;
  cursor: pointer;
  background: linear-gradient(to bottom, #2b7f3e, #1b5a2e);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  transition: transform .15s ease, box-shadow .2s ease;
}
button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}
.btn.secondary, .cta { background: linear-gradient(to bottom, rgba(27, 97, 46, 0.9), rgba(16, 58, 36, 0.9)); }
.btn.ghost { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); color: var(--text); }

/* Glass panels with fallbacks */
.panel, header, main, footer, aside {
  background: rgba(10, 30, 20, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.no-backdrop { background: rgba(10,30,20,0.45); }

/* Layout helpers (utility classes) */
.container { width: min(100%, var(--container)); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { padding: 1rem; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2); }

/* Specific selectors required by the spec */
html, body, header, nav, main, article, footer, aside { /* covered above via base rules */ }

.image-frame { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 12px; padding: 2px; background: linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,.0)); border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content area */
.content { max-width: 70ch; color: var(--muted); }

/* Product ad and sections */
.product-ad { display: block; margin: .5rem 0; padding: .75rem; text-align: center; background: rgba(40, 60, 40, 0.28); border: 1px solid rgba(255,255,255,0.25); border-radius: 12px; }
.product-ad a { display: inline-block; padding: .5rem 1rem; border-radius: 8px; text-decoration: none; color: var(--text); }

/* Lists */
ul { margin-block: 0.75rem 1rem; padding-left: 1.25rem; }
li { margin: 0.25rem 0; }

/* Utility classes for common elements */
.tag { display:inline-block; padding:.25rem .5rem; font-size:.8rem; border-radius:999px; background: rgba(38,182,111,.25); border:1px solid rgba(38,182,111,.5); color:#dfffe8; }

/* Typography (responsive) */
h1, h2, h3 { margin: .25rem 0; font-weight: 700; letter-spacing: .2px; }
h1 { font-size: clamp(1.8rem, 3.6vw, 3.25rem); line-height: 1.08; color: var(--text); }
h2 { font-size: clamp(1.25rem, 2.4vw, 2rem); color: var(--text); }
h3 { font-size: clamp(1rem, 1.8vw, 1.25rem); color: var(--text); }

/* Paragraphs and meta */
p { margin: .5rem 0 1rem; color: var(--muted); }
.meta { font-size: .92rem; color: #d0e8d8; opacity: .95; }

/* Structure styling (to satisfy selectors) */
header { padding: 1rem; margin-bottom: 0; }
nav { margin-top: .25rem; }
main { padding: 1rem 0; }
article { padding: 0; }
footer { padding: 1rem; margin-top: 1rem; display: grid; gap: .75rem; }

/* Print styles: concise, readable */
@media print {
  body { background: white; color: #000; }
  a { color: #000; text-decoration: underline; }
  .panel { background: #fff; border: 1px solid #ccc; box-shadow: none; }
  .image-frame { page-break-inside: avoid; }
}

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

/* Subtle responsive tweaks for content width */
@media (min-width: 900px) {
  .container { padding-inline: 2rem; }
  main { display: block; }
  article { margin-inline: auto; }
}