/* Base Layer & Tokens */
:root {
  --bg: #0b0b0a;
  --bg-2: #14140f;
  --text: #e8ffd9;
  --muted: #a9f7b2;
  --accent: #6dff5a;
  --accent-2: #ffd36b;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0,0,0,0.35);
  --radius: 14px;
}

/* Section: Reset & Layered Background (Future Cyberpunk) */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  background-image:
    radial-gradient(circle at 60% -10%, rgba(255, 213, 0, 0.15), transparent 40%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1700 40%, #ffd36b 60%, #2bdc6c 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Section: Layout Helpers */
.container { max-width: clamp(320px, 86vw, 1100px); margin: 0 auto; padding-inline: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: .75rem; }

/* Section: Typography & Core Elements */
header, main, footer, article, aside { display: block; }
header { padding: 1.75rem 1rem; text-align: center; border-bottom: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.18); border-radius: 12px; margin: .5rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
header h1 { font-size: clamp(1.75rem, 2vw + 1rem, 3rem); margin: .25rem 0 .25rem; letter-spacing: .2px; }
header .meta { font-size: .85rem; color: rgba(232,255,217,.95); opacity: .95; }

/* Content within article */
main { padding: 1rem; }
article { width: 100%; padding: 0; }

/* Images & Media */
.image-frame { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 22px rgba(0,0,0,.35),
  inset 0 0 12px rgba(0,255,120,.15); margin: .75rem 0; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content typography helpers (section target) */
.content { font-size: clamp(1rem, 0.9vw + 0.5rem, 1.125rem); line-height: 1.6; color: rgba(232,255,216,.95); }

/* Headings within article */
h2 { font-size: clamp(1.5rem, 1.2vw + 1rem, 2.4rem); margin: .75rem 0 .5rem; color: #eaffd6; }
h3 { font-size: clamp(1.2rem, 1vw + .6rem, 1.6rem); margin: .75rem 0; color: #d9ffd1; }

/* Lists & inline elements */
ul { margin: .5rem 0 1rem 1.15rem; padding: 0; }
li { margin: .25rem 0; }

/* Links & Buttons (Interactive) */
a, button, .btn, .cta { color: #eafff0; text-decoration: none; border: none; background: none; cursor: pointer; }
a { color: var(--accent-2); }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }
.btn, .cta { display: inline-block; padding: .6rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.45);
  background: rgba(0,0,0,.25); color: #fff; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); background: rgba(0,0,0,.32); }
.btn.primary { background: linear-gradient(to right, var(--accent-2), #ffd76a); border: none; color: #0a1b00; }
.btn.secondary { background: rgba(0,0,0,.24); border: 1px solid rgba(255,255,255,.4); }

/* Focus treatment for accessibility (focus-visible) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Section: Utility Components */
.tag { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem;
  background: rgba(109,255,90,.18); border: 1px solid rgba(109,255,144,.45); color: #eafff1; }

/* Section: Specific regions (styling hooks) */
.product-ad { display: inline-block; padding: .75rem 1rem; border-radius: 12px; margin: .5rem 0;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }
.product-ad h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.product-ad a { display: inline-block; padding: .5rem 0.75rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.25); color: #fff; }

/* Section: Page scaffolding defaults (ensuring WCAG AA where feasible) */
p { margin: .75rem 0; color: rgba(232,255,216,.92); }

/* Layout width constraints for main content readability on wide screens */
main { display: block; max-width: 860px; margin: 0 auto; }

/* Print Styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: #fff; color: #000; }
  a { text-decoration: underline; }
}

/* Motion: Respect user preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}