/* Core tokens & theme */
:root {
  --brown-1: #2b1b0b;
  --brown-2: #5a3c22;
  --green-1: #3bd46d;
  --green-2: #8bdc9a;

  --bg: #1b110b;
  --bg-2: #2b1b0a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.28);
  --text: #d7ffd7;
  --muted: #a6d6a0;
  --accent: #3ee56e;
  --accent-2: #7de2a0;

  --shadow: 0 6px 22px rgba(0,0,0,.5);
  --focus: 0 0 0 3px rgba(62, 246, 110, 0.6);
  --radius: 12px;
  --gap: 1rem;
}

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

html, body {
  margin: 0;
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans";
  font-weight: 400;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Layered background: gradient + subtle scanlines/noise */
  background-image:
    linear-gradient(135deg, rgba(60,32,14,.92) 0%, rgba(18,9,4,.92) 60%, rgba(12,8,6,.92) 100%), 
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 2px, rgba(0,0,0,0) 2px 4px),
    radial-gradient(circle at 20% -10%, rgba(140,210,130,.08), rgba(0,0,0,0) 40%);
  background-blend-mode: overlay, overlay, normal;
  background-attachment: fixed;
}

@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  /* ok, will apply frosted panels where used */
}
@supports not (backdrop-filter: blur(8px)) {
  /* Fallback handled via .glass fallback class if needed */
}

/* Global helpers */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}
.card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .25em .5em;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  color: var(--text);
}
.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
  display: block;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  mix-blend-mode: normal;
}
.backdrop {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  /* frosted glass with backdrop if supported */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .backdrop { background: rgba(255,255,255,.16); }
}

header {
  padding: 2rem 1rem;
  text-align: center;
  margin: 1rem auto;
  max-width: 1100px;
}
header h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.75rem, 1.2rem + 3vw, 3rem);
  line-height: 1.15;
  letter-spacing: .2px;
}
header .meta {
  margin: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}
main { padding: 1rem 0; }
article { display: block; }

.featured-image { margin: 1rem 0 1rem; }

h2 {
  font-size: clamp(1.4rem, 0.8rem + 2vw, 2.2rem);
  margin: 0.75rem 0 0.5rem;
  letter-spacing: .2px;
}
p { color: var(--text); margin: .5rem 0 1rem; }
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; color: var(--text); }
li { margin: .25rem 0; }

a {
  color: var(--accent-2);
  text-decoration: none;
}
a:hover, a:focus-visible {
  text-decoration: underline;
  outline: none;
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn, .cta, a.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  user-select: none;
}
.btn:hover, .cta:hover, a.btn:hover { transform: translateY(-1px); }
.btn:active, .cta:active, a.btn:active { transform: translateY(0); }

.btn--solid {
  background: linear-gradient(135deg, rgba(62,245,110,.95), rgba(38,190,96,.95));
  color: #0a2a08;
  border-color: rgba(0,0,0,.2);
}
.btn--outline {
  background: rgba(0,0,0,.0);
  color: var(--text);
  border-color: rgba(110,255,190,.6);
}
.btn:focus-visible, .cta:focus-visible, a.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  outline-offset: 0;
}

footer {
  padding: 2rem 1rem;
  margin-top: 1rem;
}
.product-ad, .sponsored-page {
  display: block;
  padding: .75rem;
  border-radius: var(--radius);
  margin: .5rem 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  text-align: center;
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: block; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

@media (min-width: 720px) {
  header { margin: 2rem auto; }
  main { padding-inline: 2rem; }
  .container { padding-inline: 0; }
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f0e0;
    --bg-2: #e8e0c6;
    --text: #1a2a15;
    --muted: #4e5c2a;
    --surface: rgba(0,0,0,.08);
    --surface-2: rgba(0,0,0,.12);
    --glass-border: rgba(0,0,0,.25);
    --accent: #0a6b40;
    --accent-2: #1f9a57;
  }
  html, body { background-color: var(--bg); color: var(--text); }
  a { color: var(--accent-2); }
  .backdrop { background: rgba(255,255,255,.9); border-color: rgba(0,0,0,.2); color: #0b1a0b; }
}
@media print {
  a, a:visited { text-decoration: underline; color: #000; }
  .btn, .cta { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}