:root {
  --bg: #1b0f0f;
  --bg-2: #1a0b0a;
  --text: #f1e6d8;
  --muted: #c8a07a;
  --accent: #8a2e2e;       /* burgundy bronze base */
  --accent-2: #c07a3b;     /* bronze highlight */
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.28);
  --focus: 2px solid #ffd27a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* Global resets and mobile-first base */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
body {
  margin: 0;
  color: var(--text);
  background-color: #0b0b0b;
  /* Layered background: gradient + subtle noise/scanlines + glow lines */
  background-image:
    linear-gradient(135deg, rgba(60,20,20,0.92) 0%, rgba(12,6,6,0.98) 60%, rgba(28,8,8,0.96) 100%),
    repeating-linear-gradient(to bottom, rgba(255, 170, 102, 0.04) 0 1px, transparent 1px 2px),
    linear-gradient(45deg, rgba(80,40,20,0.07) 0 60%, transparent 60% 100%),
    radial-gradient(circle at 20% 0%, rgba(255,214,128,.08), transparent 40%);
  background-blend-mode: overlay, overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  padding: 0;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Structural layout helpers */
.container {
  width: 100%;
  max-width: clamp(680px, 90vw, 1100px);
  margin: 0 auto;
  padding: 0 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.tag { display: inline-block; padding: .25em .6em; border-radius: 999px; font-size: .75rem; color: #fff; background: linear-gradient(135deg, rgba(168,54,54,.95), rgba(192,122,59,.95)); }

/* Glass panels with graceful fallback */
header, main, footer, aside, .product-ad, .featured-image, .image-frame {
  background: rgba(10, 6, 6, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 0.9rem;
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  color: var(--text);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside, .product-ad, .featured-image, .image-frame {
    background: rgba(10, 6, 6, 0.28);
    border-color: rgba(255, 255, 255, 0.4);
  }
}

/* Header / Hero styling */
header {
  padding: 1rem 0;
  text-align: center;
}
header h1 {
  margin: 0.2rem 0 0.4rem;
  font-size: clamp(1.8rem, 2.6vw + 1rem, 3.6rem);
  line-height: 1.05;
  letter-spacing: .2px;
  color: var(--text);
}
header .meta {
  margin: 0;
  font-size: clamp(0.9rem, 0.8vw + 0.6rem, 1.05rem);
  color: var(--muted);
}
nav {
  margin-top: 0.6rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .25rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
}
nav a:hover, nav a:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* Featured image / image frame */
.featured-image, .image-frame {
  width: 100%;
}
.image-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.image-frame:hover img {
  transform: scale(1.03);
}
.featured-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.28);
  display: block;
  box-shadow: 0 6px 14px rgba(0,0,0,.2);
}

/* Main article content */
main { padding: 1rem 0 2rem; }
article { display: grid; gap: 1rem; grid-template-columns: 1fr; }
article h2 {
  margin: 0;
  font-size: clamp(1.25rem, 1.2vw + 1rem, 2rem);
  color: var(--text);
}
article p { color: var(--muted); font-size: clamp(1rem, 0.9vw + 0.8rem, 1.125rem); line-height: 1.6; margin: 0 0 1rem; }
article ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
article li { margin: .25rem 0; color: var(--text); }

/* Blockquote with distinct style for emphasis */
blockquote {
  margin: .5rem 0 1rem;
  padding: .75rem 1rem;
  border-left: 3px solid var(--accent-2);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
  color: #fff;
}

/* Paragraph emphasis / links */
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid #ffd27a; outline-offset: 2px; border-radius: 4px; }

/* Product ad / footer blocks using glass panel style */
.product-ad {
  display: block;
  text-align: center;
  padding: 0.85rem;
  margin: 0.25rem auto;
}
.product-ad a { color: #fff; text-decoration: none; display: block; }
.product-ad a p { margin: 0; font-weight: 600; }

/* Footer */
footer { padding: 1rem 0; text-align: center; }

/* Utility and small components */
.container, .grid, .card, .tag { /* keep utilities light; definitions above cover major needs */ }

/* Form baseline (if present) */
input, select, textarea, button {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
}
button, .btn, .cta {
  border: 1px solid rgba(255,255,255,.4);
  background: linear-gradient(135deg, rgba(138,46,46,0.95), rgba(192,122,59,0.95));
  color: #fff;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  display: inline-block;
}
button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
button:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: 2px solid #ffd27a; outline-offset: 2px; }

/* Lightweight print readability */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
  a { text-decoration: underline; }
}
  
/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
