/* Section: Tokens & Base */
:root{
  --bg: #0b1020;
  --bg-2: #11192b;
  --text: #eaf6ff;
  --muted: #b5c8d9;
  --accent: #F0E68C;      /* khaki */
  --accent-2: #7BD3FF;     /* sky blue */
  --glass: rgba(255,255,255,.08);
  --glass-border: rgba(255,255,255,.25);
  --shadow: 0 8px 24px rgba(0,0,0,.28);
  --radius: 12px;
  --focus: 3px solid #7BD3FF;
}

/* Section: Reset & Base Typography (mobile-first) */
html, body {
  height: auto;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: 
    radial-gradient(circle at 20% -10%, rgba(124, 210, 255, .22) 0 25%, transparent 40%),
    linear-gradient(135deg, #0b1020 0%, #0b1020 60%, #0a1220 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 2px, transparent 2px 4px);
  background-blend-mode: overlay, normal, overlay;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Section: Layout Helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 88vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .15em .5em;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  color: #041018;
  background: linear-gradient(#ffffffdd, #ffffff88);
  border: 1px solid rgba(255,255,255,.5);
}
.image-frame {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  background: #0a0f1a;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Section: Glass Panels (with backdrop-filter fallback) */
header, main, footer, aside, .card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 1rem;
  box-shadow: var(--shadow);
}
header { text-align: center; padding: 1.75rem 1rem; margin: 0.75rem auto; }
header h1 { font-size: clamp(1.75rem, 2.2vw + 1rem, 2.75rem); line-height: 1.15; margin: .25rem 0 .5rem; letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: .9rem; margin: 0 0 .25rem; }

/* Section: Typography & Hierarchy */
main { padding: 1rem 0; }
article { display: block; padding: 0; }
h2 { font-size: clamp(1.25rem, 1.6vw + .8rem, 1.88rem); margin: 1.1rem 0 .5rem; color: #eaf7ff; }
h3 { font-size: clamp(1rem, 1.2vw + .5rem, 1.25rem); margin: .9rem 0 .4rem; color: #eaf7ff; }
p { margin: .75rem 0; color: #e8f2ff; }

/* Section: Links & Buttons (interactive states) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
}
a:hover, a:focus { text-decoration: underline; text-underline-offset: .15em; }
a:focus-visible, button:focus-visible, .cta:focus-visible, .btn:focus-visible {
  outline: none;
  outline: 0;
}
a, button, .btn, .cta {
  outline-offset: 4px;
}
.btn, .cta {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(127, 190, 255, .28);
  color: #041018;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover, .cta:hover {
  transform: translateY(-1px);
  background: rgba(125, 213, 255, .55);
  border-color: rgba(125, 213, 255, .85);
}
.btn:active, .cta:active {
  transform: translateY(0);
  background: rgba(125, 213, 255, .75);
}
.btn.primary {
  background: linear-gradient(135deg, rgba(111, 214, 255, .95), rgba(125, 213, 255, .75));
  color: #041018;
  border-color: rgba(125, 213, 255, .95);
}
.btn:focus-visible, .cta:focus-visible, .btn.primary:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}
.inline-links { display: inline-flex; gap: .75rem; align-items: center; }

/* Section: Content area (utilitarian) */
.content { padding: .5rem 0; color: var(--text); }

/* Section: Page Sections */
header > nav {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-top: .75rem;
}
nav a {
  color: var(--text);
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.35);
}
nav a:hover { background: rgba(125,213,255,.25); }

/* Section: Layout primitives for responsive design */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: Print Styles */
@media print {
  html, body { background: white; color: black; }
  header, main, footer { border: none; background: none; box-shadow: none; }
  a { text-decoration: underline; color: #000; }
}
