/* Base tokens */
:root {
  --bg: #0b0f14;
  --bg-2: #0f1a20;
  --text: #e6fffe;
  --muted: #9bdbe4;
  --accent: #2bd4c8;
  --accent-2: #7af2ff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(120, 255, 255, 0.28);
}

/* Layered background + scanlines (mobile-first base) */
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.55;
  background:
    linear-gradient(135deg, #0a0f14 0%, #0f1a20 60%, #0a0f14 100%),
    repeating-linear-gradient(to bottom, rgba(46, 230, 235, 0.04) 0 2px, transparent 2px 4px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glass panels (fallback if backdrop-filter unsupported) */
header, main, footer, aside {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.40);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside { background: rgba(255,255,255,.18); }
}

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

/* Content blocks */
.content { padding: 1rem 0; }

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

/* Cards / tags */
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(120,255,255,.25); border-radius: 12px; padding: .75rem; }
.tag { display: inline-flex; align-items: center; padding: .15em .5em; font-size: .75rem; border-radius: 999px;
  border: 1px solid rgba(120,255,255,.4); color: var(--text); background: rgba(0,0,0,.15); }

/* Typography hierarchy (mobile-first) */
h1, h2 { margin: 0 0 .5rem; line-height: 1.15; color: var(--text); }
header h1 { font-size: clamp(1.8rem, 4vw, 3.25rem); letter-spacing: .5px; }
main article h2 { font-size: clamp(1.25rem, 2vw + 1rem, 2rem); margin: .75rem 0 .5rem; }

/* Text blocks */
p { margin: 0 0 1rem; color: rgba(230,245,255,.95); }
.meta { color: var(--muted); font-size: clamp(0.85rem, 1.8vw, 1rem); }

/* Interactive elements */
a, button, .btn, .cta {
  font-family: inherit;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  padding: .55rem .8rem;
  border: 1px solid transparent;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s;
}
a { color: var(--accent); }
a:hover, a:focus-visible { text-decoration: underline; color: var(--accent-2); outline: none; }
button, .btn, .cta { background: var(--accent); color: #031414; border: 1px solid rgba(0,0,0,.15); }
.btn:hover, .cta:hover { transform: translateY(-1px); background: #26c6b7; }
.btn:focus-visible, .cta:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.btn.outline, .cta.outline { background: transparent; color: var(--text); border: 1px solid var(--accent); }

/* Sizing & spacing helpers (semantic) */
nav { display: block; } /* present in some layouts; kept for completeness */

/* Print & accessibility tweaks */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fa;
    --bg-2: #eef3f7;
    --text: #0a1b22;
    --muted: #495760;
    --accent: #0b6a7a;
    --accent-2: #0e98a0;
  }
  body {
    background:
      linear-gradient(135deg, #f6f8fa 0%, #eef3f7 60%, #f6f8fa 100%),
      repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 2px, transparent 2px 4px);
  }
  header, main, footer, aside { background: rgba(255,255,255,.92); border: 1px solid rgba(0,0,0,.08); }
  a, button, .btn, .cta { color: var(--accent); }
}
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: #fff; border: none; }
  a { text-decoration: underline; }
}