/* 1) Palette & Tokens */
:root {
  --bg: #0b1a2a;
  --bg-2: #0b2b55;
  --bg-3: #0a1a1f;
  --text: #e6f0ff;
  --muted: #b8cbe4;
  --accent: #e6d5bd; /* beige accent */
  --accent-2: #a9c7e8; /* blue accent for links / highlights */
  --card: rgba(255,255,255,.08);
  --card-strong: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  --focus: 0 0 0 3px rgba(95, 168, 255, 0.65);
  --radius: 14px;
  --gap: 1rem;
}
/* 2) Base & layout */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", "Liberation Sans"; }
body {
  margin: 0;
  color: var(--text);
  /* Layered background: deep blue gradient + subtle beige glow + blue dot pattern */
  background: 
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 60%, var(--bg-3) 100%),
    radial-gradient(circle at 15px 15px, rgba(230,210,180,.20) 0, transparent 40px),
    radial-gradient(circle at 60px 40px, rgba(120,170,240,.25) 0, transparent 60px),
    radial-gradient(circle at 100px 120px, rgba(120,180,240,.15) 0, transparent 80px);
  background-size: cover;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  /* Subtle blue dot pattern (pure CSS) */
  background-image:
    radial-gradient(circle, rgba(120,180,240,.25) 1px, transparent 1px);
  background-size: 4px 4px;
  background-repeat: repeat;
  mix-blend-mode: overlay;
  opacity: .25;
  pointer-events: none;
}
main { padding: 1rem; }
.container { width: 100%; max-width: clamp(620px, 86vw, 1100px); margin: 0 auto; padding: 0 1rem; }

/* 3) Structural elements styling (WCAG-friendly defaults) */
header, nav, main, article, aside, footer {
  display: block;
}
header {
  text-align: center;
  padding: 1.25rem 1rem;
  background: rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
header h1 { margin: .25rem 0 .5rem; font-size: clamp(1.8rem, 4vw + 1rem, 3rem); line-height: 1.05; letter-spacing: .2px; }
header .meta { margin: 0; color: var(--muted); font-size: clamp(.9rem, 1.5vw, 1.05rem); }

/* 4) Content panels & imagery */
article { padding: 1rem; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.featured-image { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 20px rgba(0,0,0,.25); margin: 1rem 0; }
.featured-image img { width: 100%; height: auto; display: block; }
.image-frame { aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.3); box-shadow: 0 2px 12px rgba(0,0,0,.3); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.content { padding: 1rem; border-radius: calc(var(--radius) - 2px); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin: .75rem 0; }
@supports not (backdrop-filter: blur(8px)) {
  .content { background: rgba(255,255,255,.14); }
}
h2 { font-size: clamp(1.4rem, 2.5vw + 1rem, 2rem); margin: .75rem 0 .5rem; color: var(--text); }
p { color: var(--muted); margin: .5rem 0; }

/* 5) Typography & block content */
blockquote { margin: .75rem 0; padding: .5rem 1rem; border-left: 3px solid rgba(120,180,240,.8); color: #eaf4ff; background: rgba(20,60,110,.25); border-radius: 6px; }
ul { padding-left: 1.25rem; margin: .5rem 0; color: var(--muted); }
li { margin: .25rem 0; }

/* 6) Sections & CTAs (product ads, navigation-style blocks) */
.product-ad, .sponsored-page {
  padding: .75rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  margin: .5rem 0;
  text-align: center;
}
.product-ad a, .sponsored-page a {
  display: inline-block;
  padding: .6rem .95rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad a { background: rgba(60,120,240,.95); }
.sponsored-page a { background: rgba(40,40,60,.9); color: #e8e8f0; }
.product-ad a:hover, .sponsored-page a:hover { transform: translateY(-1px); }

/* 7) Footer & utility links */
footer { padding: 1rem; text-align: center; background: rgba(0,0,0,.25); border-top: 1px solid rgba(255,255,255,.25); }

/* 8) Utilities & components */
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: .75rem;
  box-shadow: var(--shadow);
}
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* 9) Links & interactive elements */
a:focus-visible, button:focus-visible { outline: 0; box-shadow: var(--focus); outline-offset: 2px; border-radius: 6px; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 10) Buttons & variants */
.btn, .cta {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.25);
  color: #fff;
  text-align: center;
  transition: transform .2s ease, background .2s ease;
  cursor: pointer;
}
.btn { background: rgba(60,120,240,.95); border-color: rgba(255,255,255,.5); }
.btn:hover { transform: translateY(-1px); }
.cta { padding: .75rem 1.25rem; }
.btn:focus-visible, .cta:focus-visible { outline: none; box-shadow: var(--focus); outline-offset: 2px; }

/* 11) Accessibility & motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #e9f0ff;
    --bg-2: #d8e6f9;
    --bg-3: #f5f7fb;
    --text: #0a1220;
    --muted: #3a4a66;
    --accent: #4b3a2f;
    --accent-2: #1a4a8a;
  }
  body { background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 60%, var(--bg-3) 100%); }
  header { background: rgba(255,255,255,.92); }
  article { background: rgba(255,255,255,.88); border-color: rgba(0,0,0,.08); }
  a { color: var(--accent-2); }
}
@media print {
  body { background: transparent; color: #000; }
  header, footer, .image-frame, .content { box-shadow: none; background: transparent; }
  a { color: #000; text-decoration: underline; }
}

/* 12) Imports (none) - ensure no external fonts or images are required by this stylesheet */