/* Tokens */
:root {
  --bg: #0a0a0a;
  --bg-2: rgba(255, 255, 255, 0.08);
  --text: #f8f8f8;
  --muted: #b9b9b9;
  --accent: #d4af37;      /* gold */
  --accent-2: #cfd3d9;     /* silver */
  --glass: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --shadow: 0 6px 20px rgba(0,0,0,.35);
  --focus: 2px solid var(--accent);
}

/* Reset & base layout */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(15,15,15,.95) 0, rgba(8,8,8,.95) 60%, rgba(15,15,15,.95) 100%),
    linear-gradient(180deg, rgba(212,175,55,.04), rgba(212,175,55,.04)),
    rgba(0,0,0,0);
  background-color: var(--bg);
  /* layered texture: gradient + subtle gold glow + scanlines */
  background-image:
    linear-gradient(135deg, rgba(20,20,20,.88), rgba(12,12,12,.92) 60%, rgba(20,20,20,.88)),
    linear-gradient(to bottom, rgba(212,175,55,.04), rgba(212,175,55,.04)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 20% 0%, rgba(255,215,0,.05), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(192,192,192,.05), transparent 40%);
  background-blend-mode: normal, overlay, overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }

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

/* Layout helpers */
.container { max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding: 0 1rem; }

/* Grid & cards */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: .75rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); }

/* Glass panels (fallback if backdrop-filter unavailable) */
.glass,
header, main, article, footer, nav, aside { background: var(--glass); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); }
.glass { backdrop-filter: saturate(1.1) blur(12px); -webkit-backdrop-filter: saturate(1.1) blur(12px); padding: 0.75rem; }
.no-backdrop { background: rgba(255,255,255,.12); }

/* Typography & content styling */
.content { font-size: clamp(14px, 0.4vw + 14px, 18px); line-height: 1.6; color: var(--text); }
h1, h2, h3 { margin: .25em 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: .2px; }
h1 { font-size: clamp(1.75rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1rem, 1.8vw, 1.25rem); color: var(--text); }

/* Image framing with glow */
.image-frame { aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 0 20px rgba(212,175,55,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Specific sections & content targets */
header, main, article, footer, aside { padding: 1rem; margin: 0.5rem 0; }

/* Product ad / footer sections as glass panels */
.product-ad,
.sponsored-page {
  display: block;
  text-align: center;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: inline-block; padding: .25rem .5rem; border-radius: 8px; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Links & interactive controls */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: #ffd84a; outline: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Buttons (solid & outline variants) */
.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.25);
  background: var(--accent);
  color: #111;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: #e4a72e; }
.btn:active { transform: translateY(0); }
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.6);
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Utility helpers (compact) */
.ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Layout primitives per requirement */
.header { display: block; text-align: center; }
.main { display: block; padding: 1rem 0; }
.article { padding: .75rem; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer, aside { background: transparent; border: none; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
  .image-frame { page-break-inside: avoid; }
}
