:root {
  --bg: #0b0f14;
  --bg-2: #141824;
  --text: #e8eaff;
  --muted: #a6accd;
  --accent: #c9a8f8;
  --accent-2: #89f0ff;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.14);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-soft: 0 6px 18px rgba(0,0,0,.25);
}

html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(#0b0f14, #0b0f14),
    repeating-linear-gradient(45deg, rgba(180,180,200,.18) 0 2px, transparent 2px 4px),
    linear-gradient(to bottom right, rgba(120,120,180,.08), rgba(120,120,180,.04) 40%, rgba(120,120,180,.08) 100%);
  background-blend-mode: overlay, overlay, normal;
  min-height: 100%;
  text-rendering: optimizeLegibility;
}

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

.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: #111;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  will-change: transform;
}

header {
  padding: 1rem;
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
}
header h1 {
  font-size: clamp(1.25rem, 1.2rem + 2vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 .5rem;
  letter-spacing: .2px;
  color: var(--text);
}
nav {
  display: flex;
  gap: .5rem;
  align-items: center;
}
nav a {
  color: var(--accent-2);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid transparent;
}
nav a:hover,
nav a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  border-color: rgba(137, 240, 255, 0.4);
}

main {
  padding: 0 1rem;
}
.article {
  max-width: clamp(320px, 90vw, 980px);
}
main > article { margin: 0 auto; padding: 1rem 0; }

.content {
  padding: 0;
}

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

.card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.tag {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(196, 176, 255, 0.25);
  color: #0a0a0a;
}

a, button, .btn, .cta {
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(196, 170, 255, .25);
  color: var(--text);
  text-align: center;
  transition: transform .2s ease, background .2s ease;
  user-select: none;
}
.btn:hover { background: rgba(196, 170, 255, .38); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--text);
}
.btn--outline:hover {
  background: rgba(196, 169, 255, .18);
}

.cta { /* alias for call-to-action links if used as <a class="cta"> */ }

.product-ad, .sponsored-page {
  width: min(90vw, 720px);
  padding: .75rem;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.product-ad a, .sponsored-page a {
  color: var(--text);
  text-decoration: none;
  display: block;
  padding: .4rem;
}
.product-ad a:hover, .sponsored-page a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer {
  padding: 1rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
}
footer p { margin: 0; color: var(--muted); }

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

@media print {
  body { background: #fff; color: #000; }
  header, main, footer { display: block; }
  a { color: #00f; text-decoration: underline; }
}

@supports (backdrop-filter: blur(8px)) {
  .product-ad, .sponsored-page {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}
@supports not (backdrop-filter: blur(8px)) {
  .product-ad, .sponsored-page {
    background: rgba(255,255,255,.14);
  }
}
Aside { display: block; }