/* Root Tokens: iridescent green + laser lemon ambiance */
:root{
  --bg: #0a0f12;
  --bg-2: rgba(0,255,120,.18);
  --text: #eafff0;
  --muted: #9be0c0;
  --accent: #39ff14;       /* neon green */

  --accent-2: #f6ff32;     /* laser lemon */

  --card: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.25);
  --shadow: 0 8px 20px rgba(0,0,0,.28);
  --radius: 14px;

  --container-w: clamp(680px, 88vw, 1120px);
}

/* Base + layout setup (mobile-first) */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + iridescent hints + scanline noise */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(57,255,140,.18), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(0,255,110,.14), transparent 40%),
    linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,0) 60%),
    linear-gradient(135deg, rgba(10,25,20,.95), rgba(5,10,12,.95) 60%);
  background-blend-mode: overlay, overlay, normal, normal;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  /* subtle noise/scanline overlay (pure CSS) */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(0,0,0,.03) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: .6;
  z-index: 0;
}
main { flex: 1 1 auto; }

/* Centered, responsive container utility */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }

/* Glassmorphism panels (fallback + backdrop-filter) */
header, main, footer, aside {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  margin: .75rem auto;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.4);
  }
}

/* Typography */
h1, h2, h3 { color: var(--text); margin: .25rem 0; line-height: 1.15; }
h1 { font-size: clamp(1.75rem, 1.5rem + 2vw, 3rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 1rem + 1.5vw, 1.75rem); margin-top: .75rem; }
h3 { font-size: clamp(1.1rem, .8rem + 1vw, 1.25rem); }

p { margin: .75rem 0; color: color-mix(in oklab, var(--text) 86%, black 14%); }

/* Featured image frame with aspect ratio and glowborder */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .25s ease;
}
.image-frame:focus-within img,
.image-frame:hover img { transform: scale(1.02); }

/* Content region (textual content) */
.content { font-size: clamp(1rem, 0.95vw + 0.4rem, 1.125rem); line-height: 1.6; color: var(--text); }

/* Lists and small UI helpers */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Utility: cards / tags */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.tag {
  display: inline-block;
  padding: .25em .55em;
  border-radius: 999px;
  font-size: .75rem;
  color: var(--text);
  background: rgba(57,255,140,.18);
  border: 1px solid rgba(57,255,140,.4);
}

/* Images and embedded media with frame feel */
.featured-image { margin: 0 0 1rem; border-radius: 12px; overflow: hidden; }

/* Links, buttons, CTAs (focus-visible, hover states) */
a, button, .btn, .cta {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
a { cursor: pointer; color: var(--text); }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn, .cta {
  display: inline-block;
  padding: .72rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(135deg, rgba(57,255,140,.95), rgba(0,255,170,.9));
  color: #041b0a;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.btn:hover, .cta:hover {
  transform: translateY(-1px);
}
.btn--outline, .cta--outline {
  background: transparent;
  border: 1px solid rgba(57,255,140,.8);
  color: var(--text);
}
.btn--outline:hover, .cta--outline:hover {
  background: rgba(57,255,140,.15);
}
.btn + .btn { margin-left: .5rem; }

/* Navigation styling within header */
nav {
  display: flex; gap: .5rem; align-items: center; flex-wrap: wrap;
  margin-top: .25rem;
}
nav a {
  color: var(--text);
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid transparent;
}
nav a:hover { text-decoration: underline; }

/* Layout helpers for responsive grids if used by page components */
.container.grid { padding: 0; }

/* Print styles: basic readability */
@media print {
  body::before { display: none; }
  body, header, main, footer { background: white; color: black; }
  a, .btn, .cta { color: #000; text-decoration: underline; }
}

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