/* Section: Base & Palette */
:root{
  --bg: #0a0a0f;
  --bg-2: #14070b;
  --text: #eafff7;
  --muted: #a8a8a8;
  --accent: #e4002b;       /* crimson */
  --jade: #2bd4a7;          /* jade accents */
  --glass: rgba(16,16,20,.58);
  --glass-2: rgba(16,16,20,.40);
  --border: rgba(255,255,255,.30);
  --shadow: 0 10px 28px rgba(0,0,0,.6);
  --focus: 0 0 0 3px rgba(0,255,170,.6);
  --radius: 14px;
}

html, body { height: 100%; }
* { box-sizing: border-box; }

html, body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  background-color: #000;
  /* Layered background: crimson glow + jade accents + subtle scanlines/noise */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(43,212,167,.20), transparent 40%),
    linear-gradient(135deg, rgba(180,0,0,.40), rgba(0,0,0,.10) 40%, rgba(0,0,0,.0) 60%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: screen, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

/* Section: Layout primitives */
.container { width: min(90%, 1100px); margin-inline: auto; padding-inline: 1rem; padding-block: 1rem; }
.grid { display: grid; gap: 1rem; }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tag { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; color: var(--jade); background: rgba(43,212,167,.15); border: 1px solid rgba(43,212,167,.35); }

/* Section: Typographic scale (fluid) */
h1 { font-size: clamp(2rem, 3vw + 1rem, 3.75rem); line-height: 1.08; margin: .25rem 0 .5rem; letter-spacing: .2px; }
h2 { font-size: clamp(1.5rem, 2vw + .75rem, 2.25rem); margin: .75rem 0 .5rem; }
h3 { font-size: clamp(1.25rem, 1.8vw + .5rem, 1.6rem); margin: .75rem 0; }
p { color: rgba(234,255,247,.92); margin: .5rem 0; }

/* Section: Header / Hero (glass panel) */
header, main, footer { 
  margin: 1rem auto; 
  padding: 1.25rem; 
  max-width: 1100px; 
  border-radius: 16px; 
  background: rgba(8,8,12,.58);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  /* Fallback for no backdrop-filter */
  /* The fallback is the same color with slightly higher opacity for readability */
  /* If backdrop-filter unsupported, the rgba still yields frosted feel */
}
header { text-align: center; }
header .meta { color: #cfeee0; font-size: .9rem; opacity: .95; margin-top: .25rem; }

nav { margin-top: .75rem; display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }
nav a { color: var(--text); text-decoration: none; padding: .4rem .6rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); }
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: none; }

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

/* Section: Content structure inside article / main content */
.content { padding: .25rem 0 1rem; color: rgba(234,255,247,.95); }

/* Section: Typography & accessibility helpers */
a { color: var(--text); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }
button, .btn, .cta { font: inherit; }

/* Section: Buttons (solid + outline variants) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.25rem; border-radius: 999px; border: 1px solid rgba(34,197,94,.85);
  background: linear-gradient(135deg, rgba(14, 194, 109, .95), rgba(8, 148, 96, .95));
  color: #041b14; cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 14px rgba(0,0,0,.45);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 0; box-shadow: var(--focus), 0 6px 14px rgba(0,0,0,.45); outline-offset: 2px; }

.btn--outline { background: transparent; color: var(--text); border: 1px solid rgba(0,255,170,.85); }
.btn--outline:hover { background: rgba(0,255,170,.08); }

/* Convenience alias for CTAs */
.cta { text-decoration: none; }

/* Section: List styling */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Section: Misc helpers / tokens */
.content .muted { color: var(--muted); font-size: .95rem; }

/* Section: Utility containers */
.aside { display: block; margin: .5rem 0; }

/* Section: Print basics (small) */
@media print {
  body { color: #000; background: #fff; }
  a { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Section: Responsive behavior */
@media (min-width: 720px) {
  .container { padding-inline: 2rem; }
  header, main, footer { padding: 1.75rem; }
}
@media (min-width: 1024px) {
  .grid.auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}