:root {
  /* Palette inspired by gray fabrics and sage green accents */
  --bg: #0f1117;
  --bg-2: #0b0e12;
  --text: #e8f0e6;
  --muted: #b6c4ad;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  --accent: #8fbf7a;   /* sage green */
  --accent-2: #6a8f5f; /* complementary sage */
  --radius: 12px;
  --focus: rgba(140, 255, 210, 0.9);
}

html, body { height: 100%; }

* { box-sizing: border-box; }

html {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  line-height: 1.55;
  background-color: var(--bg);
  /* Layered background: gradient + subtle noise/scanlines (pure CSS) */
  background-image:
    linear-gradient(135deg, rgba(20,24,28,.95) 0%, rgba(10,14,18,.95) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.12), rgba(0,0,0,.12)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(0,0,0,.02) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, overlay, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

 /* Layout helpers */
.container {
  max-width: clamp(320px, 86vw, 1100px);
  margin-inline: auto;
  padding: 0 1rem;
}

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

/* Glass panels with frosted look + fallback */
.glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}

/* Sections */
header, main, footer {
  display: block;
}

header {
  padding: 1rem 0;
  margin: 1rem auto;
}

header .inner {
  display: grid;
  gap: .75rem;
  align-items: start;
}

header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  line-height: 1.08;
  margin: 0;
  letter-spacing: .2px;
  color: var(--text);
}

header .meta {
  font-size: 0.85rem;
  color: var(--muted);
}

nav {
  display: inline-flex;
  gap: .5rem;
}

nav a {
  color: var(--accent-2);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(139,184,119,.5);
  background: rgba(143, 214, 173, 0.15);
}
nav a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

main {
  padding: 1rem 0 1.5rem;
}

article {
  display: block;
  padding: 0;
  margin: 0;
}

/* Images */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04), 0 6px 18px rgba(0,0,0,.25);
  background: #111;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-image { margin: 0 0 1rem; }

/* Content typography inside article */
.content { color: var(--text); }

h1, h2 {
  color: var(--text);
  line-height: 1.15;
}
h1 { font-size: clamp(1.6rem, 4vw, 2.9rem); margin: .25rem 0 0.75rem; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin: .9rem 0 .5rem; }

p { margin: .65rem 0; color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.125rem); }

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

/* Inline blocks */
blockquote {
  margin: .75rem 0;
  padding: .75rem 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(143,214,173,.12);
  border-radius: 6px;
  color: var(--text);
}

/* Content panels in footer/sections */
.product-ad, .sponsored-page {
  display: inline-block;
  margin: .25rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(143,214,173,.22);
  color: var(--text);
}
.product-ad { background: rgba(143,214,173,.28); border-color: rgba(143,214,173,.55); }
.sponsored-page { background: rgba(122,120,138,.28); border-color: rgba(255,255,255,.45); color: #e9e7f2; }

/* Generic interactive controls */
a, button, .btn, .cta {
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent); }

.btn, .cta {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.btn { background: rgba(143,214,173,.28); border-color: rgba(143,214,173,.6); }
.btn--solid { background: var(--accent); color: #082b0b; border: 1px solid rgba(0,0,0,.2); }
.btn--outline { background: transparent; border: 1px solid rgba(143,214,173,.6); color: var(--text); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }

/* Focus states for accessibility */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Inputs (if present) */
input, textarea, select {
  width: 100%;
  padding: .5rem .65rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: var(--text);
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}

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

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

/* Simple reveal for motion-friendly environments */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(6px); animation: reveal .6s ease forwards; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}