:root {
  --bg: #0b0a12;
  --bg-2: #1a1020;
  --text: #e9e0f7;
  --muted: #c2b6cf;
  --accent: #7e57d6;
  --accent-2: #b68aff;
  --glass: rgba(8,8,16,.22);
  --glass-2: rgba(8,8,16,.42);
}

html, body { height: 100%; }
html, body, header, nav, main, article, aside, footer { box-sizing: border-box; }
* { box-sizing: inherit; }

html, body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  line-height: 1.55;
  background: 
    linear-gradient(135deg, rgba(60,0,90,.92) 0%, rgba(12,6,20,.96) 60%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 2px, transparent 2px 4px);
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header { text-align: center; padding: 1.25rem 1rem; }

header h1 { font-size: clamp(1.25rem, 4vw, 2rem); margin: .25rem 0 0.25rem; letter-spacing: .2px; }
header .meta { font-size: .9rem; color: var(--muted); margin-top: .25rem; }

nav { margin-top: .5rem; }
nav a { color: var(--accent-2); text-decoration: none; padding: .25rem .5rem; border-radius: 6px; }

main { padding: 1rem; display: grid; place-items: center; }
.container { width: min(100%, 1100px); margin: 0 auto; padding: 0 1rem; }

article { width: 100%; max-width: clamp(320px, 92vw, 860px); padding: 1rem; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(8,8,16,.22);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
@supports not (backdrop-filter: blur(12px)) {
  article { background: rgba(8,8,16,.42); }
}
.featured-image { margin-bottom: .75rem; }

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

.content { padding: .5rem 0; }

h2 { font-size: clamp(1.25rem, 2.6vw, 1.75rem); margin: .6rem 0 .5rem; color: #f8f0ff; }
h3 { font-size: 1.05rem; margin: .8rem 0 .5rem; color: #e9e0f6; }

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

blockquote { margin: .75rem 0; padding: .5rem 1rem; border-left: 4px solid var(--accent); color: var(--muted); }

.product-ad, .sponsored-page { padding: .6rem; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: rgba(14,14,28,.28); border: 1px solid rgba(255,255,255,.25);
}
.product-ad a, .sponsored-page a { color: #fff; text-decoration: none; display: block; width: 100%; }

footer { padding: 1rem; display: grid; grid-template-columns: 1fr; gap: .6rem; justify-items: center; border-top: 1px solid rgba(255,255,255,.08); margin-top: 1rem; }
footer p { margin: 0; color: var(--muted); font-size: .9rem; }

a, button, .btn, .cta { color: var(--text); text-decoration: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a:focus { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.15rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.4);
  background: var(--accent);
  color: #fff; font-weight: 600; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: #6c42e5; }
.btn:active { transform: translateY(1px); }

.cta { padding: .65rem 1rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(126,87,214,.25);
  color: #fff; font-weight: 600;
}
.card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px; padding: .75rem; }

.tag { display: inline-block; padding: .15em .5em; font-size: .75rem; border-radius: 6px;
  background: rgba(125,92,255,.25); border: 1px solid rgba(125,92,255,.6); color: #fff;
}

.ul, .li { margin: 0; padding: 0; }

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

@media (min-width: 700px) {
  footer { grid-template-columns: 1fr 1fr; }
}

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

@media print {
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}