/* Tokens */
:root {
  --bg: #0b0b0b;
  --bg-2: #141414;
  --text: #f5e9b0;
  --muted: #c9b36f;
  --accent: #d4a017;
  --accent-2: #ffd36b;
  --glass: rgba(20, 14, 0, 0.22);
  --glass-border: rgba(255, 255, 255, 0.28);
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0,0,0,0.55);
  --radius: 14px;
  --gap: 1rem;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Light-mode variant for readability */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f0e0;
    --bg-2: #ffffff;
    --text: #1a1a1a;
    --muted: #5a4a2f;
    --accent: #8a5a0a;
    --accent-2: #e1b24d;
    --glass: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(0, 0, 0, 0.12);
    --card: rgba(255, 255, 255, 0.95);
    --card-border: rgba(0, 0, 0, 0.15);
    --shadow: 0 6px 18px rgba(0,0,0,0.08);
  }
}

/* Layout foundations */
html, body { height: 100%; }
html { color-scheme: dark; }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: 
    /* parchment-gold gradient layer */
    linear-gradient(135deg, rgba(183, 140, 38, 0.25) 0%, rgba(0,0,0,0.75) 60%),
    /* subtle gold speckle / glow */
    radial-gradient(circle at 15% 0%, rgba(255, 230, 140, 0.12) 0%, transparent 40%),
    /* scanline texture (pure CSS) */
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 2px, transparent 2px 4px),
    #000;
  background-blend-mode: overlay, overlay, overlay, normal;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global container and utilities */
.container {
  width: min(100%, clamp(320px, 90vw, 1100px));
  margin-inline: auto;
  padding: 1rem;
}
.grid { display: grid; gap: 1rem; }
.grid.auto-fit { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Glass panels (fallback-safe) */
header, main, aside, article, footer {
  background: rgba(20, 14, 0, 0.22);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(105%);
  -webkit-backdrop-filter: blur(12px) saturate(105%);
  min-height: 0;
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  header, main, aside, article, footer {
    background: rgba(0,0,0,0.66);
    border-color: rgba(255,255,255,0.40);
  }
}

/* Header hero */
header {
  display: block;
  text-align: center;
  padding: 1.25rem;
}
header h1 {
  font-size: clamp(26px, 4.5vw, 48px);
  line-height: 1.04;
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--text);
}
header p { margin: 0; color: var(--muted); }

/* Main content area */
main { display: block; padding: 0.5rem 0 1rem; }
article { display: block; }

/* Image frame */
.image-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.25);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.25s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Content block inside panels */
.content { padding: 0.5rem 0 0; }

/* Product ad / callouts in footer area */
.product-ad, .sponsored-page {
  display: block; text-align: center;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
}
.product-ad a, .sponsored-page a {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: linear-gradient(to bottom right, rgba(212,160,23,0.95), rgba(212,160,23,0.75));
  color: #111; text-decoration: none; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.75);
}
.product-ad a:hover, .sponsored-page a:hover { transform: translateY(-1px); }
.product-ad a:focus-visible, .sponsored-page a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Links, buttons, and interactive controls */
a, button, .btn, .cta {
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  outline: none;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Button system */
.btn, .cta {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.42);
  background: linear-gradient(to bottom right, rgba(255, 214, 0, 0.95), rgba(212,160,23,0.85));
  color: #111;
  font-weight: 700;
  font-size: clamp(13px, 1.8vw, 15px);
  transition: transform 0.15s ease, background-color 0.2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }
.btn:focus-visible, .cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.55);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.08);
}
.cta { /* alias for primary action styling if used in content */
  padding: 0.75rem 1.5rem;
}

/* Card utility for compact panels */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  animation: fadeIn 600ms ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Image styling helper for framed visuals elsewhere */
.image-frame--full { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.25); }

/* Lists */
ul { margin: 0; padding: 0; list-style: none; }
li { margin: 0.25rem 0; }

/* Tags / chips */
.tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(212,160,23,0.18);
  border: 1px solid rgba(212,160,23,0.45);
  color: var(--text);
}

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

/* Accessibility helpers for form controls (presentational baseline) */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
```