/* Theme tokens */
:root {
  --bg: #0b0f0a;
  --bg-2: #141f12;
  --text: #e8f5c7;
  --muted: #a8b87a;
  --accent: #d4c92a;
  --accent-2: #a6c04a;
  --surface: rgba(16, 26, 16, 0.28);
  --surface-2: rgba(14, 22, 14, 0.34);
  --border: rgba(180, 190, 60, 0.45);
  --shadow: 0 8px 28px rgba(0,0,0,0.55);
  --focus: 2px solid #e7f28d;
  --focus-offset: 2px;
}

/* Light mode tweaks for legibility */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f5e9;
    --bg-2: #eef2d2;
    --text: #1b1b0a;
    --muted: #5a5a3a;
    --accent: #8a9a1a;
    --accent-2: #5a7a00;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-2: rgba(255, 255, 255, 0.9);
    --border: rgba(0,0,0,0.15);
  }
  :root { color-scheme: light; }
}

/* Global / Layout */
html, body { height: 100%; }
html { font-size: 16px; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + subtle olive/yellow glow + scanlines */
  background-image:
    radial-gradient(circle at 15% 0%, rgba(212, 190, 52, 0.10), transparent 40%),
    linear-gradient(135deg, rgba(12, 18, 12, 0.92), rgba(6, 9, 6, 0.92)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, normal, overlay;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: clamp(720px, 90vw, 1100px);
  padding-inline: 1rem;
  margin: 0 auto;
}

header, main, footer { width: 100%; }

/* Section headers (glassy panels) */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1rem;
  margin: 1rem auto;
  border-radius: 14px;
  background: rgba(12, 18, 12, 0.28);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 1rem + 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: .4px;
  color: var(--text);
}

/* Main content */
main { padding: 1rem 0; }

.image-frame {
  width: min(92%, 860px);
  aspect-ratio: 16 / 9;
  margin: 1rem auto;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(180, 190, 60, 0.45);
  background: #0b0f0a;
  box-shadow: 0 8px 26px rgba(0,0,0,0.5);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

/* Footer / product ad blocks (glass panels) */
footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
}
.product-ad, .sponsored-page {
  padding: .9rem;
  border-radius: 12px;
  background: rgba(12, 18, 12, 0.28);
  border: 1px solid rgba(140, 170, 60, 0.48);
  box-shadow: var(--shadow);
  display: block;
  text-align: center;
}
.product-ad a, .sponsored-page a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(180, 190, 60, 0.6);
  transition: transform .2s ease, background .2s ease;
}
.product-ad a:hover, .sponsored-page a:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}
footer p {
  text-align: center;
  color: var(--muted);
  margin: .25rem 0 0;
  font-size: .9rem;
}

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

/* Focus styles for accessibility */
:focus-visible {
  outline: var(--focus) auto;
  outline-offset: var(--focus-offset);
  border-radius: 6px;
}
.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 210, 80, 0.8);
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .2s ease, background .2s ease;
  background: linear-gradient(135deg, rgba(212, 200, 60, 0.95), rgba(170, 170, 40, 0.95));
  color: #1b1b0a;
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }

/* Glass panel helpers (fallbacks covered by base colors) */
.glass {
  background: rgba(12, 18, 12, 0.28);
  border: 1px solid rgba(180, 190, 60, 0.5);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

/* Content helpers (structure-ready utilities) */
.content { padding: 0.75rem 0; }

/* Grid / cards (responsive utilities) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.card {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(12, 26, 12, 0.28);
  border: 1px solid rgba(180, 190, 60, 0.5);
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(212, 190, 60, 0.25);
  border: 1px solid rgba(212, 190, 60, 0.6);
  color: var(--text);
}

/* Image frame helpers for accessibility on media */
.image-frame { outline: none; }

/* Lists (for potential nav/menus) */
ul, li { margin: 0; padding: 0; list-style: none; }

/* Print styles (basic readability) */
@media print {
  body { background: white; color: #000; }
  header, footer { background: transparent; border: none; box-shadow: none; }
  a { text-decoration: underline; }
}
  
/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
