/* Section: Base Palette & Tokens */
:root {
  --bg: #0b2b14;
  --bg-2: #0a3a17;
  --bg-3: #04140e;
  --surface: rgba(12, 40, 28, 0.14);
  --surface-2: rgba(12, 40, 28, 0.28);
  --text: #eafff2;
  --muted: #b7d6c3;
  --accent: #2bd967;
  --accent-2: #9ff5d0;
  --focus: #7af5b0;
  --card-border: rgba(180, 255, 210, 0.28);
}

/* Section: Reset, Layout & Typography (Mobile-First) */
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; font-size: clamp(14px, 1.2vw + 12px, 18px); line-height: 1.5; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,.05) 60%),
    linear-gradient(#0b2b14 0%, #04140e 60%, #04110a 100%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.06) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, #0b2b14 0%, #0a3a17 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,.04), rgba(0,0,0,.04)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.05) 0 1px, transparent 1px 3px);
  opacity: .25;
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: reduce) {
  body { background-attachment: scroll; }
  * { animation: none !important; transition: none !important; }
}

/* Section: Structural containers */
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); padding-inline: 1rem; margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Section: Glass panels (fallback + blur) */
.glass {
  background: rgba(12,40,28,.14);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .glass { background: rgba(12,40,28,.22); }
}

/* Section: Core page elements */
header, nav, main, article, aside, footer { display: block; }

/* Header: hero */
header {
  padding: 1.75rem 1rem 0.75rem;
  text-align: center;
}
header h1 {
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  line-height: 1.15;
  margin: 0.25rem 0 0.25rem;
  color: var(--text);
}
header .meta {
  font-size: clamp(0.9rem, 0.8vw, 1.05rem);
  color: var(--muted);
  margin-top: 0.25rem;
}
header nav { margin-top: 0.75rem; display: inline-flex; gap: .5rem; }

/* Header links (Back) */
header nav a {
  display: inline-block;
  padding: .5rem .75rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.15);
}
header nav a:hover { background: rgba(0,0,0,.25); }
header nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Main content */
main { padding: 1rem 0; }
article { max-width: 900px; margin-inline: auto; padding: 0 1rem; }

/* Featured image frame */
.featured-image { margin: 1rem 0; }
.image-frame { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(160,255,210,.4);
  box-shadow: inset 0 0 12px rgba(0,0,0,.25);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Typography content */
h2 { font-size: clamp(1.4rem, 2.2vw, 2.4rem); margin: .75rem 0 .5rem; color: var(--text); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.6rem); margin: .75rem 0; color: var(--text); }
p { font-size: clamp(0.95rem, 1.6vw, 1.125rem); margin: 0 0 1rem; color: var(--text); }

/* Content helper & lists */
.content { padding: .25rem 0; color: var(--text); }
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Glassy sections within content/footer */
.product-ad, .sponsored-page { margin: .5rem 0; padding: .85rem; text-align: center; }
.footer-note { text-align: center; }

/* Section: Image & utility classes */
.image-frame { border-radius: 12px; overflow: hidden; }
.image-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Section: Misc utilities (cards, tags) */
.card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: .75rem; }

/* Tag styling for small labels */
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .8rem;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.12);
}

/* Section: Links & Buttons (Interactive states) */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }

button, .btn, .cta {
  display: inline-block;
  padding: .55rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.16);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); background: rgba(0,0,0,.22); }
button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.btn.primary, .cta.primary {
  background: linear-gradient(135deg, rgba(43,217,103,.95), rgba(22,110,60,.95));
  border: 1px solid rgba(140,230,180,.6);
  color: #06220a;
}
.cta {
  background: linear-gradient(135deg, rgba(43,217,103,.9), rgba(22,110,60,.9));
  border: 1px solid rgba(140,230,180,.6);
  color: #fff;
}
.btn:focus-visible, .cta:focus-visible { outline-offset: 2px; }

/* Section: Print readability (optional) */
@media print {
  body { background: #fff; color: #000; }
  a, .btn, .cta { text-decoration: underline; }
}
