:root {
  /* Palette tokenized from crimson + violet motif */
  --bg: #0a001a;
  --bg-2: #1a0030;
  --text: #f4f0ff;
  --muted: #c6b8e8;
  --accent: #ff2a55;      /* crimson neon */
  --accent-2: #7a5cff;    /* violet */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.14);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial; }
body {
  margin: 0;
  color: var(--text);
  min-height: 100dvh;
  background: 
    linear-gradient(135deg, rgba(120,0,60,.25) 0%, rgba(40,0,70,.25) 60%, rgba(0,0,0,.6) 100%),
    radial-gradient(circle at 15% -5%, rgba(255,0,120,.18) 0 40%, transparent 40%),
    #000;
  background-blend-mode: soft-light, screen;
  padding: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  /* Subtle scanline-like noise via CSS gradients */
  background-image:
    linear-gradient(rgba(255,0,60,.05), rgba(255,0,60,.05)),
    repeating-linear-gradient(to bottom,
      rgba(0,0,0,.04) 0 1px,
      transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: 0.9;
}

/* Layout helpers */
.container { width: 100%; max-width: clamp(700px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }

/* Image frame styling */
.image-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.4); background: #000; display: block; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Glass panels (fallback + backdrop-filter) */
header, main, article, aside, footer {
  background: rgba(15, 0, 40, 0.42);       /* fallback opacity for no backdrop-filter */
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  header, main, article, aside, footer {
    background: rgba(15, 0, 40, 0.22);
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* Typography & hierarchy */
h1, h2, h3 { color: #fff; margin: 0 0 .5rem; }
h1 { font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem); line-height: 1.15; letter-spacing: .2px; text-shadow: 0 0 10px rgba(255,0,80,.6); }
h2 { font-size: clamp(1.25rem, 1.6vw + 0.8rem, 1.75rem); margin-top: .75rem; color: #f6eaff; }
h3 { font-size: 1rem; font-weight: 700; margin-top: .5rem; color: #fff; }
p { font-size: clamp(1rem, 0.9vw + 0.9rem, 1.125rem); color: #e8e0ff; margin: .4rem 0 1rem; }
.meta { color: #d7cfff; font-size: .95rem; margin-top: 0.25rem; }

/* Content container */
.content { padding: 0.75rem 0 0; }

/* Link and button styling with accessible focus */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
}
a { outline: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 0.2em; color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

/* Button variants */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.6rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.08); color: var(--text); transition: transform .15s ease, background .15s ease; }
.btn + .btn { margin-left: .5rem; }
.btn:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Outline variant for emphasis */
.btn--outline, .cta--outline { background: transparent; border: 1px solid rgba(255,255,255,.6); color: var(--text); }
.btn--outline:hover, .cta--outline:hover { background: rgba(255,255,255,.08); }

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

/* Lists */
ul { padding-left: 1.25rem; margin: 0.75rem 0; }
li { margin: .25rem 0; }

/* Featured product ad styling inside footer */
.product-ad { display: grid; gap: .5rem; }
.product-ad h3 { margin: 0; font-size: 1.05rem; }
.product-ad p { margin: 0; font-size: .95rem; }

/* Footer baseline text */
footer > p { color: #cdb8ff; font-size: .95rem; margin: .75rem 0 0; }

/* Responsive helpers */
@media (max-width: 720px) {
  .container { padding-inline: 0.5rem; }
  .grid { grid-template-columns: 1fr; }
  header { padding: 0.75rem; }
  article { padding: 0.75rem; }
}

/* Print styles for readability */
@media print {
  body { color: #000; background: #fff; }
  header, main, article, aside, footer { background: transparent; border: none; box-shadow: none; }
  a { color: #00f; text-decoration: underline; }
}
