:root {
  --bg: #0a0a0f;
  --bg-2: #0f1115;
  --text: #e8f2dc;
  --muted: #c8d8b9;
  --accent: #8ab34d;
  --accent-2: #4a5a35;
  --surface: rgba(16, 22, 20, 0.72);
  --surface-2: rgba(12, 18, 16, 0.60);
  --glass: rgba(16, 22, 20, 0.28);
  --border: rgba(120, 140, 110, 0.45);
  --shadow: 0 8px 28px rgba(0,0,0,0.32);
  --focus: 2px solid rgba(180,210,140,0.95);
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background: linear-gradient(135deg, #0a0a0f 0%, #0b0f12 40%, #0e141a 100%);
  min-height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  padding-block: 0;
}

/* Layered background: gradient + subtle scanlines and noise (pure CSS) */
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.25), rgba(0,0,0,0.0) 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: 0.7;
  pointer-events: none;
  filter: saturate(110%);
}

/* Basic layout shells to satisfy selectors */
header, nav, main, article, aside, footer {
  display: block;
}
header, footer {
  width: 100%;
}
main {
  display: block;
}
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: rgba(12, 18, 16, 0.28);
  border: 1px solid rgba(120,140,110,0.45);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(8px)) {
  .card {
    background: rgba(12, 18, 16, 0.66);
    border-color: rgba(120,140,110,0.6);
  }
}
.image-frame {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(120,140,110,0.5);
  background: rgba(0,0,0,0.25);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  display: block;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  filter: saturate(1.05);
}
.content {
  color: var(--text);
  font-size: clamp(0.92rem, 1rem + 0.2vw, 1.05rem);
  line-height: 1.6;
}
.product-ad, .sponsored-page {
  display: block;
  margin: 0.5rem 0;
  border-radius: 12px;
  background: rgba(12, 18, 16, 0.34);
  border: 1px solid rgba(120,140,110,0.5);
  padding: 0.75rem 1rem;
}
.product-ad a, .sponsored-page a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.product-ad a:hover, .sponsored-page a:hover,
.product-ad a:focus, .sponsored-page a:focus {
  text-decoration: underline;
}
.product-ad p, .sponsored-page p {
  margin: 0;
}
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
a, .btn, .cta {
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
a:hover { text-decoration: underline; color: var(--accent-2); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 0;
  outline-offset: 2px;
  box-shadow: none;
}
.btn, .cta {
  display: inline-block;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(120,140,110,0.6);
  background: rgba(60, 110, 40, 0.95);
  color: #eaffdc;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}
.btn:hover, .cta:hover {
  transform: translateY(-1px);
  background: rgba(80, 140, 60, 1);
}
.btn:focus-visible, .cta:focus-visible {
  outline: 3px solid rgba(180,210,140,0.95);
  outline-offset: 2px;
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(120,140,110,0.28);
  border: 1px solid rgba(120,140,110,0.5);
  color: #eefece;
}

/* Hero typography and layout tweaks */
header {
  padding: 2rem 1rem 1rem;
  text-align: center;
}
header h1 {
  margin: 0;
  font-family: ui-sans-serif, system-ui;
  font-size: clamp(1.75rem, 3vw + 1rem, 3rem);
  line-height: 1.08;
  letter-spacing: .2px;
  color: var(--text);
}
main {
  padding: 1rem 0 2rem;
}
footer {
  padding: 1.25rem;
  display: grid;
  gap: 0.75rem;
  place-items: start stretch;
  background: linear-gradient(to top, rgba(10,12,14,0.9), rgba(10,12,14,0.65) 60%, rgba(10,12,14,0.9));
  border-top: 1px solid rgba(120,140,110,0.4);
}
footer p { margin: 0; color: var(--muted); font-size: 0.9rem; }

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

/* Typography scale with accessibility in mind */
h2, h3 { color: var(--text); margin: 0.75rem 0 0.25rem; }
p { margin: 0.25rem 0 0.75rem; color: var(--muted); }

/* Print styles for readability */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  .image-frame { page-break-inside: avoid; }
}

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