:root {
  /* Palette (Scarlet + Sand) */
  --bg: #0b0b0f;
  --bg-2: #1a0e0f;
  --text: #f5f7fa;
  --muted: #cbd5e1;
  --accent: #e21d1d;       /* scarlet */
  --accent-2: #d6b48a;     /* sand */
  --glass: rgba(255, 255, 255, 0.12);
  --glass-2: rgba(255, 255, 255, 0.26);
  --shadow: 0 8px 24px rgba(0,0,0,0.45);
  --ring: 0 0 0 3px rgba(226, 29, 29, 0.45);
  --radius: 14px;
}
 
/* Global reset-ish baseline */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(180, 20, 20, 0.75) 0%, rgba(40, 0, 0, 0.75) 60%, rgba(0,0,0,0.85) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px),
    var(--bg);
  background-attachment: fixed;
  font-size: clamp(14px, 1.2vw + 6px, 18px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}
 
/* Layout containers (centered, responsive) */
.container { width: 100%; max-width: clamp(680px, 90vw, 1100px); margin-inline: auto; padding: 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Glass panels (with backdrop-filter fallback) */
header, main, article, footer, aside {
  background: rgba(15, 15, 20, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  header, main, article, footer, aside { background: rgba(15, 15, 20, 0.78); }
}
 
/* Structural elements styling targets (as required selectors) */
html, body, header, nav, main, article, footer, aside { /* typographic defaults below */ }
.image-frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 6px 18px rgba(0,0,0,0.5); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.content { padding: 0.25rem 0 0; color: var(--text); }
.product-ad { margin: .75rem 0; padding: .75rem; border-radius: 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); text-align: center; }
.product-ad a { color: var(--text); text-decoration: none; display: inline-block; padding: .5rem 1rem; border-radius: 8px; }

/* Typography hierarchy (fluid, accessible) */
h1, h2, h3 { margin: .25rem 0; line-height: 1.25; font-weight: 700; color: #fff; }
h1 { font-size: clamp(1.6rem, 2vw + 1rem, 2.75rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 1.2vw + 0.8rem, 2rem); }
h3 { font-size: clamp(1.05rem, 0.9vw + 0.6rem, 1.4rem); color: #f1f5f9; }

/* Link and text emphasis accessibility */
a, button, .btn, .cta { font-family: inherit; color: var(--text); text-decoration: none; border-radius: 8px; cursor: pointer; transition: transform .15s ease, background-color .2s ease, color .2s ease; outline: none; }
a { color: var(--accent-2); }
a:hover:focus { text-decoration: underline; color: var(--accent); }

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

/* Buttons (solid and outline variants) */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .6em 1em; border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.08); color: var(--text); text-shadow: 0 1px 0 rgba(0,0,0,0.4); }
.btn--solid { background: linear-gradient(135deg, var(--accent), #a41919); border: 1px solid rgba(255,255,255,0.25); }
.btn--outline { background: transparent; border: 1px solid rgba(255,255,255,0.6); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Utility class examples (grid, card, tag) */
.card { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 12px; padding: .75rem; box-shadow: 0 6px 16px rgba(0,0,0,0.4); }
.tag { display: inline-block; padding: .25em .5em; border-radius: 999px; font-size: 12px; background: rgba(226, 26, 26, 0.25); color: #fff; border: 1px solid rgba(226, 26, 26, 0.55); }

/* Layout helpers for content flow */
header h1 { margin: 0 0 .25rem; font-weight: 800; }
header .meta { margin: .25rem 0 0; color: var(--muted); font-size: 0.92rem; }

/* Typography scale tweaks for mobile-first readability */
p { margin: 0 0 1rem; color: #f5f7fa; }
ul { margin: 0 0 1rem 1.1rem; padding: 0; }
li { margin: .25rem 0; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  header, main, article, footer { border: none; background: transparent; }
}
 
/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
 
/* Small screens tweaks */
@media (max-width: 640px) {
  .container { padding: 0 0.5rem; }
  .grid { grid-template-columns: 1fr; }
}
