:root {
  --bg: #140f1a;
  --bg-2: #1a0f1e;
  --text: #f7f7ff;
  --muted: #c2b6cc;
  --accent: #ff6a4a;
  --accent-2: #ff8a5b;
  --glass: rgba(255,255,255,.12);
  --glass-2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 28px rgba(0,0,0,.32);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--text);
  background: linear-gradient(135deg, rgba(60,0,60,.92), rgba(14,0,40,.92) 60%), #000;
}
body {
  margin: 0;
  min-height: 100dvh;
  position: relative;
}
/* layered background: subtle noise/scanlines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  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: 4px 4px, 4px 4px;
  mix-blend-mode: overlay;
  opacity: .25;
  z-index: 0;
}
.container { max-width: clamp(640px, 90vw, 1200px); margin-inline: auto; padding-inline: 1rem; }

/* Glass panels + hierarchy */
header {
  z-index: 1;
  padding: 1rem;
  margin: 1rem auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
header h1 { font-size: clamp(1.6rem, 3vw + .5rem, 2.8rem); margin: 0 0 .25rem; color: #fff; }
header .meta { color: var(--muted); font-size: clamp(.8rem, .5vw, .95rem); }

/* Nav */
nav a { color: var(--accent-2); text-decoration: none; padding: .25rem .5rem; border-radius: 6px; }
nav a:hover { text-decoration: underline; }

/* Main content */
main { padding: 0 0 1rem; position: relative; z-index: 1; }
.image-frame, .featured-image { width: 100%; }
.image-frame { aspect-ratio: 16/9; width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-image { margin: 1rem 0; }

/* Typography hierarchy for hero/article */
article { color: #f6f3ff; max-width: 70ch; }
article h1 { font-size: clamp(1.6rem, 2.6vw + 1rem, 2.8rem); color: #fff; margin: .25rem 0 .5rem; }
article p { color: #e9e4fb; font-size: clamp(1rem, 0.9vw, 1.125rem); line-height: 1.6; }
blockquote { margin: 1rem 0; padding: .75rem 1rem; border-left: 4px solid var(--accent); background: rgba(255,255,255,.08); border-radius: 6px; color: #fff; }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); margin: .8rem 0 .4rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.25rem); margin: .6rem 0; }
ul { margin: .4rem 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Glass blocks in footer (ads) */
footer { padding: 1rem; display: flex; gap: .5rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.product-ad, .sponsored-page { display:inline-flex; align-items:center; justify-content:center; padding:.6rem .9rem; border-radius: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; }
footer p { color: var(--muted); text-align: center; width: 100%; margin: .25rem 0 0; }

/* Utilities & theme primitives */
a, button, .btn, .cta { color: inherit; text-decoration: none; border: none; background: none; font: inherit; cursor: pointer; }
a { color: var(--accent-2); }
a:hover { text-decoration: underline; }

/* Focus & accessibility */
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }

/* Basic button treatments (solid + outline variants) */
button { color: #fff; background: var(--accent); border-radius: 6px; padding: .6rem .9rem; border: 1px solid rgba(255,255,255,.25); }
.btn { display:inline-block; padding:.6rem 1rem; border-radius:6px; background: var(--accent); color:#fff; border:1px solid rgba(255,255,255,.25); }
.btn.secondary { background: transparent; color: var(--accent-2); border:1px solid rgba(255,255,255,.4); }

/* Print readability */
@media print {
  body { background: #fff; color: #000; }
  header, nav, footer { display: none; }
  article { padding: 0 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Minor structural rule for any <aside> that may appear */
aside { display: block; }