:root{
  --bg: #0a2e1a;
  --bg-2: #0a3a14;
  --text: #eafff5;
  --muted: #a8e6a6;
  --accent: #2be07a;
  --accent-2: #6ff3b2;
  --surface: rgba(10, 30, 12, 0.28);
  --surface-2: rgba(10, 30, 12, 0.42);
  --border: rgba(60, 255, 180, 0.35);
  --shadow: 0 8px 26px rgba(0,0,0,.25);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, #0b2310 0%, #0a2e1a 60%, #07280e 100%),
    repeating-linear-gradient(to bottom, rgba(0,255,128,.04) 0 2px, transparent 2px 4px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans",sans-serif;
  line-height: 1.5;
  font-size: clamp(14px, 1.2vw, 16px);
}

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

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

.card { background: rgba(8, 16, 8, 0.28); border: 1px solid rgba(60,255,180,.28); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }

/* Header */
header {
  padding: 1rem;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: rgba(8, 22, 12, 0.34);
  border: 1px solid rgba(60, 255, 180, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 1100px;
}

header h1 {
  font-size: clamp(1.4rem, 1.1rem + 2.5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.25rem;
  letter-spacing: .2px;
}

header .meta {
  color: var(--muted);
  font-size: clamp(0.9rem, 0.8vw, 1rem);
  margin: 0;
}

nav {
  margin-top: .5rem;
  display: flex; gap: .5rem; align-items: center;
}
nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: 6px;
  border: 1px solid rgba(43,224,122,.55);
  transition: background .2s ease, color .2s ease;
}
nav a:hover, nav a:focus-visible { text-decoration: underline; background: rgba(43,224,122,.08); outline: none; }

/* Main / article */
main { padding: 0.5rem 0 1rem; }
article { padding: 1rem; border-radius: 12px; }

.featured-image { margin: 1rem 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,255,170,.4); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.featured-image img { display: block; width: 100%; height: auto; object-fit: cover; }

.image-frame { aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,255,170,.4); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Typography helpers */
h2 { font-size: clamp(1.4rem, 0.8rem + 2vw, 2rem); margin: .75rem 0 .5rem; }
h3 { font-size: clamp(1.1rem, 0.8rem + 1.4vw, 1.4rem); margin: .75rem 0; }
p { margin: .5rem 0 1rem; color: #eafaf0; }

/* Lists and quotes */
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; }

/* Footer and "ads" sections */
footer { padding: 1rem; border-top: 1px solid rgba(60,255,180,.25); margin-top: 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; background: rgba(8,18,8,.22); border-radius: 12px; }
footer section { padding: .6rem; border-radius: 10px; background: rgba(0,0,0,.15); border: 1px solid rgba(60,255,180,.25); text-align: center; }
footer section a { color: var(--text); text-decoration: none; display: block; padding: .5rem 0; }
footer p { text-align: center; margin: .75rem 0 0; color: var(--muted); }

/* Glass panels (fallback + backdrop) */
.glass { background: var(--surface); border: 1px solid rgba(60,255,180,.4); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@supports not (backdrop-filter: blur(10px)) {
  .glass { background: rgba(10, 24, 12, 0.72); }
}

/* Links and buttons (interactive) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(43,224,122,.6);
  padding: .5rem 1rem;
  border-radius: 8px;
  display: inline-block;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
a:hover, a:focus-visible { text-decoration: underline; outline: none; color: var(--accent-2); }
.btn:hover, .cta:hover { background: rgba(0,0,0,.25); transform: translateY(-1px); }
.btn:focus-visible, .cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Button variants */
.btn.primary {
  background: linear-gradient(135deg, rgba(43, 224, 122, 0.95), rgba(43, 224, 122, 0.75));
  border-color: rgba(43, 224, 122, 0.95);
}
.btn.secondary {
  background: rgba(255,255,255,.05);
  border-color: rgba(120, 255, 180, 0.6);
  color: var(--text);
}

/* Forms (basic) */
input, textarea, select {
  width: 100%; padding: .5rem .75rem; border-radius: 6px;
  border: 1px solid rgba(60,255,180,.5);
  background: rgba(0,0,0,.15);
  color: var(--text);
}
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

/* Print styles */
@media print {
  body { background: white; color: #000; }
  a { text-decoration: underline; color: #000; }
  header, footer { border: none; background: transparent; padding: 0; margin: 0; }
  .container { padding: 0; }
}

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