/* Section: Theme Tokens */
:root {
  --bg: #0a0f1a;
  --bg-2: #0b1a2a;
  --text: #e8f3ff;
  --muted: #a8c7d9;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.16);
  --accent: #1abc9c;     /* retro teal */
  --accent-2: #2bd4c0;
  --yellow: #fff59d;      /* pastel yellow */
  --yellow-2: #fffbe0;
  --card: rgba(12, 18, 28, 0.58);
  --radius: 12px;
  --shadow: 0 8px 26px rgba(0,0,0,.28);
}

/* Section: Global & Base Styles (Mobile-First) */
* { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; color: var(--text); background: linear-gradient(135deg, rgba(10,15,26,.95) 0%, rgba(8,12,22,.92) 60%, rgba(10,18,28,.95) 100%); }

/* Layered background: gradient + subtle CSS noise/scanlines + lens-flare scatter */
body { position: relative; isolation: isolate; }

/* Lens-flare scatter (pastel yellow + retro teal) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 245, 140, .25) 0 180px, transparent 180px),
    radial-gradient(circle at 68% 8%, rgba(200, 255, 230, .16) 0 210px, transparent 210px),
    radial-gradient(circle at 30% 60%, rgba(255, 235, 140, .22) 0 240px, transparent 240px),
    radial-gradient(circle at 92% 72%, rgba(230, 255, 210, .12) 0 200px, transparent 200px);
  mix-blend-mode: screen;
  opacity: 0.95;
  filter: saturate(1.05);
  animation: flare-drift 60s linear infinite;
}
@keyframes flare-drift { to { transform: translate3d(-20px, 12px, 0); } }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0/ 100% 2px,
              linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0/ 2px 100%;
  mix-blend-mode: overlay;
  opacity: .25;
  animation: scanlines 3s linear infinite;
}
@keyframes scanlines { to { transform: translateY(-2px); } }

/* Section: Layout Primitives */
*,:before,:after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
body { font-size: 16px; line-height: 1.55; color: var(--text); }

/* Section: Structural Elements (glass panels) */
header, nav, main, article, aside, footer {
  background: rgba(12, 18, 28, 0.34);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: var(--radius);
  padding: 0.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  margin: 0.75rem auto;
  max-width: min(1100px, 100%);
}
@supports not (backdrop-filter: blur(12px)) {
  header, nav, main, article, aside, footer {
    background: rgba(12, 18, 28, 0.72);
    border-color: rgba(255,255,255,.42);
  }
}
header { padding: 1rem 1rem 0.75rem; text-align: center; }
main { padding: 1rem 1rem 2rem; }
footer { padding: 1rem; }

/* Section: Content Helpers */
.content { padding: 0 0.25rem; }
.container { width: 100%; max-width: clamp(640px, 92vw, 1100px); margin: 0 auto; padding-inline: 1rem; }

/* Section: Typography & Headings */
h1 { font-size: clamp(1.75rem, 2vw + 1rem, 3.5rem); line-height: 1.04; margin: .25rem 0 .5rem; color: #f6fbff; letter-spacing: .2px; }
h2 { font-size: clamp(1.15rem, 1.6vw + .5rem, 2.25rem); margin: .75rem 0 .25rem; color: #eaf7ff; }
h3 { font-size: 1.05rem; margin: .75rem 0 0.25rem; color: #eaf7ff; }
p { margin: 0 0 1rem; color: var(--muted); }
blockquote {
  border-left: 3px solid rgba(26, 188, 156, .9);
  padding: 0.25rem 0.5rem;
  margin: .5rem 0 1rem;
  color: var(--text);
  opacity: 0.98;
}
em { font-style: italic; color: #f1ffd8; }

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

/* Section: Lists & Tags */
ul { padding-left: 1.25rem; margin: .25rem 0 1rem; }
li { margin: .25rem 0; }
.tag { display: inline-block; padding: .25rem .6rem; border-radius: 999px; font-size: .75rem; color: #062018; background: rgba(26,188,156,.9); }

/* Section: Utility Components */
.card { background: var(--surface); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: .75rem; }

/* Section: Links & Buttons (Interactive) */
a, button, .btn, .cta { text-decoration: none; color: var(--text); cursor: pointer; outline: none; }

/* Base link/button styles */
a { color: var(--accent); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

/* Button variants */
.btn { display: inline-block; padding: .75rem 1.25rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.6); background: linear-gradient(to bottom right, rgba(26,188,156,.95), rgba(16,120,106,.95)); color: #062018; font-weight: 700; transition: transform .15s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.btn--outline { background: transparent; color: var(--text); border: 1px solid rgba(26,188,156,.8); }
.btn--outline:hover { background: rgba(26,188,156,.12); }

/* CTA emphasis variations (for hero actions, etc.) */
.cta { font-weight: 800; letter-spacing: .2px; }

/* Section: Layout Utilities (Grid) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Section: Forms (if present) - basic styling aligned to theme */
input, select, textarea { width: 100%; padding: .6rem .8rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.08); color: var(--text); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,188,156,.25); }

/* Section: Print Styles (readable) */
@media print {
  body { background: #fff; color: #000; }
  header, nav, main, article, aside, footer { background: none; border: none; box-shadow: none; }
}

/* Section: Helpers for semantic structure (no layout change) */
main > article { display: block; }

/* End of stylesheet */