/* Theme & Layout Tokens */
:root{
  --bg: #0a0a0a;
  --bg-2: #1a1e0b;
  --text: #e9f7d8;
  --muted: #a6bf92;
  --accent: #e4d347;     /* yellow/gold */
  --accent-2: #97a31a;    /* olive */
  --surface: rgba(16, 20, 12, 0.22);
  --surface-2: rgba(255,255,255,0.06);
  --ring: 0 0 0 3px rgba(228,211,71,0.65);
  --shadow-soft: 0 8px 20px rgba(0,0,0,0.45);
}

/* Base: mobile-first typography & layering */
html, body {
  height: 100%;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.75), rgba(0,0,0,0.85)),
    linear-gradient(0deg, rgba(20,22,12,0.4), rgba(20,22,12,0.4)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 214, 80, 0.08) 0 2px,
      rgba(0,0,0,0) 2px 6px
    );
  background-blend-mode: normal, normal, overlay;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layered Glass Panels (fallback included) */
header, nav, main, article, aside, footer {
  background: rgba(12, 16, 12, 0.22);
  border: 1px solid rgba(170, 190, 90, 0.38);
  border-radius: 12px;
  padding: 0.75rem;
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: var(--shadow-soft);
}
@supports not (backdrop-filter: blur(12px)) {
  header, nav, main, article, aside, footer {
    background: rgba(12, 16, 12, 0.28);
  }
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 88vw, 1120px);
  margin: 0 auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: rgba(16, 26, 12, 0.22);
  border: 1px solid rgba(140, 170, 70, 0.38);
  border-radius: 12px;
  padding: 1rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4ch;
  padding: 0.25em 0.6em;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(150, 180, 60, 0.15);
  border: 1px solid rgba(150, 180, 60, 0.45);
  color: var(--text);
}

/* Image frame treatment */
.image-frame {
  width: min(100%, 720px);
  aspect-ratio: 16 / 9;
  margin: 1rem auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(180, 190, 60, 0.6);
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
}

/* Hero & typography */
header {
  text-align: center;
  padding: 1rem 0 0;
}
header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw + 0.8rem, 3.4rem);
  line-height: 1.15;
  color: #f5f8c2;
  letter-spacing: 0.2px;
}
main {
  padding: 0.75rem 0 1rem;
}
article { display: block; }

/* Content body styling (section where text sits) */
.content {
  color: var(--text);
  padding: 0.75rem 0;
  font-size: clamp(0.95rem, 1.2vw + 0.8rem, 1.15rem);
  line-height: 1.6;
}

/* Buttons & links (interactive states) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
a { color: var(--accent); }
a:hover, a:focus-visible { text-decoration: underline; color: var(--accent-2); outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Primary button style */
.btn {
  display: inline-block;
  padding: 0.75em 1.25em;
  border-radius: 8px;
  border: 1px solid rgba(226, 210, 90, 0.6);
  background: linear-gradient(to bottom right, rgba(226,210,90,0.95), rgba(180,150,40,0.95));
  color: #141a0a;
  font-weight: 700;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Outline button variant */
.btn.outline, .cta.outline {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid rgba(151, 163, 26, 0.8);
}
.cta {
  display: inline-block;
  padding: 0.75em 1.25em;
  border-radius: 8px;
  border: 1px solid rgba(226, 210, 90, 0.6);
  background: linear-gradient(to bottom right, rgba(226,210,90,0.9), rgba(150,140,40,0.9));
  font-weight: 700;
}
.cta:hover { transform: translateY(-1px); }

/* Lists */
ul { padding: 0; margin: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
li { margin: 0; }

/* Product ad sections (footer area) */
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  padding: 0.75rem;
  margin: 0.5rem 0;
}
.product-ad a, .sponsored-page a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5ch;
  padding: 0.75em 1.1em;
  border-radius: 8px;
}
.product-ad {
  background: rgba(10, 18, 10, 0.22);
  border: 1px solid rgba(140, 180, 70, 0.4);
}
.sponsored-page {
  background: rgba(4, 8, 8, 0.22);
  border: 1px solid rgba(120, 150, 60, 0.38);
}
.product-ad p, .sponsored-page p {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

/* Global focus-visible for all interactive controls (redundant safeguard) */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Navigation & utility spacing (kept lean for a landing page) */
nav { padding: 0.25rem 0; }

/* Print-friendly adjustments (basic readability) */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  header, main, article, footer { background: #fff; border: none; border-radius: 0; }
  a { text-decoration: underline; color: #000; }
}

/* Responsive helpers */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f6f0;
    --bg-2: #e9f0d7;
    --text: #1a1a0a;
    --muted: #5e6b3a;
  }
  body {
    background: linear-gradient(135deg, #f7f7f0 0%, #f0f4e0 60%), repeating-linear-gradient(to bottom, rgba(0,0,0,0.04) 0 1px, transparent 1px 2px);
  }
  header, nav, main, article, aside, footer {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(120,120,80,0.6);
  }
  header h1 { color: #2b2b0f; text-shadow: none; }
  a { color: #6b6b2a; }
}
