/* Base Tokens */
:root{
  --bg: #1b0a12;           /* burgundy fabric base */
  --bg-2: rgba(255, 0, 120, 0.25);
  --text: #f8f3f8;
  --muted: #d9a6b9;
  --accent: #ff2b8e;        /* hot pink */
  --accent-2: #ff5bd1;
  --card: rgba(255,255,255,0.08);
  --glass: rgba(255,255,255,0.12);
  --ring: 0 0 0 3px rgba(255, 43, 142, 0.65);
  --radius: 12px;
}

/* Section: Reset & Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background-color: var(--bg);
  /* Layered background: gradient + subtle scanlines/noise */
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.05)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px),
    linear-gradient(135deg, rgba(160,0,60,0.45), rgba(40,0,20,0.65) 60%, rgba(0,0,0,0.75)),
    var(--bg);
  background-blend-mode: overlay, overlay, normal;
  min-height: 100%;
  isolation: isolate;
  padding: 1rem;
  box-sizing: border-box;
}
img { max-width: 100%; height: auto; display: block; }

/* Section: Layout Helpers */
.container {
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding: 0.5rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.tag {
  display: inline-block;
  padding: .25em .6em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(255,0,128,0.28);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

/* Section: Typography */
h1, h2, h3 { margin: .25rem 0; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 2.4vw + 1rem, 2.8rem); line-height: 1.15; color: #fff; }
h2 { font-size: clamp(1.25rem, 1.4vw + 1rem, 1.75rem); color: #fff; }
p { color: var(--muted); line-height: 1.5; }
blockquote {
  margin: 1rem 0;
  padding: 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  color: #fff;
}

/* Section: Components */
.header, header { padding: 0.75rem; }
header {
  display: block;
  border-radius: var(--radius);
  background: rgba(12,0,20,0.42);
  border: 1px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
nav a {
  color: #fff;
  text-decoration: none;
  padding: .25rem .6rem;
  border-radius: 6px;
}
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: none; }

/* Glass panels (with fallback) */
.glass {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}
@supports not (backdrop-filter: blur(10px)) {
  .glass { background: rgba(18,6,20,0.92); border-color: rgba(255,255,255,0.4); }
}
.main, main { padding: 0; }

/* Section: Imagery */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08), 0 8px 20px rgba(0,0,0,0.4);
  background: #000;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Content blocks */
.content { padding: 1rem; }

/* Section: Interactions */
a, button, .btn, .cta {
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; color: var(--accent-2); outline: none; }

button, .btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.btn { }
.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.75);
}
.btn:hover { transform: translateY(-1px); background: #e61b77; }
.btn:active { transform: translateY(0); opacity: 0.95; }

/* Focus states for accessibility (focus-visible) */
button:focus-visible, a:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 999px;
  outline-offset: 2px;
}
.cta { margin-left: .5rem; }

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

/* Section: Misc layout helpers used by page */
footer { padding: 1rem; margin-top: 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; }
.product-ad, .sponsored-page { display: grid; place-items: center; padding: .75rem; border-radius: var(--radius); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); text-align: center; }
.product-ad a { color: #fff; text-decoration: none; font-weight: 700; }

/* Section: Accessibility + Motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Section: Print (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
}
