/* Palette */
:root{
  --bg: #0b0a14;
  --bg-2: #1a0a2b;
  --lav: #b992ff;      /* lavender base */
  --lav-2: #7b5cff;     /* deeper lavender */
  --coral: #ff6b6b;    /* coral accent */
  --coral-2: #ff8a63;   /* coral highlight */
  --text: #f5f3ff;
  --muted: #d9d0ff;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.14);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 24px rgba(0,0,0,0.25);
  --card: rgba(255,255,255,0.08);
  --card-border: rgba(255,255,255,0.28);
  --focus: #ffffff;
}

/* Base & Globals */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  min-height: 100%;
  background: 
    radial-gradient(circle at 20% -10%, rgba(185,146,255,0.25), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(255, 120, 120,0.20), transparent 40%),
    linear-gradient(135deg, #1a0a2b 0%, #0b0a14 60%, #0a0a15 100%);
  /* Layered background: subtle grid (scanlines) on top */
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 6px 6px;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
  opacity: 0.9;
}
img { max-width: 100%; height: auto; display: block; }

.container { width: min(1100px, 92%); margin: 0 auto; padding: 1rem; }

/* Layout primitives */
header, main, footer, aside {
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
header { padding: 1rem 1rem; margin: 1rem auto; }
header h1 { font-size: clamp(1.4rem, 3.5vw, 2.25rem); line-height: 1.15; margin: 0 0 .25rem; color: #fff; }
header .meta { color: var(--muted); font-size: .9rem; margin-top: .25rem; }
nav { display: flex; gap: .75rem; align-items: center; padding-top: .5rem; }
nav a { color: #fff; text-decoration: none; padding: .25rem .5rem; border-radius: 8px; }
nav a:hover, nav a:focus { text-decoration: underline; outline: none; }

/* Main content */
main { padding: 1rem 0; display: grid; place-items: center; }
article { max-width: 960px; padding: 1rem; }
.featured-image { margin: 1rem auto; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.image-frame, .image-frame img,
.featured-image, .featured-image img {
  border-radius: inherit;
}
.image-frame, .featured-image { isolation: isolate; }
.image-frame { border: 1px solid rgba(255,255,255,0.28); background: #000; box-shadow: 0 6px 18px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(255,255,255,0.04); }
.image-frame img, .featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content blocks */
.content { padding: 0.75rem 0 1rem 0; color: var(--text); }
h2, h3 { color: #fff; margin: .75rem 0 .5rem; line-height: 1.25; }
p { margin: .5rem 0 1rem; color: #f5f3ff; }
em { font-style: italic; color: #e9e0ff; }
strong { font-weight: 700; color: #fff; }

/* Lists & quotes */
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; color: #f4f0ff; }
blockquote { margin: .75rem 0; padding: .75rem 1rem; border-left: 3px solid var(--lav-2); background: rgba(255,255,255,0.06); border-radius: 8px; }

/* Glass panels & cards */
.card, .glass, .product-ad { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: .75rem; box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.product-ad { display: inline-block; margin: .25rem 0; padding: .25rem; text-align: center; }
.product-ad a { display: inline-flex; align-items: center; justify-content: center; width: 100%; color: #fff; text-decoration: none; padding: .75rem 1rem; border-radius: 999px; background: linear-gradient(135deg, var(--lav-2), var(--coral)); border: 1px solid rgba(255,255,255,0.5); }
.product-ad a:hover { transform: translateY(-1px); }

/* Utility & typography helpers */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { padding: 1rem; }

/* Links & buttons (interactive) */
a, button, .btn, .cta { cursor: pointer; color: #fff; text-decoration: none; }
a { color: #e9d5ff; }
a:hover, a:focus { text-decoration: underline; outline: none; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* Button variants */
.btn, .cta { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.25rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.6);
  background: linear-gradient(to bottom, rgba(255,107,107,0.95), rgba(255,107,107,0.75)); color: #fff;
  font-weight: 600; text-transform: none; transition: transform .15s ease, background .2s ease; text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }
.btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
}
.btn:focus-visible, .cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  background: rgba(255,255,255,0.08);
}
.btn + .btn { margin-left: .5rem; }

/* Forms (basic) */
input, textarea, select, button { font-family: inherit; font-size: 1rem; color: #fff; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; padding: .5rem .75rem; }
input::placeholder, textarea::placeholder { color: #c9c3ff; opacity: .8; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Other sections to satisfy selectors */
aside { padding: 1rem; }

/* Print readability */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: #fff; border: none; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}