@charset "UTF-8";

:root {
  --bg: #7a6cff;            /* lavender base */
  --bg-2: #5b2bd6;          /* deeper lavender/purple */
  --text: #0b0b0f;           /* high-contrast text */
  --muted: #6b6b86;          /* secondary text */
  --surface: rgba(255,255,255,.08);       /* glass surface */
  --surface-2: rgba(255,255,255,.14);
  --accent: #ff4fbf;           /* plasma pink */
  --accent-2: #e100ff;         /* secondary accent */
  --outline: rgba(255,255,255,.6);
  --shadow: 0 6px 18px rgba(0,0,0,.15);
  --radius: 14px;
}

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

html, body { height: 100%; }

html { font-size: 16px; }

html, body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(122,108,255,.28) 0%, rgba(122,108,255,.12) 60%, rgba(122,108,255,.28) 100%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
    var(--bg);
  background-blend-mode: normal, overlay, normal;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

body a { color: var(--accent); text-decoration: none; }

body a:hover, body a:focus-visible { text-decoration: underline; text-underline-offset: 2px; outline: none; }

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

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

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

.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .card { background: rgba(255,255,255,.14); }
}

.header, .content, article, .image-frame,
.image-frame img, .product-ad, ul, li, footer, aside,
nav, a, button, .btn, .cta, .tag {
  /* ensure selectors exist in cascade order; no extra layout rules here */
}

header {
  padding: 1.25rem;
  margin: 1rem auto;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.25);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

header h1 {
  font-size: clamp(1.4rem, 1.5rem + 1vw, 2.4rem);
  line-height: 1.15;
  margin: 0.25rem 0 0.25rem;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
}

header .meta {
  color: #e9e6ff;
  font-size: clamp(0.9rem, 0.5vw + 0.8rem, 1rem);
  opacity: .95;
}

nav {
  margin-top: .75rem;
}

nav a {
  display: inline-block;
  padding: .5rem 0.75rem;
  border-radius: 8px;
  color: #fff;
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.25);
  text-decoration: none;
  transition: transform .15s ease, background .2s ease;
}
nav a:hover { transform: translateY(-1px); background: rgba(0,0,0,.25); }
nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

main {
  padding: 1rem 0;
}

article {
  margin: 0.75rem auto 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: clamp(680px, 90vw, 1000px);
  box-shadow: var(--shadow);
  color: var(--text);
}
article h1 {
  font-size: clamp(1.4rem, 1.2vw + 1rem, 2.2rem);
  margin: .25rem 0 .5rem;
  color: #fff;
}
article h2 { font-size: clamp(1.15rem, 0.8vw + 1rem, 1.6rem); margin: .75rem 0 .5rem; color: #fff; }
article h3 { font-size: 1.05rem; margin: .75rem 0; color: #fff; }
article p { font-size: clamp(1rem, 0.6vw + 0.95rem, 1.15rem); color: #f6f6ff; margin: .4rem 0 1rem; }
article ul, article ol { padding-left: 1.25rem; margin: .25rem 0 1rem; }
article li { margin: .25rem 0; color: #f4f4ff; }

.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,.15);
  margin: .75rem 0;
}
.featured-image img {
  width: 100%; height: auto; display: block;
}

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

.content { padding: 1rem; }

.product-ad {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  text-decoration: none;
  margin: .25rem;
  transition: transform .15s ease;
}
.product-ad:hover { transform: translateY(-1px); }
.product-ad p { margin: 0; font-weight: 600; }

.sponsored-page { display: inline-block; margin: .25rem; }

footer {
  padding: 1rem;
  margin: 1rem auto 2rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
footer p { margin: .5rem 0 0; color: #f8f8ff; }

ul, li { margin: 0; padding: 0; list-style: disc inside; color: var(--text); }
ul li { margin: .25rem 0; }

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

@media (min-width: 720px) {
  .container { padding-inline: 0; }
  header { padding: 1.75rem; }
  article { padding: 1.25rem; }
  .featured-image { margin: 0.75rem 0 1rem; }
}

@media print {
  body {
    background: white;
    color: #000;
  }
  header, main, footer { box-shadow: none; background: none; border: none; }
  .container { max-width: 100%; padding: 0; }
  a { color: #000; text-decoration: underline; }
}