:root {
  --bg: #0b130f;
  --bg-2: #141a12;
  --bg-3: #0e1b0f;
  --text: #e9f0d8;
  --muted: #a6b8a0;
  --accent: #ff8a00;
  --accent-2: #ff4d00;
  --glass: rgba(12, 20, 12, 0.22);
  --glass-2: rgba(12, 20, 12, 0.12);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --container: clamp(320px, 90vw, 1100px);
}

html, body {
  height: 100%;
}
* { box-sizing: border-box; }

html, body, header, nav, main, article, aside, footer {
  /* structural reset minimal footprint */
  margin: 0;
  padding: 0;
  border: 0;
}

/* Global layout and layered background (gradient + scanline) */
body {
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(6,18,9,.8) 0%, rgba(10,22,14,.85) 60%, rgba(8,14,10,.95) 100%),
    radial-gradient(circle at 20% 0%, rgba(60,90,40,.25), transparent 40%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 1px, transparent 2px);
  background-attachment: fixed;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  isolation: isolate;
  position: relative;
}
body::before {
  /* subtle ambient glow and noise-like texture (pure CSS) */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 20%, rgba(255,160,0,.15), transparent 40%),
    linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.12) 40%, rgba(0,0,0,.0) 60%);
  mix-blend-mode: overlay;
  opacity: 0.6;
  z-index: 0;
}

/* Light/dark mode variant for legibility (optional normalization) */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7f1;
    --bg-2: #e9efe6;
    --bg-3: #e3f0e6;
    --text: #0b1a0a;
    --muted: #5b6a61;
    --accent: #b45300;
    --accent-2: #8b2e00;
    --glass: rgba(240, 244, 238, 0.65);
    --glass-2: rgba(240, 244, 238, 0.35);
    --border: rgba(0,0,0,.15);
    --shadow: 0 6px 20px rgba(0,0,0,.08);
  }
  body {
    background: 
      linear-gradient(135deg, #f7f9f4 0%, #eef3ea 60%, #e7f0e8 100%),
      radial-gradient(circle at 20% 0%, rgba(120,180,120,.25), transparent 40%),
      repeating-linear-gradient(0deg, rgba(0,0,0,.03) 0, rgba(0,0,0,.03) 1px, transparent 1px, transparent 2px);
  }
  body::before { opacity: 0.5; }
}

/* Structural elements to satisfy selectors */
html, body, header, nav, main, article, footer, aside { display: block; }

header {
  padding: 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 14, 10, 0.28);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0;
  /* glass-like header panel */
}
header h1 {
  margin: 0.25rem 0;
  font-size: clamp(1.4rem, 2.2vw + 1rem, 2.6rem);
  line-height: 1.15;
  color: #eafbd3;
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
}
main {
  padding: 1rem 0;
  display: grid;
  place-items: center;
}
article {
  width: min(100%, var(--container));
  padding: 0.5rem;
}
footer {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  align-items: center;
  color: var(--muted);
  background: rgba(8, 12, 8, 0.28);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
aside { display: none; }

/* Image frame styling */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  box-shadow: var(--shadow);
  display: block;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  transition: transform .25s ease;
}
.image-frame:hover img {
  transform: scale(1.04);
}

/* Content area (glass panels) */
.content {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: transform .2s ease, background .2s ease;
}
@supports not (backdrop-filter: blur(8px)) {
  .card, .content {
    backdrop-filter: none;
    background: rgba(12, 20, 12, 0.78);
  }
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-2px); }
}
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 138, 0, 0.25);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  margin-right: .4rem;
}

/* Product ad + sponsor sections (glass panels) */
.product-ad, .sponsored-page {
  width: min(100%, 680px);
}
.product-ad a, .sponsored-page a {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(255, 138, 0, 0.25);
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.35);
  transition: transform .15s ease, background .2s ease;
}
.product-ad a:hover, .sponsored-page a:hover {
  background: rgba(255, 138, 0, 0.38);
  transform: translateY(-1px);
}
.product-ad a:focus-visible, .sponsored-page a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 10px;
}
.product-ad p, .sponsored-page p {
  margin: 0;
  font-weight: 600;
  letter-spacing: .2px;
}
@media (prefers-color-scheme: light) {
  .product-ad a, .sponsored-page a {
    background: rgba(180, 92, 0, 0.28);
    border: 1px solid rgba(0,0,0,.15);
    color: #0b1a0a;
  }
  .product-ad a:hover, .sponsored-page a:hover { background: rgba(180, 92, 0, 0.38); }
}

/* Link and button treatments (high contrast, focus visibility) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  display: inline-block;
  font: inherit;
  cursor: pointer;
  background: transparent;
  transition: color .15s ease, background .2s ease, transform .15s ease;
}
a { color: var(--accent); }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 6px;
}
.btn, .cta {
  background: var(--accent);
  color: #111;
  border: 0;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(255,136,0,.25);
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.4);
}
.btn--outline:hover { background: rgba(255,255,255,.08); }

/* Lists and grids */
ul { margin: 0; padding: 0; list-style: none; }
li { margin: .25rem 0; }

/* Utilities and layout helpers */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card { /* glass card already defined; alias for convenience */
  background: var(--glass);
  border: 1px solid var(--border);
}
.content { /* content panel alias */ }

/* Print styles for readability */
@media print {
  body { background: #fff !important; color: #000; }
  header, main, footer { background: transparent !important; box-shadow: none !important; }
  a, button { color: #000 !important; text-decoration: underline; }
}
