/* Section: Theme tokens (root) */
:root{
  --bg: #041015;
  --bg-2: #0b1f1a;
  --text: #e8f3e8;
  --muted: #a8d0b0;
  --accent: #3a7cff;
  --accent-2: #86d07f;
  --sage: #9dbf8e;
  --sage-2: #6ea57a;
  --glass: rgba(255,255,255,.08);
  --glass-2: rgba(255,255,255,.16);
  --border: rgba(255,255,255,.25);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(0,0,0,.28);
  --focus: 0 0 0 3px rgba(58,124,255,.75);
}

/* Section: Global & Layout (mobile-first) */
*,
*::before,
*::after{ box-sizing: border-box; }
html, body{ height:100%; }
html{ font-size: 100%; }
body{
  margin:0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(6,25,60,.92), rgba(6,60,40,.92) 60%, rgba(6,60,40,.88) 100%),
    linear-gradient(#0a1a12 0 0); /* fallback color layer */
  background-attachment: fixed;
  /* Layered gradient + subtle noise/scanlines (pure CSS) */
  position: relative;
  z-index: 0;
}
body::before{
  content:"";
  position: fixed;
  inset:0;
  z-index: -1;
  /* soft noise via tiny squares and lines (pixel mosaic feel) */
  background-image:
    linear-gradient(0deg, rgba(0,0,0,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,.04), rgba(0,0,0,.04));
  background-size: 16px 16px, 16px 16px, 100% 100%;
  mix-blend-mode: overlay;
  opacity:.65;
}
body::after{
  content:"";
  position: fixed;
  inset:0;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.04), rgba(255,255,255,.04));
  mix-blend-mode: overlay;
  pointer-events:none;
  opacity:.15;
}

/* Section: Glass panels (fallback handled) */
.glass, .content, .card, .product-ad {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)){
  .glass, .content, .card, .product-ad { 
    background: rgba(255,255,255,.14);
  }
}
a, button, .btn, .cta{
  color: inherit;
  text-decoration: none;
}
button { font-family: inherit; }

/* Section: Container & Utilities */
.container{ width: 100%; max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid{ display: grid; gap: 1rem; }
.card{ padding: 1rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); }

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

/* Section: Typography & Elements */
header, main, article, aside, footer{ display:block; }
header{
  padding: 2rem 1rem;
  text-align: center;
}
header h1{
  margin: .15rem 0 .5rem;
  font-size: clamp(1.6rem, 1.6rem + 1.8vw, 3rem);
  line-height: 1.12;
  letter-spacing: .2px;
}
header .meta{
  margin-top:.25rem;
  color: var(--muted);
  font-size: .92rem;
}
nav{ margin-top:.75rem; }
nav a{
  padding:.4rem .75rem; border-radius: 999px;
  border: 1px solid rgba(125,235,180,.55);
  color: #eafff2;
  background: rgba(0,0,0,.15);
}
nav a:hover{ background: rgba(0,0,0,.25); transform: translateY(-1px); }

/* Hero/Intro content */
main{ padding: 1rem 0 2rem; }
.featured-image{ margin: 1rem 0; }

/* Section: Lists & content blocks */
.content{ padding: 1rem; border-radius: var(--radius); }
.content h2, article h2{ font-size: clamp(1.4rem, 2.4vw, 2rem); margin: .5rem 0 0.2rem; color: #e8ffe9; }
.content h3{ font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--accent); margin-top:.6rem; }
.content p{ color: #eaf7ea; margin: .4rem 0 1rem; }
.content ul{ margin: .4rem 0 1rem 1.1rem; }

/* Blockquotes */
blockquote{
  margin: .8rem 0; padding: .6rem 1rem; border-left: 4px solid var(--accent);
  background: rgba(20,40,60,.25);
  color: #dff5e9;
  border-radius: 8px;
}

/* Section: Utilities (tag, etc.) */
.tag{
  display:inline-block; font-size:.75rem; padding:.25rem .5rem; border-radius:999px;
  background: rgba(62, 167, 106, .28);
  color: #dffbe5;
  border: 1px solid rgba(99, 204, 160, .6);
}

/* Section: Footer & Ads (Glass panels) */
footer{ padding: 1rem; text-align: center; display: grid; gap: .75rem; align-items: center; justify-items: center; }
.product-ad, .sponsored-page{ padding: .75rem 1rem; width: min(540px, 92%); text-align: center; text-decoration: none; }
.product-ad a, .sponsored-page a{ display:block; color:inherit; text-decoration: none; }

/* Section: Colors for links & focus visibility (WCAG AA) */
a:focus-visible, button:focus-visible{
  outline: none;
  box-shadow: var(--focus);
  z-index: 1;
}
a:hover, button:hover, .cta:hover{ filter: brightness(1.05); transform: translateY(-0.5px); }

/* Button system (solid and outline variants) */
.btn{ display:inline-block; padding:.75rem 1rem; border-radius: 999px; border:1px solid rgba(255,255,255,.4);
  font-weight: 700; text-align:center; background: var(--accent); color:#fff; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn--outline{ background: transparent; border-color: rgba(125,235,180,.6); color: #eafff0; }
.btn:focus-visible{ outline: none; box-shadow: var(--focus); }

/* Section: Print (basic readability) */
@media print{
  body{ background: #fff; color:#000; }
  nav, .image-frame, .glass, .content{ background: transparent; border: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; transform: none !important; }
}
