:root {
  --bg: #0b0f0a;
  --bg-2: #1c2210;
  --text: #e8f0d8;
  --muted: #a8b89a;
  --accent: #a9c697;
  --accent-2: #d6e9c2;
  --card: rgba(255,255,255,.08);
  --card-border: rgba(180,190,140,.38);
  --shadow: 0 8px 24px rgba(0,0,0,.28);
  --ring: 0 0 0 3px rgba(169,198,151,.75);
  --radius: 12px;
  --focus: rgba(169,198,151,.65);
  --text-on-glass: #eaf5e8;
}

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

html, body, header, nav, main, article, aside, footer {
  /* ensure predictable rendering context if used elsewhere */
}

html, body {
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  font-size: clamp(14px, 0.9vw + 12px, 18px);
  line-height: 1.55;
  background: var(--bg);
  /* Layered background: gradient + stars + subtle scanlines (pure CSS) */
  background-image:
    radial-gradient(circle at 15px 25px, rgba(240,235,180,.28) 1px, transparent 2px),
    radial-gradient(circle at 120px 60px, rgba(200,225,180,.25) 1px, transparent 2px),
    radial-gradient(circle at 260px 90px, rgba(180,210,170,.22) 1px, transparent 2px),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.08) 0 1px, transparent 1px 2px),
    linear-gradient(135deg, rgba(111, 92, 28, .45), rgba(12, 14, 6, .85)),
    #0b0f0a;
  background-blend-mode: overlay, overlay, overlay, normal, normal, normal;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

header {
  padding: 1rem;
  text-align: center;
  position: relative;
}
header h1 {
  font-size: clamp(1.6rem, 0.9rem + 2.2vw, 3rem);
  line-height: 1.15;
  margin: 0 0 .35rem;
  color: var(--text);
  letter-spacing: .2px;
}
header .meta {
  font-size: 0.95rem;
  color: var(--muted);
}

nav { padding: 0.5rem 1rem; text-align: center; }

main { padding: 1rem; }
footer { padding: 1rem; text-align: center; color: var(--muted); }

.container { width: 100%; max-width: clamp(720px, 86vw, 1100px); margin: 0 auto; padding: 0 1rem; }

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

.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); color: var(--text-on-glass); }

.image-frame, .featured-image { width: 100%; aspect-ratio: 16 / 9; border-radius: calc(var(--radius) - 2px); overflow: hidden; border: 1px solid rgba(180,190,140,.38); background: rgba(255,255,255,.04); display: block; margin: 0.5rem 0; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.image-frame img, .featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.content { padding: 0; }

.product-ad { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1rem; border-radius: 12px; border: 1px solid rgba(180,190,140,.38); background: rgba(255,255,255,.08); box-shadow: var(--shadow); }

.product-ad h3 { margin: 0; font-size: 1.05rem; color: var(--text); }

.product-ad a { text-decoration: none; color: inherit; display: inline-block; }

.product-ad a p { margin: 0; padding: .45em .8em; border-radius: 6px; background: rgba(161,208,160,.9); color: #0b120c; font-weight: 700; }

a, button, .btn, .cta { text-decoration: none; color: inherit; }

/* Buttons: solid and outline variants; focus visible ring for accessibility */
.btn, .cta, a.btn, button.btn { display: inline-block; padding: .6em 1em; border-radius: 8px; border: 1px solid rgba(161,208,160,.95); background: rgba(161,208,160,.92); color: #0a160a; font-weight: 700; cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease; }
.btn-outline { background: transparent; border: 1px solid rgba(161,208,160,.95); color: var(--text); }
.btn:hover, .cta:hover, a.btn:hover, button.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .cta:focus-visible, a.btn:focus-visible, button.btn:focus-visible { outline: none; box-shadow: var(--ring); border-color: rgba(169,198,151,.95); }

ul, ol { padding-left: 1.25rem; margin: .5rem 0 1rem; color: var(--text); }
li { margin: .25rem 0; }

/* Utility tokens */
.tag { display: inline-block; padding: .15em .5em; border-radius: 999px; background: rgba(178,210,160,.28); color: var(--text); font-size: .8rem; }

/* Article-specific typographic helpers */
article h2 { font-size: clamp(1.5rem, 0.9rem + 2.2vw, 2.5rem); margin: .75rem 0 .25rem; color: var(--text); }
article h3 { font-size: clamp(1.15rem, 0.9vw + 1.2rem, 1.8rem); margin: .75rem 0; color: var(--text); }
blockquote { margin: .75rem 0; padding: .75rem 1rem; border-left: 4px solid rgba(161,208,160,.9); color: var(--muted); background: rgba(255,255,255,.04); border-radius: 6px; }

@media (min-width: 720px) {
  .container { padding: 0 0; }
}

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

/* Print-friendly */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}