/* Theme tokens */
:root{
  --bg: #1b0606;          /* deep red paper base */
  --bg-2: #2a0e0e;        /* darker edge tone for depth */
  --text: #f7f7f1;         /* high-contrast text on glass */
  --muted: #e5d9a8;        /* muted text / hints */
  --accent: #ffd76b;       /* pastel yellow accent */
  --accent-2: #fff6b0;     /* lighter accent for glow */
  --card: rgba(255,255,255,.08); /* frosted panel base */
  --border: rgba(255,255,255,.28);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --focus: var(--accent);
}

/* Layout & resets */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  /* Layered background: gradient + soft glow + scanline */
  background: 
    linear-gradient(135deg, rgba(26,6,6,.95) 0%, rgba(46,6,6,.95) 60%, rgba(16,0,0,.98) 100%),
    radial-gradient(circle at 20% 0%, rgba(255,215,140,.12) 0%, transparent 40%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Section headers (structure markers) */
 /* Theme */
 /* Layout utilities */
 .container { width: 100%; max-width: clamp(320px, 92vw, 1100px); padding: 0 1rem; margin: 0 auto; }

/* Core elements */
 html, body, header, nav, main, article, footer, aside { /* structural selectors for completeness */ }
 header { display: block; width: min(1100px, 92%); margin: 1.25rem auto; padding: 1.25rem; text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  }
 header h1 { font-size: clamp(1.8rem, 3.2vw + 1rem, 3.4rem); line-height: 1.08; margin: 0 0 .4rem; color: var(--text); letter-spacing: .2px; }
 header .meta { font-size: 0.92rem; color: var(--muted); }

/* Main content & articles as frosted surfaces */
 main { padding: 0 0 2rem; }
 article { margin: 1rem auto; padding: 1rem; max-width: clamp(320px, 90vw, 1100px);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  color: var(--text);
}
 article > .featured-image { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); box-shadow: var(--shadow); margin: .5rem 0; }
 .image-frame, .image-frame img { display: block; width: 100%; height: auto; border-radius: 10px; }
 .image-frame { aspect-ratio: 16 / 9; border: 1px solid rgba(255,255,255,.25); overflow: hidden; }
 .image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Content helpers */
 .content { padding: 0.75rem 0 0.25rem; color: var(--text); line-height: 1.6; }

/* Lists & blocks */
 ul, li { margin: 0 0 0.6rem 0; padding-left: 1.25rem; color: var(--text); }
 ol { padding-left: 1.25rem; }

/* Product ad (footer area) */
 .product-ad { margin: 1rem 0; padding: 1rem; border-radius: 12px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25); text-align: center;
}
 .product-ad h3 { margin: 0 0 .25rem; font-size: 1.1rem; color: var(--text); }
 .product-ad a { display: inline-block; padding: .55rem 1rem; border-radius: 8px;
  background: rgba(255,215,0,.18); color: #111; font-weight: 600; text-decoration: none;
  border: 1px solid rgba(255,255,255,.4); transition: transform .15s ease;
 }
 .product-ad a:hover { transform: translateY(-1px); }

/* Links & CTAs */
 a, button, .btn, .cta { color: var(--text); text-decoration: none; outline: none; }
 a { transition: color .15s ease; }
 a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
 a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
 }
 .btn, button, .cta {
  display: inline-block; padding: .6rem 1rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.16); color: var(--text);
  cursor: pointer; transition: transform .15s ease, background .2s ease;
 }
 .btn:hover, button:hover, .cta:hover { transform: translateY(-1px); background: rgba(255,255,255,.22); }
 .btn.primary { background: var(--accent); color: #111; border: 1px solid rgba(0,0,0,.15); }
 .btn.outline { background: transparent; border: 1px solid rgba(255,255,255,.6); }

/* Chips / tags */
 .tag { display: inline-block; padding: .2em .55em; font-size: .75rem; border-radius: 999px;
  background: rgba(255,255,255,.15); color: var(--text); }

/* Glass panels (fallbacks) */
 @supports not (backdrop-filter: blur(8px)) {
   article { background: rgba(255,255,255,.14); }
   header { background: rgba(255,255,255,.12); }
 }

/* Grid & utility patterns */
 .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Typography rhythm & responsiveness */
 h2 { font-size: clamp(1.25rem, 1.6vw + 1rem, 1.75rem); margin: .75rem 0; color: var(--text); }
 p { font-size: clamp(.98rem, .6vw + .95rem, 1.15rem); line-height: 1.6; color: var(--text); margin: .3rem 0 1rem; }

/* Accessibility & motion preferences */
 @media (prefers-reduced-motion: reduce) {
   * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
 }

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