:root {
  --bg: #041e1f;
  --bg-2: #062f36;
  --text: #eafaff;
  --muted: #b8dbe6;
  --accent: #4169e1;        /* Royal blue */
  --accent-2: #2bd4c2;       /* Teal accent */
  --glass: rgba(8, 80, 100, 0.20);
  --glass-strong: rgba(8, 80, 100, 0.28);
  --glass-border: rgba(120, 200, 230, 0.5);
  --shadow: 0 6px 22px rgba(0,0,0,.25);
  --radius: 14px;
  --focus-ring: 2px solid #e8f0ff;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; }

body {
  margin: 0;
  color: var(--text);
  /* Layered background: teal+royal blue gradient + subtle scanlines/noise */
  background: 
    linear-gradient(135deg, rgba(65, 105, 225, 0.22), rgba(0, 214, 195, 0.22)),
    linear-gradient(135deg, #0b2a2b 0%, #06212a 40%, #040b14 100%);
  background-blend-mode: overlay, normal;
  background-image:
    linear-gradient(135deg, rgba(0, 214, 195, 0.15), rgba(65, 105, 225, 0.15)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, rgba(0,0,0,0) 1px, rgba(0,0,0,0) 2px),
    linear-gradient(135deg, #0b1a1a 0%, #061a1a 100%);
  font-synthesis: none;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  padding-block: 0;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

header, main, footer, aside, article {
  display: block;
}

/* Layout helpers */
.container { width: 100%; max-width: clamp(720px, 82vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Header (glass panel) */
header {
  margin: 1rem auto; padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header h1 { font-size: clamp(1.8rem, 2.6vw + 1rem, 3rem); margin: 0.25rem 0 0.25rem; letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: clamp(0.9rem, 0.6vw + 0.8rem, 1.05rem); margin-top: .25rem; }

nav { display: flex; justify-content: center; gap: .75rem; margin-top: .75rem; flex-wrap: wrap; }
nav a {
  padding: .5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(65,105,225,.5);
  background: rgba(65,105,225,.15);
  color: #eaffff;
  font-weight: 600;
}
nav a:hover { text-decoration: underline; }

/* Main area */
main { padding: 1rem; display: grid; justify-items: center; align-content: start; }
article {
  width: 100%;
  max-width: clamp(680px, 88vw, 980px);
  padding: 1rem;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(8, 72, 100, 0.20);
  border: 1px solid rgba(120, 190, 210, 0.5);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.featured-image { margin: .75rem 0 1rem; border-radius: 12px; overflow: hidden; border: 1px solid rgba(120, 200, 230, 0.4); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.image-frame { aspect-ratio: 16/9; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(140, 210, 230, 0.5); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

h2, h3 { color: #eafbff; margin-top: 1rem; }
p { color: #eafaff; margin: .75rem 0; }
ul { margin: .75rem 0 1rem 1.25rem; color: #eafaff; }
li { margin: .25rem 0; line-height: 1.5; }
blockquote { margin: 1rem 0; padding: .75rem 1rem; border-left: 4px solid rgba(65,105,225,.6); color: #eafaff; background: rgba(11, 110, 150, 0.15); border-radius: 8px; }

@media (min-width: 900px) {
  article { padding: 1.25rem; }
}

/* Glass panels fallback for environments without backdrop-filter */
@supports not (backdrop-filter: blur(4px)) {
  :root { --glass: rgba(8, 80, 100, 0.28); --glass-strong: rgba(8, 80, 100, 0.28); }
  header { background: rgba(8, 80, 100, 0.28); }
  article { background: rgba(8, 72, 90, 0.28); }
}

/* Content helper (decorative or future content blocks) */
.content { padding: 0.75rem 0; color: var(--text); }

/* Product ad / aside-like blocks in footer as glass panels */
footer { padding: 1rem 0; display: grid; gap: .75rem; grid-template-columns: 1fr; justify-items: center; }

.product-ad, .sponsored-page {
  width: min(100%, 680px);
  padding: .75rem;
  border-radius: 12px;
  text-align: center;
  background: rgba(8, 140, 140, 0.18);
  border: 1px solid rgba(65, 170, 210, 0.5);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.product-ad a, .sponsored-page a { display: inline-block; width: 100%; color: #eaffff; text-decoration: none; }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }

/* Secondary typography tweaks for readability on glass */
strong { color: #eaffff; }

/* List tweaks for accessibility */
ul, li { margin: 0; padding-left: 1.25rem; }

/* Utility helpers (grid, card, tag) */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: rgba(8, 80, 100, 0.20);
  border: 1px solid rgba(120, 190, 210, 0.5);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block; padding: .15rem .5rem; border-radius: 999px;
  font-size: .8rem; background: rgba(65,105,225,0.25); color: #eaffff;
  border: 1px solid rgba(65,105,225,0.5);
}

/* Buttons (solid and outline variants) */
.btn, .cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .55rem . nine? 1.15rem; /* safe fallback if minified, will be cleaned by minifier */
}
.btn, .cta, a.btn { cursor: pointer; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.btn { padding: .6rem 1rem; }
.btn--solid {
  background: linear-gradient(135deg, var(--accent), #2b4dbf);
  color: #fff;
  border-color: rgba(255,255,255,.25);
}
.btn--solid:hover { transform: translateY(-1px); }
.btn--solid:active { transform: translateY(0); opacity: .95; }

.btn--outline {
  background: rgba(0,0,0,0);
  color: var(--text);
  border-color: rgba(65,105,225,.6);
}
.btn--outline:hover { background: rgba(65,105,225,.15); transform: translateY(-1px); }

/* Focus visibility for keyboard users */
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Print styles for readability */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
