:root {
  --bg: #0b0b13;
  --bg-2: #171226;
  --text: #e9e0ff;
  --muted: #c6b8d8;
  --accent: #ff8a00;      /* orange sunset */
  --accent-2: #7a3ff2;    /* purple accent */
  --surface: rgba(255,255,255,.12);
  --surface-2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 28px rgba(0,0,0,.4);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(122,58,238,.6);
  --glow: 0 6px 20px rgba(122,58,238,.35);
}
html, body {
  height: 100%;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: radial-gradient(circle at 20% 10%, rgba(255,140,0,.25), transparent 40%),
              linear-gradient(135deg, rgba(255,138,0,.18) 0%, rgba(122,63,242,.28) 40%, rgba(0,0,0,.25) 100%), 
              var(--bg);
  background-blend-mode: normal, overlay, normal;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  /* subtle scanline/noise effect (pure CSS) */
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 6px 6px, 6px 6px;
  opacity: 0.28;
  pointer-events: none;
  mix-blend-mode: overlay;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; outline: none; }
a:focus-visible { outline: 2px solid rgba(255,255,255,.95); outline-offset: 3px; border-radius: 4px; }

header, main, footer, aside { padding: 0 1rem; }
header { padding: 2rem 1rem; text-align: center; }
header h1 {
  font-size: clamp(1.8rem, 2.6vw + 1rem, 3.6rem);
  line-height: 1.05;
  margin: 0.2rem 0 0.4rem;
  letter-spacing: .4px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(.9rem, .3vw + .8rem, 1.05rem);
}
main { display: grid; place-items: center; padding: 1rem 0 2rem; }
.container { width: min(92vw, 1100px); margin-inline: auto; padding: 0 1rem; }

.card, .content, .product-ad, .sponsored-page, .image-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card, .content, aside { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@supports not (backdrop-filter: blur(12px)) {
  .card, .content, .product-ad { background: rgba(255,255,255,.18); }
}
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  background: #0b0b0f;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.image-frame:hover img { transform: scale(1.02); }

main article { max-width: 900px; padding: 1rem; }
article h2 {
  color: var(--accent-2);
  margin: .75rem 0 0.25rem;
  font-size: clamp(1.4rem, 1.2vw + 1.2rem, 2rem);
}
article p { color: var(--text); margin: .6rem 0; line-height: 1.6; }
article blockquote {
  margin: .8rem 0; padding-left: 1rem;
  border-left: 4px solid var(--accent-2);
  color: var(--muted);
  font-style: italic;
}
ul { padding-left: 1.25rem; margin: .4rem 0 1rem; }
li { margin: .35rem 0; }

footer { margin-top: 1rem; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem;
}
.product-ad, .sponsored-page {
  padding: .9rem; display: block;
  text-align: left;
}
.product-ad a, .sponsored-page a { display: block; padding: .25rem 0; color: var(--text); }
.product-ad { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }
.sponsored-page { background: rgba(0,0,0,.14); border: 1px solid rgba(255,255,255,.25); }

.tag { display:inline-block; padding: .25rem .6rem; border-radius: 999px;
  background: rgba(122,58,238,.28); color: white; font-size: .75rem;
  border: 1px solid rgba(255,255,255,.25);
}

.btn, a.btn, button.btn, .cta {
  display:inline-flex; align-items:center; justify-content:center;
  padding: .72rem 1.2rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.32);
  background: var(--accent);
  color: white; text-decoration: none;
  font-weight: 600; cursor: pointer;
  transition: transform .18s ease, background .2s ease;
}
.btn:hover, a.btn:hover, button.btn:hover, .cta:hover {
  transform: translateY(-1px);
  background: #ff9600;
}
.btn:active, a.btn:active, button.btn:active, .cta:active {
  transform: translateY(0);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.45);
}
.btn-outline:hover { background: rgba(255,255,255,.08); }

.image-frame + .image-caption { font-size: .85rem; color: var(--muted); margin-top: .25rem; }

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f6fb;
    --bg-2: #f0e6ff;
    --text: #1b1b2b;
    --muted: #55515c;
    --accent: #b55200;
    --accent-2: #5b21b6;
    --border: rgba(0,0,0,.15);
  }
  body { background: linear-gradient(135deg, #f8f7fb 0%, #f2f2ff 60%, #eef4ff 100%), var(--bg); }
  header { color: #1b1b2b; }
  article { background: rgba(255,255,255,.85); border-color: rgba(0,0,0,.08); }
  .image-frame { border-color: rgba(0,0,0,.08); }
  a, .btn, .cta { color: var(--accent-2); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .image-frame img { transition: none; transform: none; }
}
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  .image-frame { page-break-inside: avoid; }
}