:root {
  /* Palette tokens derived from coral/burgundy with accessible accents */
  --bg: #0b0b0f;
  --bg-2: #1a0a0b;
  --surface: rgba(18, 0, 12, 0.28);
  --surface-2: rgba(24, 0, 12, 0.32);
  --text: #f9f0f0;
  --muted: #d9b6b6;
  --accent: #ff6b60;      /* coral/red accent */
  --accent-2: #ff7a66;    /* lighter coral */
  --card: rgba(12, 0, 6, 0.28);
  --border: rgba(255, 255, 255, 0.22);
  --shadow: 0 8px 28px rgba(0,0,0,.45);
  --radius: 14px;
  --focus: rgba(255, 140, 110, 0.95);
  --dot: rgba(255, 110, 90, 0.8);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

html { color-scheme: dark; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  line-height: 1.5;
  /* Layered background: gradient + coral dot pattern + subtle scanlines */
  background-image:
    radial-gradient(circle at 10px 10px, rgba(255,107,96,.32) 2px, transparent 3px),
    radial-gradient(circle at 40px 40px, rgba(255,107,96,.22) 2px, transparent 3px),
    linear-gradient(135deg, #160404 0%, #1a0a0d 60%, #0b0406 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, normal, overlay;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Section headers / logical blocks */
 /* Base layout utilities */
.container { width: 100%; max-width: clamp(640px, 90vw, 1100px); margin: 0 auto; padding: 0 1rem; }

.grid { display: grid; gap: 1rem; }

.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 1rem;
}

.tag {
  display: inline-block;
  padding: .25em .6em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(255,107,96,.25);
  color: #ffd7d2;
  border: 1px solid rgba(255,107,96,.6);
}

/* Layout elements */
header, nav, main, article, aside, section, footer {
  display: block;
}

header {
  width: min(1100px, 92%);
  margin: 2rem auto;
  padding: 1.25rem;
  text-align: center;
  border-radius: calc(var(--radius) - 4px);
  background: rgba(20,0,15,.28);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

header h1 {
  font-size: clamp(1.75rem, 1.2rem + 3vw, 3rem);
  margin: .25rem 0;
  color: #fff;
  letter-spacing: .2px;
}

header .meta {
  color: #ffd9d9;
  font-size: clamp(0.8rem, 0.6rem + 0.8vw, 1.05rem);
  margin: 0;
  opacity: .95;
}

/* Simple navigation with accessible focus */
nav {
  padding-top: .5rem;
}
nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
}
nav a:hover, nav a:focus-visible {
  text-decoration: underline;
  outline: 0;
}

/* Main content */
main { padding: 1rem 0 0; }
article { max-width: 1100px; margin: 0 auto; padding: 0 1rem 2rem; }

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

/* Typography scale for hero content */
h2 {
  font-size: clamp(1.4rem, 0.8rem + 2vw, 2.25rem);
  margin: 1rem 0 .25rem;
  color: #ffd0d0;
}
p {
  color: #f5dede;
  margin: .75rem 0;
  font-size: clamp(14px, 1.3vw + 12px, 18px);
  max-width: 65ch;
}
blockquote {
  margin: .75rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: #ffd7d7;
  font-style: italic;
}
ul { margin: .75rem 0; padding-left: 1.25rem; }
li { margin: .35rem 0; }

/* Content helper (non-critical) */
.content { color: var(--text); line-height: 1.6; }

/* Glass panels (fallback + backdrop-filter) */
.product-ad, .sponsored-page, aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem;
  text-align: center;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.product-ad a, .sponsored-page a {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}
.product-ad:hover, .sponsored-page:hover { transform: translateY(-2px); }

/* Sub-panels in footer flow */
footer {
  padding: 1.5rem;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  align-items: stretch;
  background: rgba(8,0,8,.25);
  border-top: 1px solid rgba(255,255,255,.18);
}
footer p {
  margin: 0;
  color: #f6e6e6;
  font-size: .9rem;
  opacity: .95;
}

/* Link/button styling across the board */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 500;
  border: none;
  outline: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Button variants (solid and outline) */
.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem .95rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.btn:hover, .cta:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* Focus visibility for accessibility */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Utilities for responsive layout (grid helpers) */
@media (min-width: 640px) {
  .container { padding: 0 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print styles: basic readability */
@media print {
  body { background: #fff; color: #000; }
  header, nav, footer { background: transparent; border: none; box-shadow: none; }
  .image-frame { page-break-inside: avoid; }
}
