/* 1) Tokens & Base Palette (Green / Gold theme) */
:root {
  --bg: #062b12;
  --bg-2: #0b4d20;
  --surface: rgba(14, 28, 18, 0.58);
  --surface-2: rgba(255, 255, 255, 0.08);
  --text: #eaffea;
  --muted: #b8e3a4;
  --accent: #d4af37;      /* gold */
  --accent-2: #7fe57a;     /* green glow highlight */
  --shadow: 0 8px 22px rgba(0,0,0,.35);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: 0 0 0 4px rgba(212,175,55,.6);
  --bg-contrast: rgba(0,0,0,.25);
}

/* 2) Global & Layout Reset */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(6, 54, 18, 0.92) 0%, rgba(2, 40, 18, 0.92) 60%, rgba(6, 54, 18, 0.92) 100%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 2px, transparent 2px 4px);
  background-attachment: fixed;
  line-height: 1.5;
  font-size: clamp(14px, 0.96vw + 12px, 17px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(212,175,55,.12), transparent 40px),
    radial-gradient(circle at 70% 20%, rgba(0,0,0,.25), transparent 40px),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
  opacity: .72;
}
a, button, .btn, .cta { text-decoration: none; cursor: pointer; }

/* 3) Page scaffolding utilities (container, grid, card, tag) */
.container { width: min(90%, 1120px); margin-inline: auto; padding: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-sm); padding: 1rem; }
.tag { display: inline-block; padding: .25em .6em; border-radius: 999px; background: rgba(212,175,55,.25); color: #fff; border: 1px solid rgba(212,175,55,.65); font-size: .75rem; }

/* 4) Glass panels (frosted look with graceful fallbacks) */
header, main, article, footer, aside, .card {
  background: rgba(10, 25, 12, 0.58);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
header, nav { display: block; }
header { padding: 1rem; margin: 1rem auto; max-width: clamp(640px, 90vw, 1100px); }
header h1 { font-size: clamp(1.6rem, 2.2vw + 1rem, 2.8rem); line-height: 1.15; margin: 0 0 .25rem; color: #eaffc4; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
header .meta { margin: 0; font-size: .85rem; color: var(--muted); }

nav { margin-top: .25rem; }
nav a { display: inline-flex; align-items: center; gap: .4em; padding: .4rem .6rem; border-radius: 6px; color: var(--text); border: 1px solid rgba(255,255,255,.25); }
nav a:hover, nav a:focus-visible { text-decoration: underline; }

/* 5) Main content & article styling */
main { padding: 1rem; }
article { max-width: clamp(640px, 90vw, 960px); margin: 0 auto; padding: 1rem; }

/* 6) Image frame (aspect-ratio, object-fit, glow) */
.image-frame { width: 100%; max-width: 720px; margin: 1rem auto; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 7) Typography & content hierarchy */
h2 { font-size: clamp(1.4rem, 1.8vw + .8rem, 2rem); margin: .75rem 0 .5rem; color: #eaffc4; }
h3 { font-size: clamp(1.1rem, 1.2vw + .8rem, 1.5rem); color: #eaffc4; margin-top: .75rem; }
p { margin: .75rem 0; line-height: 1.6; color: #eafff0; }
ul { margin: .5rem 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* 8) Links & embeds inside content */
a { color: var(--text); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

/* 9) Buttons & CTAs (solid + outline variants) */
.btn { padding: .6em 1.1em; border-radius: 8px; border: 1px solid rgba(212,175,55,.8); background: linear-gradient(to bottom right, rgba(18,80,28,.9), rgba(212,175,55,.6)); color: #071f0a; font-weight: 700; display: inline-block; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }

.cta { padding: .65em 1.1em; border-radius: 8px; border: 1px solid rgba(212,175,55,.9); background: rgba(212,175,55,.92); color: #0b0b0b; font-weight: 700; display: inline-block; text-decoration: none; }
.cta:hover { background: #e3bd2a; }

/* 10) Product ad & footer layout */
.product-ad { display: inline-block; padding: .5rem .75rem; margin: .25rem; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25); }
.product-ad a { color: var(--text); text-decoration: none; display: inline-block; padding: .25rem .4rem; border-radius: 6px; }

/* 11) Footer & additional sections */
footer { padding: 1rem; border-top: 1px solid rgba(255,255,255,.25); margin-top: 1rem; display:flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; }
footer p { margin: .5rem 0; }

/* 12) Accessibility: motion & print */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; transform: none !important; }
}
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: none; border: none; box-shadow: none; }
  a { text-decoration: underline; }
}

/* 13) Additional (aside styling as a graceful fallback) */
aside { padding: 0.5rem; margin: .5rem 0; border-radius: 8px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25); }