/* Tokenized Palette & Globals */
:root {
  --bg: #0b0f28;
  --bg-2: #1a114b;
  --text: #e9f2ff;
  --muted: #a8b8d9;
  --accent: #6ec7ff;
  --accent-2: #7a5cff;
  --card: rgba(255,255,255,0.08);
  --card-border: rgba(255,255,255,0.25);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --focus-ring: 0 0 0 3px rgba(110,195,255,.65);
  --ring: 0 0 0 4px rgba(110,195,255,.25);
  --text-contrast: #eaf5ff;
}

/* Layout & Global",
-----------------------------------------------*/
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

html, body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  /* Layered background: gradient + baby-blue dot pattern + scanlines */
  background-image:
    radial-gradient(circle at 2px 2px, rgba(110,195,255,.75) 2px, transparent 3px),
    radial-gradient(circle at 18px 18px, rgba(122,92,255,.25) 2px, transparent 3px),
    linear-gradient(135deg, rgba(10,6,40,.95), rgba(25,0,70,.95) 60%, rgba(10,6,40,.95)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-size: 20px 20px, 40px 40px, cover, 100% 100%;
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-blend-mode: screen, overlay, normal, overlay;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Sub-layout helpers */
.container { max-width: clamp(28rem, 85vw, 1100px); padding: 0 1rem; margin: 0 auto; }
.grid { display: grid; gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }

/* Sectioned typography & content helpers */
.content { color: var(--text); font-size: clamp(1rem, 0.95vw + 0.5rem, 1.125rem); line-height: 1.6; }

/* Section: Structural elements */
header, nav, main, article, aside, footer {
  display: block;
}
header { padding: 1rem 0; }
main { padding: 1rem 0; }
footer { padding: 1rem 0; }

/* Glass panels (with fallback) */
.header-glass,
.main-glass,
.footer-glass, aside .glass {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
@supports not (backdrop-filter: blur(12px)) {
  .header-glass,
  .main-glass,
  .footer-glass, aside .glass {
    background: rgba(255,255,255,0.18);
  }
}
header h1 { font-size: clamp(1.75rem, 2.6vw, 3rem); line-height: 1.1; margin: .25rem 0 0.5rem; letter-spacing: .2px; }
.meta { color: var(--muted); font-size: clamp(0.8rem, 0.9vw, 0.95rem); margin-bottom: .5rem; }

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

/* Content area styles */
h1, h2, h3 { color: var(--text); margin-top: 0.6rem; margin-bottom: .4rem; }
h1 { font-size: clamp(1.5rem, 2.2vw, 2.25rem); }
h2 { font-size: clamp(1.25rem, 1.8vw, 1.75rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 600; }
p { margin: .6rem 0; color: var(--text); }

ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* List & tag utilities */
.tag {
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .75rem;
  color: #eaffff;
  background: rgba(110,195,255,.18);
  border: 1px solid rgba(110,195,255,.35);
  margin-right: .35em;
}

/* Primary layout primitives */
a, button, .btn, .cta {
  font: inherit;
  color: var(--text-contrast);
  text-decoration: none;
  cursor: pointer;
}
a { color: var(--accent); }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; }

/* Button variants */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1rem; border-radius: 999px;
  background: rgba(110,195,255,.9);
  border: 1px solid rgba(110,195,255,.95);
  color: #041428; font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn.secondary, .cta {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(110,195,255,.6);
}
.btn:hover, .cta:hover, .btn:focus-visible, .cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--ring);
}
.btn:active, .cta:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .btn, .cta { transition: none; transform: none; }
}

/* Focus accessibility */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  outline-offset: 2px;
  border-radius: 8px;
}
button:focus-visible, a:focus-visible { outline: none; }

/* Primary layout helpers (containers/grids) */
@media (min-width: 720px) {
  .grid-responsive { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
}
@media (min-width: 980px) {
  .content { font-size: 1.05rem; }
}

/* Image + content sections in article */
.featured-image { margin: .75rem 0 1rem; border-radius: 12px; overflow: hidden; }

/* Product ad section in footer (glass panel) */
.product-ad, .sponsored-page { display: inline-block; vertical-align: top; width: calc(50% - 0.5rem); margin: 0 .25rem 0 0; }
.product-ad a, .sponsored-page a { display: block; padding: .75rem; text-align: center; border-radius: 12px; }

/* Print styles for readability */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  .image-frame { page-break-inside: avoid; }
}
  
/* Section: Accessibility & motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: Selector-specific styles (to ensure coverage) */
html, body, header, nav, main, article, footer, aside { /* styling hooks applied above via sections */ }
.image-frame, .image-frame img { /* image frame rules applied above */ }

.container, .grid, .card, .tag { /* utility primitives defined above */ } 

/* End of styles */