:root {
  /* Palette (obsidian + bronze accent) */
  --bg: #0a0b12;
  --bg-2: #0f1220;
  --text: #e9f0ff;
  --muted: #a6afc5;
  --accent: #b07a2a;
  --accent-2: #d6a042;
  --surface: rgba(18, 18, 28, 0.6);
  --surface-2: rgba(255, 255, 255, 0.08);
  --ring: rgba(208, 168, 68, 0.9);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --card: rgba(255,255,255,0.04);
}
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  /* Layered background: gradient + subtle noise/scanlines */
  background:
    radial-gradient(circle at 20% 0%, rgba(80,40,120,.25), transparent 40%),
    linear-gradient(135deg, #0a0b12 0%, #111425 60%, #0a0b12 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: normal, normal, overlay;
  min-height: 100%;
  font-size: clamp(14px, 2.5vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
header, nav, main, article, aside, footer { display: block; }
nav { padding: 0; }
aside { padding: 0; }

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

/* Header / hero */
header {
  padding: 2rem 1rem;
  text-align: center;
}
header h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 .5rem;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  user-select: none;
}

/* Article content with glass panels (fallback supported) */
main { padding: 0; }
article { padding: 1rem 0; }
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: #000;
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
  display: block;
  margin: 1rem auto;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.content {
  background: rgba(12, 12, 22, 0.28);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(12px)) {
  .content { background: rgba(12,12,22,0.72); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
h2 { margin: .75rem 0 0.25rem; font-size: clamp(1.25rem, 3vw, 2rem); color: #fff; }
h3 { margin: .75rem 0 0.25rem; font-size: clamp(1.05rem, 2.4vw, 1.6rem); color: #fff; }
p { margin: 0 0 1rem; color: #e8efff; }

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

/* Blockquote styling */
blockquote {
  margin: .5rem 0 1rem;
  padding: .75rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,.18);
  border-radius: 6px;
  color: #f6f8ff;
}

/* Link and button styling */
a { color: var(--accent-2); text-decoration: none; transition: color .2s ease, text-decoration .2s ease; }
a:hover, a:focus { text-decoration: underline; color: #ffdca7; }
button, .btn, .cta {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 8px;
  border: 0;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:focus-visible, .cta:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}
.btn-outline {
  background: transparent;
  color: var(--accent-2);
  border: 2px solid rgba(176,122,42,.85);
}
.btn-outline:hover {
  background: rgba(176,122,42,.15);
  color: #fff;
  border-color: rgba(176,122,42,.95);
}
.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: .15em .6em;
  border-radius: 999px;
  font-size: .75rem;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.04);
}

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

/* Product ad in footer */
.product-ad {
  display: block;
  padding: .75rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(12,12,22,.28);
  text-align: left;
  margin: 1rem 0;
}
.product-ad h3 { margin: 0 0 .5rem; font-size: 1.02rem; }
.product-ad a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: .4rem .8rem;
  border-radius: 6px;
  background: linear-gradient(to bottom right, rgba(176,122,42,.95), rgba(176,122,42,.6));
  border: 1px solid rgba(255,255,255,.5);
}
footer { padding: 1rem; text-align: center; color: var(--muted); }

/* Print accessibility */
@media print {
  body { background: white; color: black; }
  a { text-decoration: underline; }
}

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