/* Tokens */
:root {
  --bg: #1a2b1a;          /* olive foundation */
  --bg-2: #2b3f1a;        /* olive accent */
  --text: #e9f6ff;          /* high-contrast on dark */
  --muted: #a6c6d9;         /* pastel blue-ish muted */
  --accent: #7bd2ff;        /* pastel blue accent */
  --accent-2: #b5e8ff;      /* lighter accent */
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(122, 210, 255, 0.36);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* Reset & helpers */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + subtle scanline */
  background-image:
    linear-gradient(135deg, rgba(26,43,26,.92) 0%, rgba(26,43,26,.92) 60%, rgba(10,15,10,.95) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.08)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: normal, normal, overlay;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::before {
  /* subtle olive hexagonal honeycomb vibe (overlay) */
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,.04) 12px, transparent 12px),
    linear-gradient(-30deg, rgba(255,255,255,.04) 12px, transparent 12px);
  background-size: 24px 42px;
  mix-blend-mode: overlay;
  opacity: .25;
  pointer-events: none;
  z-index: 0;
}
* { box-sizing: border-box; }

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

/* Glass panels (fallbacks provided) */
header, nav, main, article, aside, footer {
  background: rgba(10, 18, 14, 0.28);
  border: 1px solid rgba(122, 210, 255, 0.36);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  header, nav, main, article, aside, footer {
    background: rgba(10, 18, 14, 0.6);
  }
}
nav { padding: 0; }

/* Typography scale (fluid) */
h1, h2 { font-family: ui-sans-serif, system-ui; font-weight: 700; margin: 0.2em 0; }
h1 { color: #eaf5ff; font-size: clamp(1.75rem, 2.5vw + 1rem, 3.5rem); line-height: 1.08; }
h2 { color: #e4f0ff; font-size: clamp(1.1rem, 0.8vw + 0.9rem, 1.6rem); }

p { font-size: clamp(1rem, 0.9vw + 0.9rem, 1.125rem); color: #dbeefc; line-height: 1.5; }

/* Header hero styling */
header { text-align: center; padding: 1.5rem 1rem; margin: 0.5rem auto; }
header h1 { font-size: clamp(2rem, 1.8vw + 1rem, 3rem); margin-bottom: 0.25rem; }
header .meta { font-size: 0.95rem; color: var(--muted); }

/* Article content framing */
article { line-height: 1.6; }

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

/* Content area helper (for consistency with requirement) */
.content { padding: 0 0 1rem; }

/* Product ad styling (footer sections) */
.product-ad, .sponsored-page {
  display: block;
  margin: 0.75rem 0;
}
.product-ad a, .sponsored-page a { text-decoration: none; display: block; padding: 0.75rem; border-radius: 12px; border: 1px solid rgba(122,210,255,.5); background: rgba(122,210,255,.2); color: #eaffff; text-align: center; }
.product-ad a:hover, .sponsored-page a:hover { background: rgba(122,210,255,.28); }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }

/* Link & button treatments (accessibility) */
a, button, .btn, .cta { cursor: pointer; color: var(--text); text-decoration: none; outline: none; }
a { color: #b7e0ff; }
a:hover, a:focus-visible { text-decoration: underline; }

/* Button variants */
.btn, .cta { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.1rem; border-radius: 999px; border: 1px solid rgba(123,208,255,.6); background: rgba(123,208,255,.25); color: #eaffff; font-weight: 600; font-size: 0.95rem; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); background: rgba(123,208,255,.35); }
.btn--outline { background: transparent; color: var(--text); border: 1px solid rgba(123,208,255,.9); }
.btn--solid { background: var(--accent); color: #041018; border: none; }
.btn:focus-visible, .cta:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.cta { padding: .75rem 1.05rem; }

/* Lists & chips */
ul, ol { margin: 0 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Chips / tags */
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(123,208,255,.25);
  border: 1px solid rgba(123,208,255,.5);
  color: #eaffff;
}

/* Misc utilities & layout helpers */
.small { font-size: .9rem; color: var(--muted); }

/* Print styles (readability) */
@media print {
  body { background: white; color: black; }
  header, nav, main, article, aside, footer { background: transparent; border: none; box-shadow: none; }
}

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