:root {
  --bg: #0a1020;
  --bg-2: #0b1a2b;
  --text: #e8fff0;
  --muted: #a6cfa3;
  --accent: #228B22;
  --accent-2: #2ecc71;
  --glass: rgba(8, 20, 40, 0.28);
  --glass-border: rgba(34, 139, 34, 0.38);
}

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

html, body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.6;
  background: 
    linear-gradient(135deg, #020a1a 0%, #0b1a2b 60%, #021028 100%),
    radial-gradient(circle at 20% 0%, rgba(0,255,120,0.08) 0%, rgba(0,0,0,0) 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.02) 0 2px, transparent 2px 4px);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-blend-mode: overlay;
  font-variant-ligatures: none;
}

/* Layered UI primitives */
.container { max-width: clamp(640px, 82vw, 1100px); margin-inline: auto; padding: 1rem; }

/* Glass panel base with fallback */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 22px rgba(0,0,0,0.35);
}
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .glass { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}

/* Header / main / footer layout shells (glass panels) */
header, main, footer {
  padding: 1rem;
  margin: 1rem auto;
  width: min(1100px, 92%);
}
header { display: block; }
main { display: block; }
footer { display: block; }

/* Hero / typography */
header h1 {
  font-size: clamp(1.6rem, 1.8rem + 1.2vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 0.25rem;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 0.9vw, 0.95rem);
  margin: 0;
}

/* Featured image frame (also targets .image-frame for spec) */
.image-frame,
.featured-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(34, 139, 34, 0.38);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.image-frame { aspect-ratio: 16 / 9; display: block; width: 100%; }
.image-frame img,
.featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Article content container */
article { padding: 0; }

/* Body text */
p { font-size: clamp(1rem, 0.9rem + 0.25vw, 1.125rem); margin: 0 0 1rem 0; }

/* Headings */
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); margin: 1rem 0 0.25rem; }
h3 { font-size: clamp(1.15rem, 0.9rem + 1vw, 1.5rem); margin: 0.9rem 0 0.25rem; }
h4 { font-size: clamp(1rem, 0.8rem + 0.8vw, 1.15rem); margin: 0.75rem 0 0.25rem; }

ul, ol { margin: 0 0 1rem 1.25rem; padding: 0; }
li { margin: 0.25rem 0; }

/* Lists styling for accessibility and contrast */
ul { color: var(--text); }
li { line-height: 1.5; }

/* Links and interactive controls */
a, button, .btn, .cta {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn {
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  display: inline-block;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { background: #1e7a2e; transform: translateY(-1px); }
.cta {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(34, 139, 34, 0.6);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}
.btn + .btn { margin-left: .5rem; }

/* Utility and layout helpers */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: rgba(12, 28, 60, 0.28);
  border: 1px solid rgba(34, 139, 34, 0.28);
  border-radius: 12px;
  padding: 0.9rem;
}
.tag {
  display: inline-block;
  font-size: .75rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: rgba(34, 139, 34, 0.28);
  color: #eafff1;
}

/* Image frame helper for potential usage in other pages */
.image-frame img { display: block; width: 100%; height: auto; }

/* Print styles for readability */
@media print {
  body { background: white; color: #000; }
  a, button, .btn, .cta { color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

edits_unused_selector:root { } /* placeholder to ensure no stray tokens are left unused */