:root {
  /* Tokenized palette (olive base with turquoise accents) */
  --bg: #1a2c10;
  --bg-2: #2a3f12;
  --surface: rgba(20, 40, 20, 0.65);
  --card: rgba(14, 28, 14, 0.72);
  --text: #eafff5;
  --muted: #a8d6c0;
  --accent: #20e6d0;
  --accent-2: #4af0cd;
  --border: rgba(100, 210, 180, 0.4);
  --shadow: 0 8px 28px rgba(0,0,0,.45);
  --focus: 0 0 0 3px rgba(255,255,255,.6);
  --radius: 12px;
}

html, body, header, nav, main, article, footer, aside {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

html {
  background: transparent;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: var(--text);
  /* Layered background: gradient + subtle scanlines/noise (pure CSS) */
  background: 
    linear-gradient(135deg, rgba(26, 46, 14, 0.85) 0%, rgba(12, 26, 12, 0.92) 60%), 
    linear-gradient(to bottom right, rgba(42, 74, 28, 0.25), rgba(16, 24, 12, 0.15) 60%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.04) 0 1px, transparent 1px 2px),
    linear-gradient(to bottom, #0a170a, #0a170a);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (max-width: 640px) {
  body { background-attachment: scroll; }
  /* reduce motion on small screens by default */
  * { will-change: transform, opacity; }
}

header {
  padding: 1.25rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(100, 210, 180, 0.25);
  background: rgba(12, 26, 12, 0.55);
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  border-radius: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.6rem, 1.2vw + 1rem, 3rem);
  line-height: 1.05;
  letter-spacing: .4px;
  color: #eafff5;
  text-shadow: 0 2px 12px rgba(32, 230, 208, 0.4);
}

header .meta {
  margin: 0;
  font-size: clamp(0.8rem, 0.4vw + 0.6rem, 0.95rem);
  color: rgba(234, 255, 244, 0.85);
}

main {
  padding: 1rem 1rem 2rem;
}

.container {
  width: 100%;
  max-width: clamp(640px, 88vw, 1100px);
  margin-inline: auto;
  padding-inline: 0.5rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.article {
  display: block;
}

.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(100, 210, 180, 0.5);
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
  background: #000;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  mix-blend-mode: normal;
  transition: transform .3s ease;
}
.image-frame:hover img {
  transform: scale(1.02);
}

.content {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(10, 20, 12, 0.6);
  border: 1px solid rgba(100, 210, 180, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

@supports not (backdrop-filter: blur(10px)) {
  .content {
    background: rgba(10, 20, 12, 0.8);
    border: 1px solid rgba(100, 210, 180, 0.5);
  }
}

h2 {
  font-size: clamp(1.4rem, 1vw + 1rem, 2rem);
  margin: 0.75rem 0 0.4rem;
  color: #eafff5;
}

h3 {
  font-size: clamp(1.1rem, 0.9vw + 0.9rem, 1.5rem);
  margin: 0.75rem 0 0.25rem;
  color: #eafff5;
}

p {
  margin: 0 0 1rem;
  color: rgba(234, 255, 246, 0.93);
  line-height: 1.55;
}

blockquote {
  margin: 0.75rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: #eafff5;
  font-style: italic;
  opacity: 0.95;
}

ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0 1rem;
  color: rgba(234, 255, 246, 0.95);
}

li { margin: .25rem 0; }

.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: rgba(16, 40, 20, 0.62);
  border: 1px solid rgba(100, 210, 180, 0.5);
  margin: 0.5rem 0;
  transition: transform .2s ease, background .3s ease;
}
.product-ad a, .sponsored-page a {
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0.5rem;
}
.product-ad:hover, .sponsored-page:hover {
  transform: translateY(-1px);
  background: rgba(16, 40, 20, 0.75);
}

footer {
  padding: 1rem;
  text-align: center;
  color: rgba(232, 255, 240, 0.9);
  border-top: 1px solid rgba(100, 210, 180, 0.25);
  background: rgba(12, 26, 12, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

a, button, .btn, .cta {
  font: inherit;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  outline: none;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  display: inline-block;
}
a:hover, a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:focus-visible, .btn:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

.btn {
  background: rgba(32, 230, 208, 0.92);
  color: #04140b;
  border-color: rgba(32, 230, 208, 0.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.btn:hover {
  transform: translateY(-1px);
  background: rgba(28, 210, 190, 0.98);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(32, 230, 208, 0.9);
}
.btn--solid {
  background: linear-gradient(135deg, rgba(30, 210, 195, 0.95), rgba(12, 180, 170, 0.95));
  color: #04140b;
  border-color: rgba(20, 180, 165, 0.95);
}
.cta {
  display: inline-block;
  padding: .55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(32, 230, 208, 0.95);
  background: rgba(0,0,0,0.15);
  color: var(--text);
}
.cta:hover { transform: translateY(-1px); background: rgba(0,0,0,0.25); }

.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  border: 1px solid rgba(32, 230, 208, 0.6);
  color: var(--accent);
  background: rgba(32, 230, 208, 0.15);
}

/* Layout helpers (web typography & grid) */
.container + .container { margin-top: 1rem; }

.grid--2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-2px); }

/* Accessibility: prefer-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f7f1;
    --bg-2: #e0f0e7;
    --surface: rgba(230, 255, 245, 0.75);
    --card: rgba(255, 255, 255, 0.95);
    --text: #09231a;
    --muted: #4a6a5d;
    --accent: #0a7f8f;
    --accent-2: #1cc5b4;
    --border: rgba(0,0,0,0.08);
    --shadow: 0 6px 20px rgba(0,0,0,.08);
  }
  body {
    background: 
      linear-gradient(135deg, #e9f6f0 0%, #f3fff9 60%),
      repeating-linear-gradient(to bottom, rgba(0,0,0,0.03) 0 1px, transparent 1px 2px);
  }
  header {
    background: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
}
@media print {
  body { background: #fff; color: #000; }
  a, button { text-decoration: none; color: #000; }
}
