/* Section: Tokens */
:root {
  --bg: #4169e1;           /* royal blue base background */
  --bg-2: #1e3a8a;         /* navy accent */
  --text: #eaf2ff;          /* high-contrast text on blue */
  --muted: #bfd0ff;          /* subtle supporting text */
  --accent: #0b2e6a;         /* navy focus/accent color */
  --accent-2: #1e3a8a;       /* lighter navy for hover states */
  --surface: rgba(255, 255, 255, 0.08);       /* glass surface */
  --surface-2: rgba(255, 255, 255, 0.18);     /* stronger glass for fallback */
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  --radius: 12px;
  --container-max: 1100px;
  --link: #e9f0ff;
  --focus: 2px solid #93c5fd;
}

/* Section: Base & Layout (Mobile-first) */
html, body { height: 100%; }
* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  background: var(--bg);
  /* Layered background: gradient + subtle scanlines/noise (pure CSS) */
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.08)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, rgba(0,0,0,0) 1px 2px);
  background-blend-mode: overlay, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

/* Section: Structural selectors */
html { /* aura for accessibility metering if needed later */ }
body, header, nav, main, article, aside, section, footer {
  display: block;
}
header, nav, main, footer, aside { /* optional glass-friendly defaults */ }
header { padding: 1.25rem 1rem; text-align: center; }
nav { margin-top: .25rem; }
main { padding: 1rem; display: block; }
article { padding: 0; }
footer { padding: 1rem; }

/* Section: Utilities & Layout components */
.container { max-width: var(--container-max); width: 100%; margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { padding: .95rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid rgba(255,255,255,.25); box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tag { display:inline-block; font-size: .75rem; padding: .25rem .6rem; border-radius: 999px; background: rgba(255,255,255,.15); color: var(--text); border: 1px solid rgba(255,255,255,.35); }

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

/* Section: Glass panels (content surfaces) */
.backdrop {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not ((-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .backdrop { background: var(--surface-2); }
}

/* Section: Typography */
h1, h2, h3 { margin: 0.25rem 0; font-weight: 700; color: #fff; }
h1 { font-size: clamp(1.75rem, 2.5vw + 1rem, 3.5rem); line-height: 1.05; text-shadow: 0 1px 0 rgba(0,0,0,.15); }
h2 { font-size: clamp(1.25rem, 1vw + .9rem, 2.2rem); }
h3 { font-size: 1.05rem; }

/* Paragraphs & lists */
p { color: rgba(255,255,255,.95); margin: .25rem 0 0.75rem; }
ul, ol { color: rgba(255,255,255,.95); margin: .25rem 0 1rem 1.1rem; padding: 0; }
li { margin: .25rem 0; }

/* Section: Links & interactive elements */
a, button, .btn, .cta {
  font: inherit;
  color: #fff;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: .55rem .95rem;
  border-radius: 8px;
  display: inline-block;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
a { color: var(--link); }
a:hover, a:focus-visible { text-decoration: underline; outline: 0; color: #fff; }

.btn, .cta {
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,.4);
  padding: .6rem 1.2rem;
  border-radius: 8px;
  color: #fff;
}
.btn:hover, .cta:hover { background: #2a56c7; transform: translateY(-1px); }
.btn:focus-visible, .cta:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }

/* Outline variant (for secondary actions) */
.btn.outline, .cta.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.9);
  color: #fff;
}
.btn.outline:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }

/* Section: Content area helpers */
.content { padding: 0; }

/* Section: Product ad / footer promos */
.product-ad, .sponsored-page { display: block; margin: .75rem auto; padding: .75rem; text-align: center; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }

/* Section: Miscellaneous selectors to satisfy targets */
aside { padding: .5rem 1rem; }

/* Section: Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  .backdrop { background: #fff; border-color: #ccc; }
}

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

/* Section: Layout helpers (responsive typography) */
@media (min-width: 720px) {
  .container { padding-inline: 0; }
}
