/* Base Tokens */
:root{
  --bg: #042a15;            /* deep emerald base */
  --bg-2: #0b3f23;          /* mid emerald */
  --bg-3: #0f5b34;          /* highlight emerald */
  --text: #eafff0;           /* high-contrast text on glass */
  --muted: #cfe8d8;          /* muted text */
  --accent: #d4b017;         /* mustard accent */
  --accent-2: #b08a00;       /* deeper mustard */
  --panel: rgba(8, 28, 12, 0.28);        /* frosted panel base */
  --panel-strong: rgba(0,0,0,.28);
  --border: rgba(255,255,255,.30);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --radius: 14px;
}

/* Reset-ish & typography */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(4, 12, 6, 0.25), rgba(6, 28, 17, 0.25)),
    linear-gradient(135deg, #0b2d15 0%, #0a421a 60%, #0b2e19 100%);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  body { background-blend-mode: normal; }
}

/* Subtle noise/scanline layer (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: .45;
}

/* Layout scaffolding */
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding: 0 1rem; }

/* Glass panels (fallbacks included) */
header, main, footer, aside, article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.75rem auto;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside, article {
    background: rgba(4, 16, 8, 0.75);
    border-color: rgba(255,255,255,.45);
  }
}

/* Header & typography hierarchy (hero pattern) */
header { display: block; padding: 1rem; text-align: left; }
header h1 { font-size: clamp(1.4rem, 2.5vw + 1rem, 2.4rem); line-height: 1.15; margin: 0 0 .4rem; letter-spacing: .2px; }
header .meta { font-size: 0.92rem; color: var(--muted); margin: 0 0 .6rem; }
nav { margin-top: .25rem; }
nav a { color: var(--accent); text-decoration: none; font-weight: 700; padding: .25rem .5rem; border-radius: 6px; }
nav a:hover, nav a:focus { text-decoration: underline; outline: none; }

/* Main content & article */
main { display: block; }
article { display: block; }

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

/* Content typography & structure */
.content { color: #eafff0; line-height: 1.6; font-size: clamp(1rem, 0.5vw + 0.95rem, 1.125rem); }
.content h1, .content h2, .content h3 { line-height: 1.2; margin: .75rem 0 .5rem; color: var(--text); }
.content p { margin: .75rem 0; }
.content ul { padding-left: 1.25rem; margin: .5rem 0; }
.content li { margin: .25rem 0; }

/* Lists & emphasis */
blockquote { margin: .75rem 0; padding: .5rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); background: rgba(255,255,255,.04); border-radius: 6px; }

/* Content container utilities */
.content .tag { display: inline-block; padding: .15em .6em; border-radius: 999px; font-weight: 700; font-size: .75rem; color: #012b10; background: linear-gradient(135deg, #b4e8ac, #67c782); }

/* Simple grid & cards (responsive utilities) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Cards & panels (reusable) */
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); border-radius: 12px; padding: .75rem; box-shadow: 0 6px 16px rgba(0,0,0,.28); }

/* Product ad & sponsored sections (footer area) */
.product-ad, .sponsored-page { display: block; padding: .75rem; text-align: left; }
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; font-weight: 700; display: inline-block; padding: .5rem 0; }
.product-ad a { color: var(--accent); }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Links & interactive controls (colors high-contrast on glass) */
a, button, .btn, .cta { text-shadow: none; color: var(--text); text-decoration: none;}
a { color: var(--accent); }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }

/* Buttons (solid & outline) */
.btn, .cta { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.25rem; border-radius: 999px; border: 1px solid rgba(0,0,0,.15);
  background: var(--accent); color: #111; font-weight: 700; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: #e3a80b; }
.btn:active, .cta:active { transform: translateY(0); }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--accent); }

/* Focus visibility for accessibility */
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 6px; }

/* Form controls (basic styling if present) */
input, button { font: inherit; color: inherit; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); border-radius: 8px; padding: .5rem .75rem; }
input::placeholder { color: rgba(255,255,255,.6); }

/* Aside styling (supplementary content) */
aside { display: block; }

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .btn, .cta { transition: none; }
  :focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
}

/* Typography helpers (compact scale) */
h1, h2, h3 { line-height: 1.25; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
}
