/* Base tokens */
:root{
  --bg: #0a1f0d;          /* base dark green */
  --bg-2: #0b2a14;         /* deeper green for depth */
  --surface: rgba(255,255,255,.08);   /* frosted glass surface */
  --border: rgba(255,255,255,.28);    /* panel borders */
  --text: #eafff0;          /* high-contrast text over glass */
  --muted: #c9f0cf;         /* secondary text */
  --accent: #d96b15;         /* burnt orange */
  --accent-2: #2bd47a;        /* green accent for emphasis */
  --shadow: 0 8px 26px rgba(0,0,0,.25);
  --radius: 14px;
  --focus: 2px solid rgba(0,255,128,.9);
  --focus-offset: 2px;
}

/* Reset & helpers */
* { 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);
  font-size: clamp(14px, 2.2vw, 17px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Layered background: gradient + crosshatch + subtle scanlines (pure CSS) */
  background-image:
    linear-gradient(135deg, rgba(6,28,12,.92), rgba(3,14,9,.92) 60%, rgba(3,8,6,.92)),
    repeating-linear-gradient(45deg, rgba(0,80,0,.25) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(-45deg, rgba(216,107,21,.25) 0 2px, transparent 2px 4px);
  background-blend-mode: normal, overlay, overlay;
  background-attachment: fixed;
}

/* Subtle decorative overlay for depth (optional, respects prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  body { background-attachment: scroll; }
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.04), transparent 40%),
              radial-gradient(circle at 70% 60%, rgba(255,255,255,.03), transparent 40%);
  mix-blend-mode: overlay;
  opacity: .6;
}

/* Layout helpers */
.container { max-width: clamp(640px, 86vw, 1100px); margin: 0 auto; padding: 1rem; }

/* Typography helpers (buttons/links) */
a, button, .btn, .cta { text-decoration: none; color: inherit; font: inherit; cursor: pointer; border: none; background: none; }
a { color: var(--accent-2); }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
  border-radius: 6px;
}
button, .btn { display: inline-flex; align-items: center; justify-content: center; padding: .58rem .92rem; border-radius: 8px; background: var(--accent); color: #111; font-weight: 600; transition: transform .2s ease, background-color .2s ease, color .2s ease; }

/* Hero/heading layout */
header {
  padding: 1rem;
  margin: 1rem auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header h1 {
  margin: 0 0 .25rem 0;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: .2px;
  color: #eaffff;
  text-shadow: 0 0 12px rgba(0,255,120,.15);
}
header .meta {
  margin: 0;
  color: #d9ffd8;
  font-size: .9rem;
  opacity: .95;
}
nav { margin-top: .25rem; }

/* Glass panel styling (fallback-friendly) */
.card, article, header, footer, aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card { padding: .85rem; }

/* Main content */
main { padding: 1rem; }
article {
  padding: 1rem;
  margin: 0 auto;
  color: var(--text);
}
article h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin: .75rem 0 .25rem;
  color: #eaffff;
}
article p { margin: .75rem 0; color: #eafff0; }

/* Image framing */
.image-frame, .featured-image {
  width: 100%; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  background: #000;
}
.image-frame { aspect-ratio: 16 / 9; }
.image-frame img, .featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lists */
ul { margin: .75rem 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Aside area (if used) */
aside { padding: .75rem; }

/* Product ad / footer elements (glass panels) */
footer { padding: 1rem; margin: 1rem auto; border-radius: var(--radius); }
.product-ad, .sponsored-page { display: block; text-align: center; margin: .5rem 0; }
.product-ad a, .sponsored-page a { display: inline-block; padding: .75rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.25); color: #fff; text-decoration: none; }
.product-ad a:hover, .sponsored-page a:hover { background: rgba(0,0,0,.35); }

/* Utility components */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Tags / chips */
.tag { display: inline-block; font-size: .75rem; padding: .25rem .6rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(216,107,21,.25); color: #072e0a; }

/* Forms (basic) */
input, textarea { padding: .5rem .6rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: var(--text); outline: none; }

/* Button variants: solid (default) and outline */
.btn { background: var(--accent); color: #111; }
.btn.outline { background: transparent; color: var(--text); border: 1px solid var(--accent); }

/* Focus visibility improvements for accessibility */
:focus-visible { outline: 2px solid #6aff6a; outline-offset: 2px; }

/* Hover states */
a:hover { text-decoration: underline; }
.btn:hover { background: #e0560f; }

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

/* Small-screen refinements */
@media (max-width: 680px) {
  header { padding: .75rem; border-radius: 12px; }
  article { padding: .75rem; }
  .image-frame, .featured-image { border-radius: 10px; }
}