:root {
  /* Tokenized palette (gray + gold) */
  --bg: #0b0d12;
  --bg-2: #14161d;
  --text: #e8e8e8;
  --muted: #a7a7a7;
  --accent: #d4a017;
  --accent-2: #f0c14a;

  --card: rgba(24,24,28,.62);
  --glass: rgba(255,255,255,.08);
  --gloss: rgba(255,255,255,.18);
  --radius: 12px;
  --shadow: 0 14px 28px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  min-height: 100%;
  line-height: 1.5;

  /* Layered background: gradient + subtle noise/scanline (pure CSS) */
  background:
    linear-gradient(135deg, rgba(20,20,20,.92) 0%, rgba(20,20,20,.98) 60%, rgba(20,20,20,.92) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 20% 0, rgba(216, 176, 92,.08), transparent 40%),
    linear-gradient(#1a1a1a 0 0);
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}

header, main, footer, aside { display: block; }

/* Layout helpers */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card { padding: 1rem; border-radius: var(--radius); }

/* Header / hero */
header {
  padding: 2rem 0 1rem;
  text-align: center;
}
header h1 {
  font-size: clamp(1.6rem, 2vw + 1rem, 3rem);
  margin: 0 0 .4rem;
  letter-spacing: .2px;
  color: #f7e7a7;
}
header .meta {
  color: var(--muted);
  font-size: .92rem;
}

/* Content area */
main { padding: 1rem 0 2rem; }

article {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.featured-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  margin: 0 0 1rem;
}
.image-frame { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Typography */
h2 { font-size: clamp(1.4rem, 1.2rem + 1.2vw, 2rem); color: #f3e8a3; margin: .5rem 0 1rem; }
h3 { font-size: clamp(1.1rem, .9rem + .8vw, 1.3rem); margin: 1rem 0 .5rem; color: #e6e0a8; }
p { color: var(--text); opacity: .95; }
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; }

/* Blockquotes with emphasis */
blockquote {
  margin: .75rem 0;
  padding: .5rem 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(0,0,0,.15);
  color: #f8f5e0;
  border-radius: 6px;
}

/* Product ad (footer area) */
.product-ad {
  padding: .9rem;
  text-align: left;
  border-radius: 12px;
  background: rgba(14,14,16,.55);
  border: 1px solid rgba(255, 223, 0, .25);
  display: block;
}
.product-ad h3 { margin: 0 0 .5rem; font-size: 1.05rem; color: #ffd86b; }
.product-ad a {
  text-decoration: none;
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255,223,0,.9);
  color: #111;
  background: linear-gradient(to bottom right, rgba(212,160,0,.95), rgba(212,160,0,.6));
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); }
.product-ad a p { margin: 0; color: #111; font-weight: 700; }

/* Footer */
footer { padding: 2rem 0; text-align: center; color: var(--muted); }

/* Interactive elements */
a, button, .btn, .cta {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a { color: var(--accent-2); }
a:hover, a:focus { text-decoration: underline; outline: none; }

/* Buttons (solid and outline variants) */
.btn, .cta {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(212,160,0,.8);
  background: rgba(212,160,0,.95);
  color: #111;
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn.secondary, .cta.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(212,160,0,.8);
}
.btn:hover, .cta:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(212,160,0,.4); }
.btn:active, .cta:active { transform: translateY(0); }

/* Focus styles (accessibility) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
:not(:focus-visible) { outline: none; }

/* Glass panels (fallbacks included) */
.card, .content {
  background: rgba(24,24,28,.6);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.content { padding: 1rem; }

/* Typography helpers */
h1, h2, h3 { font-weight: 700; letter-spacing: .2px; }

/* Print styles for readability */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { padding: 0.5rem; }
  article { background: #fff; border: none; box-shadow: none; }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}