:root {
  /* Palette: deep plum / maroon with glassy accents */
  --bg: #1a0f1a;
  --bg-2: #2e0f21;
  --surface: rgba(120, 0, 40, 0.22);
  --surface-2: rgba(140, 0, 50, 0.28);
  --text: #f6eaf6;
  --muted: #c9a7b8;
  --accent: #a0132a;
  --accent-2: #d23a60;
  --ring: rgba(210, 60, 120, 0.9);
  --shadow: 0 8px 24px rgba(0,0,0,0.4);
  --border: rgba(255,255,255,0.28);
  --glass: rgba(120, 0, 40, 0.22);
  --glass-opaque: rgba(120, 0, 40, 0.6);
  --glass-border: rgba(255,255,255,0.32);
  --focus: 3px solid rgba(208, 60, 120, 0.9);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Helvetica Neue";
  line-height: 1.5;
  background: 
    radial-gradient(circle at 15% 10%, rgba(180,0,60,0.25), transparent 25%),
    radial-gradient(circle at 85% 0%, rgba(60,0,100,0.25), transparent 25%),
    linear-gradient(135deg, #1a0f1a 0%, #2a0f1f 50%, #1a0f1a 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, normal, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  padding: 0;
}

/* Light-mode fallback for legibility */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f0f6;
    --bg-2: #e9d5e9;
    --text: #1a1a1a;
    --muted: #5b4a59;
    --surface: rgba(190, 80, 120, 0.18);
    --surface-2: rgba(170, 60, 110, 0.28);
    --glass: rgba(255,255,255,0.70);
    --glass-opaque: rgba(255,255,255,0.92);
    --glass-border: rgba(0,0,0,0.08);
  }
  body {
    background: linear-gradient(135deg, #f7f4f8 0%, #ece7ee 50%, #f7f4f8 100%);
    color: var(--text);
  }
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 88vw, 1120px);
  margin-inline: auto;
  padding-inline: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  margin-right: .25rem;
  margin-bottom: .25rem;
}

/* Basic structure */
header {
  padding: 1.25rem 1rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: .5px;
}

header .meta {
  margin-top: .25rem;
  color: var(--muted);
  font-size: clamp(0.8rem, 0.4vw + 0.6rem, 1rem);
}

/* Main content */
main { padding: 1rem; }

/* Featured image / image frame */
.featured-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  margin: 0.75rem 0;
  background: #000;
}
.featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

.image-frame {
  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,.35);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.image-frame:hover img { transform: scale(1.05); }

/* Content text helper (optional common container) */
.content {
  padding: 0.25rem 0 0.5rem;
  color: var(--text);
}
.content p, .content li {
  font-size: clamp(1rem, 0.9vw + 0.9rem, 1.15rem);
  line-height: 1.6;
  color: var(--text);
}
.content ul { padding-left: 1.25rem; }

/* Typography hierarchy for hero area */
h2 {
  font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem);
  margin: 0.75rem 0 0.25rem;
  letter-spacing: .2px;
}

/* Block quotes with a moody accent */
blockquote {
  margin: .75rem 0;
  padding-left: .75rem;
  border-left: 3px solid var(--accent);
  color: #f6e4f2;
  font-style: italic;
  opacity: 0.95;
}

/* Product ad / footer style blocks (glass panels) */
.product-ad,
.sponsored-page {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  text-align: center;
  min-width: 0;
}
.product-ad a,
.sponsored-page a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: 0.1rem 0;
}
.product-ad a:hover,
.sponsored-page a:hover,
.product-ad a:focus,
.sponsored-page a:focus {
  text-decoration: underline;
}
footer {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}
footer p { margin: 0.25rem 0; }

/* Links and buttons */
a {
  color: var(--accent-2);
  text-decoration: none;
}
a:hover,
a:focus-visible {
  text-decoration: underline;
  outline: none;
}
a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}
button,
.btn,
.cta {
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.38);
  padding: 0.65rem 1.15rem;
  color: #fff;
  background: var(--accent);
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn,
.cta {
  display: inline-block;
  text-align: center;
  text-decoration: none;
}
.btn:hover,
.cta:hover {
  transform: translateY(-1px);
  background: #a01028;
}
.btn:active,
.cta:active {
  transform: translateY(0);
  opacity: .95;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
}
.btn:focus-visible,
.btn-outline:focus-visible,
.cta:focus-visible {
  outline: 3px solid rgba(210,60,120,.85);
  outline-offset: 2px;
}

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

/* Glass panels: fallback if backdrop-filter unsupported */
@supports not (backdrop-filter: blur(8px)) {
  .card,
  .product-ad,
  .featured-image,
  .image-frame {
    background: rgba(12, 0, 20, 0.85);
    border: 1px solid rgba(255,255,255,0.4);
  }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print styles for basic readability */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .image-frame, .featured-image, .product-ad { page-break-inside: avoid; break-inside: avoid; }
}
