:root {
  --bg: #0b0b0e;
  --bg-2: #221000;
  --text: #f7f2d2;
  --muted: #d9c37a;
  --accent: #e6b91e;     /* copper-yellow */
  --accent-2: #d08900;   /* copper highlight */
  --card: rgba(14, 10, 6, 0.28);
  --card-strong: rgba(14, 10, 6, 0.42);
  --border: rgba(230, 208, 120, 0.38);
  --focus: 0 0 0 3px rgba(230, 208, 120, 0.85);
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --shadow-soft: 0 4px 12px rgba(0,0,0,.25);
}

html, body {
  height: 100%;
}

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #2a1a0a 0%, #120802 60%, #0b0b0e 100%), radial-gradient(circle at 20% -10%, rgba(230,208,120,.10), transparent 35%);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  /* Layered overlay for texture (pure CSS) will be provided via pseudo elements below */
}

/* Subtle layered noise/scanline effect (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to bottom,
      rgba(255,255,255,.05) 0 1px,
      transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: .12;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

header, main, footer, aside {
  position: relative;
  z-index: 1;
}

/* Layout containers */
.container {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 214, 102, 0.35);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  background: #111;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}

@media (min-width: 860px) {
  .container { padding-inline: 0; }
}

.content {
  color: var(--text);
  line-height: 1.6;
  font-size: clamp(14px, 2.6vw, 18px);
  letter-spacing: .1px;
}

/* Glass panel look with fallback */
.glass {
  background: rgba(20, 20, 20, 0.28);
  border: 1px solid rgba(235, 235, 235, 0.28);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  /* Fallback for unsupported backdrop-filter */
}
@supports not ((backdrop-filter: blur(12px) ) or (-webkit-backdrop-filter: blur(12px))) {
  .glass {
    background: rgba(20, 20, 20, 0.42);
  }
}

/* Typography / hero */
header {
  padding: 1.25rem;
  margin: 1rem auto;
  border-radius: 14px;
}
header h1 {
  font-size: clamp(1.6rem, 4vw + 1rem, 3rem);
  line-height: 1.05;
  margin: 0 0 .25rem 0;
}
header .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 .75rem;
  user-select: none;
}
header nav {
  display: flex;
  gap: .5rem;
}
header nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(230,208,120,.4);
  background: rgba(0,0,0,.15);
}
header nav a:hover { text-decoration: underline; }

/* Main article styling */
main {
  padding: 1rem 0 2rem;
}
article {
  display: grid;
  gap: 1rem;
}
article h1 {
  font-size: clamp(1.5rem, 3vw + 1rem, 2.75rem);
  margin: .25rem 0 0.5rem;
}
article h2, article h3 {
  margin: .75rem 0 .25rem;
  font-weight: 700;
}
article p {
  margin: .5rem 0;
}

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

/* Tags */
.tag {
  display: inline-block;
  padding: .15em .5em;
  border-radius: 999px;
  font-size: .75rem;
  color: #111;
  background: rgba(230,208,120,.85);
  border: 1px solid rgba(230,208,120,.95);
}

/* Product ad / sponsored areas in footer as glass panels */
.product-ad, .sponsored-page {
  display: block;
  padding: .75rem;
  border-radius: 12px;
  margin: .25rem 0;
  background: rgba(20,20,20,.28);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: var(--shadow);
}
.product-ad a, .sponsored-page a {
  color: var(--text);
  text-decoration: none;
  display: block;
}
.product-ad a:hover, .sponsored-page a:hover {
  text-decoration: underline;
}

/* Links, buttons, CTAs */
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
}
a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}
button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(230,208,120,.65);
  background: linear-gradient(to bottom right, rgba(230,208,120,.95), rgba(208,143,0,.95));
  color: #1a1200;
  padding: .6rem .95rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
button:hover, .btn:hover, .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(230,208,120,.95);
}
.btn {
  background: linear-gradient(to bottom right, #ffd96b, #eab308);
  color: #1a1200;
}
.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(230,208,120,.6);
}
.cta {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(230,208,120,.6);
}
.cta:hover {
  background: rgba(230,208,120,.08);
}
.sr-only { 
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Aside (if present) */
aside {
  padding: .75rem;
  border-radius: var(--radius);
  background: rgba(20,20,20,.28);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: var(--shadow-soft);
}
footer {
  padding: 1rem 0;
  margin-top: 1rem;
}
footer p {
  margin: .25rem 0;
  color: var(--muted);
  font-size: .9rem;
}

/* Image helpers in article */
.image-wrap { margin: 0 0 1rem; }

/* Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  header, main, footer { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}