/* 1) Tokens */
/* Layered, lime-forward cyber theme with glass panels and accessibility in mind */
:root {
  --bg: #0a0f12;
  --bg-2: #0b151b;
  --text: #eafff0;
  --muted: #a8f5b2;
  --accent: #9dff3f;
  --accent-2: #b6ff66;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  --radius: 14px;
  --focus: 2px solid var(--accent-2);
}

/* Light mode tweaks for legibility */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5fff7;
    --bg-2: #eefaf0;
    --text: #0b1a12;
    --muted: #2e5b3e;
    --accent: #2a7a0f;
    --accent-2: #256f1a;
    --card: rgba(255, 255, 255, 0.85);
    --border: rgba(0, 0, 0, 0.15);
  }
}

/* 2) Base + Layout helpers */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial;
  font-size: clamp(14px, 0.25vw + 12px, 16px);
  line-height: 1.6;
  min-height: 100dvh;
  background: 
    radial-gradient(circle at 15% 15%, rgba(157,255,63,0.14), transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(182,255,102,0.12), transparent 40%),
    linear-gradient(#0a0f12 0%, #0a0f12 60%, #05060a 100%);
  background-attachment: fixed;
  position: relative;
  isolation: isolate;
}
body::after {
  /* subtle lime scanlines overlay (pure CSS) */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(157,255,63,0.04) 0px,
    rgba(157,255,63,0.04) 1px,
    transparent 1px,
    transparent 2px
  );
  mix-blend-mode: overlay;
  opacity: 0.75;
  filter: saturate(1.1);
}
.container { width: 100%; max-width: clamp(320px, 86vw, 1100px); margin: 0 auto; padding: 0 1rem; }

/* 3) Glass panels (fallback if backdrop-filter not available) */
.glass, header, main, article, footer, aside {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass, header, main, article, footer, aside { background: rgba(255,255,255,0.12); }
}
header { padding: 1rem 0; }
header h1 { font-size: clamp(1.8rem, 2.5vw + 1rem, 3.4rem); margin: 0; letter-spacing: .4px; }
header .meta { font-size: clamp(0.9rem, 0.4vw + 0.6rem, 1.05rem); color: var(--muted); margin-top: .25rem; }

/* 4) Basic page sections (semantic selectors required) */
nav { display: block; } /* present for completeness */
main { padding: 0; }
article { padding: 1rem; }
footer { padding: 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }

/* 5) Imagery */
.image-frame { display: block; aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(0,255,120,0.58); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 6) Content container */
.content { padding: 0; }

/* 7) Lists & typography adjustments */
ul { padding-left: 1.25rem; margin: 0.75rem 0; }
li { margin: 0.25rem 0; }

/* 8) Links & CTAs */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 4px; }

/* Buttons & CTAs styles (solid + outline) */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.25rem; border-radius: 999px; border: 1px solid rgba(0,0,0,0.15);
  background: rgba(0,0,0,0.28); color: var(--text); cursor: pointer; font-weight: 600; font-size: clamp(13px, 0.6vw + 13px, 15px);
  transition: transform .15s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: linear-gradient(135deg, rgba(157,255,63,0.95), rgba(182,255,102,0.85)); color: #041a0b; border: 1px solid rgba(0,0,0,0.15); }
.btn--outline { background: transparent; border: 1px solid rgba(157,255,63,0.8); color: var(--text); }
.cta { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.25rem; border-radius: 999px; border: 1px solid rgba(157,255,63,0.8);
  background: rgba(0,0,0,0.28); color: var(--text); text-align: center; cursor: pointer; font-weight: 600; }

/* 9) Utilities (layout helpers) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); border-radius: 12px; padding: 1rem; box-shadow: 0 6px 20px rgba(0,0,0,0.25); }

/* 10) Small UI tokens */
.tag { display: inline-block; padding: .15em .6em; border-radius: 999px; font-size: .75rem; background: rgba(0,255,120,0.15); border: 1px solid rgba(0,255,120,0.6); color: #eafff1; }

/* 11) Global layout helpers (container) */
.container { width: 100%; max-width: clamp(320px, 86vw, 1100px); margin: 0 auto; padding: 0 1rem; }

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

/* 13) Print styles */
@media print {
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
  .glass { background: #fff; border: 1px solid #ddd; }
  .container { padding: 0; }
}

/* 14) Layout baseline for main sections (dark default with glass panels) */
header, main, footer, aside { padding: 1rem; }

/* 15) Structural semantics (ensure selectors exist for HTML usage) */
header, nav, main, article, aside, footer { outline: none; }