/* Tokens & Base Palette */
:root {
  --bg: #0a0f0a;
  --bg-2: #06120b;
  --text: #d7ffbf;
  --muted: #a6e6a3;
  --accent: #39ff6a;
  --accent-2: #7dff87;
  --card: rgba(12, 17, 12, 0.28);
  --stroke: rgba(120, 255, 180, 0.4);
  --focus: 0 0 0 3px rgba(57,255,106,.6);
}

/* Layout & Typographic Foundations (mobile-first) */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial; }
body {
  margin: 0;
  color: var(--text);
  background: 
    /* scanline overlay (top) */
    repeating-linear-gradient(to bottom, rgba(57,255,106,.04) 0 1px, transparent 1px 2px),
    /* subtle greens glow & dim gradients (bottom layers) */
    radial-gradient(circle at 15% 0%, rgba(80,255,120,.08), transparent 40%),
    radial-gradient(circle at 85% 12%, rgba(0,120,60,.08), transparent 40%),
    linear-gradient(135deg, rgba(0,0,0,.85), rgba(0,0,0,.95));
  background-color: var(--bg);
  min-height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0;
}
img { max-width: 100%; display: block; }

/* Global containers & utilities */
.container { width: 100%; padding: 0 1rem; margin-inline: auto; max-width: clamp(320px, 90vw, 1100px); }

/* Core page regions */
header { padding: 2rem 0 1rem; text-align: center; }
main { padding: 0; }
article { display: block; }

/* Image framing */
.image-frame, .featured-image { border-radius: 12px; overflow: hidden; border: 1px solid var(--stroke); box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.image-frame { aspect-ratio: 16/9; width: min(100%, 960px); margin: 0 auto; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.05); }

/* Content & typography rhythm */
.content { padding: 0 0; }
h1, h2 { margin: 0.5rem 0 0.25rem; color: var(--text); }
h1 { font-size: clamp(1.75rem, 3vw + 1rem, 4rem); letter-spacing: .5px; line-height: 1.04; }
h2 { font-size: clamp(1.25rem, 1.5vw + 1rem, 2.25rem); }
p { margin: .75rem 0; color: #eaffd9; }
blockquote { margin: .75rem 0; padding-left: 1rem; border-left: 3px solid var(--accent); color: #eaffd9; opacity: .95; }

/* Lists & simple content helpers */
ul { margin: .4rem 0 0 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Glass panels (frosted glass) with fallback for no backdrop-filter */
.glass, .card, .content, .product-ad { background: rgba(6, 12, 8, 0.28); border: 1px solid rgba(120,255,180,.28); border-radius: 12px; padding: 1rem; box-shadow: 0 6px 18px rgba(0,0,0,.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@supports not (backdrop-filter: blur(12px)) {
  .glass, .card, .content { background: rgba(6, 12, 8, 0.72); }
}
.section-title { margin-top: .25rem; }

/* Cards & grid helpers */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { /* generic card style (utility) */ }

/* Links, buttons, and interactive controls */
a, button, .btn, .cta { color: var(--text); text-decoration: none; cursor: default; }
a { color: var(--accent); }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }

/* Buttons (variants) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1rem; border-radius: 999px; border: 1px solid rgba(57,255,106,.8); background: linear-gradient(180deg, rgba(57,255,106,.95), rgba(57,255,106,.8)); color: #041200; font-weight: 600; transition: transform .15s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.3); }
.btn:focus-visible { outline: none; box-shadow: var(--focus), 0 0 0 rgba(0,0,0,0); }
.btn.outline { background: transparent; color: var(--text); border: 1px solid rgba(57,255,106,.8); }

/* Form elements (basic themed styling) */
input, textarea, select { background: rgba(0,0,0,.25); border: 1px solid rgba(120,255,180,.5); color: var(--text); padding: .5rem; border-radius: 6px; }

/* Layout helpers for semantic elements (non-critical) */
nav { display: none; } /* presentational placeholder for mobile-first */
aside { display: none; } /* reserved for future panels */

/* Footer & ad blocks */
footer { padding: 1.25rem 0; text-align: center; color: var(--muted); }
.product-ad { display: inline-block; width: 100%; max-width: 520px; margin: .25rem; }
.product-ad a { display: block; padding: .85rem; border-radius: 12px; background: rgba(2,4,4,.25); border: 1px solid rgba(120,255,180,.4); text-align: center; transition: transform .15s ease, box-shadow .2s ease; }
.product-ad a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.28); text-decoration: underline; }

/* Print-friendly tweaks */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}

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

/* Dark mode default; light-mode overrides */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7fff0;
    --bg-2: #e8f6e2;
    --text: #0b2a0b;
    --muted: #4d6c4d;
    --accent: #2e8b57;
    --accent-2: #2bd36b;
    --card: rgba(255,255,255,0.75);
    --stroke: rgba(0,0,0,.15);
  }
  body { background: 
    radial-gradient(circle at 15% 0%, rgba(46,139,87,.15), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.03) 0 1px, transparent 1px 2px),
    linear-gradient(135deg, #f4fff0, #eefbf0);
  color: var(--text);
  }
  .glass, .card, .content { background: rgba(255,255,255,.9); border-color: rgba(0,0,0,.15); backdrop-filter: blur(6px); }
}