:root {
  --bg: #0a1020;
  --bg-2: #0b1a2f;
  --text: #e6f0ff;
  --muted: #a5b8d4;
  --accent: #5f6bff;
  --accent-2: #a258ff;
  --glass: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:
    linear-gradient(135deg, rgba(14,28,72,.95) 0%, rgba(40,22,88,.95) 60%, rgba(16,8,40,.95) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 2px, transparent 2px 4px);
  background-attachment: fixed;
  background-size: cover;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 600px) {
  body { background-attachment: scroll; }
}

.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

header, main, footer, aside { width: 100%; }

nav { display: inline-flex; gap: .5rem; margin-top: .25rem; }

header {
  margin: 1rem auto;
  padding: 1.25rem;
  border-radius: calc(var(--radius) * 0.9);
  background: rgba(12, 25, 60, 0.55);
  border: 1px solid rgba(120, 140, 255, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  max-width: calc(100% - 2rem);
  box-shadow: var(--shadow);
}

header h1 {
  font-size: clamp(1.6rem, 0.8rem + 2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: .4px;
  margin: .15rem 0 .25rem;
  color: #eaf2ff;
}

header .meta {
  color: var(--muted);
  font-size: 0.92rem;
}

main { padding: 1rem 0 2rem; }
article { max-width: clamp(320px, 88vw, 900px); margin-inline: auto; }

.featured-image, .image-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  width: 100%;
}

.featured-image img, .image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.featured-image { aspect-ratio: 16 / 9; }
.image-frame { aspect-ratio: 4 / 3; }

.content { padding: 0 0; }
p { color: var(--text); opacity: .95; line-height: 1.6; margin: .75rem 0; }
h2 { font-size: clamp(1.4rem, 1vw + 1rem, 2rem); margin: .75rem 0; color: #e8f0ff; }
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; }

blockquote {
  margin: .75rem 0; padding: .75rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(93,108,255,.15);
  border-radius: 6px;
  color: #eaf0ff;
}

.product-ad, .sponsored-page { display: block; margin: .75rem 0; }
.product-ad a, .sponsored-page a {
  display: block; text-align: center; padding: .75rem;
  background: rgba(94, 107, 255, .25);
  color: var(--text); text-decoration: none;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease;
}
.product-ad a:hover, .sponsored-page a:hover { background: rgba(94,107,255,.4); transform: translateY(-1px); }

footer { padding: 1rem 0; text-align: center; color: var(--muted); }

@media (min-width: 700px) {
  article { padding: 0 1rem; }
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px; padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.tag {
  display: inline-block; padding: .25em .6em; font-size: .75rem;
  border-radius: 999px; background: rgba(110,108,255,.25);
  color: #eaf0ff;
}

a, button, .btn, .cta { cursor: pointer; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.btn {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { background: #4a58f0; transform: translateY(-1px); }

.btn.secondary { background: transparent; border-color: rgba(120,140,255,.6); color: var(--text); }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.25); }

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

@media print {
  body { background: white; color: black; }
  header, nav, footer { display: none; }
  article { padding: 0; }
}

@supports not (backdrop-filter: blur(8px)) {
  .card, .image-frame, header { background: rgba(255,255,255,.14); backdrop-filter: none; }
  .image-frame { border: 1px solid rgba(255,255,255,.4); }
}
