/* Base: Obsidian Neon Theme */
/* Tokens */
:root{
  --bg: #0a0f0a;
  --bg-2: #0b1410;
  --text: #e8fff0;
  --muted: #aaf0c6;
  --accent: #2be87a;
  --accent-2: #1bd76a;
  --panel: rgba(6, 16, 12, 0.28);
  --panel-2: rgba(6, 16, 12, 0.42);
  --border: rgba(46, 255, 140, 0.45);
  --shadow: 0 8px 26px rgba(0,0,0,.28);
  --focus: 3px solid #2cff9a;
  --glass-fallback: rgba(8, 12, 10, 0.75);
}

/* Base reset + layout container */
*{box-sizing:border-box}
html, body { height: 100%; }
html, body { margin: 0; padding: 0; }

html, body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background: linear-gradient(135deg, #04160e 0%, #04170f 40%, #081b12 100%), #000;
  background-attachment: fixed;
  min-height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
}
html::before {
  /* subtle green-isometric cube cue via pattern */
  content:"";
  position: fixed; inset:0;
  background:
    linear-gradient(135deg, rgba(0,0,0,.0) 0 33%, rgba(0,0,0,.04) 33% 66%, rgba(0,0,0,.0) 66% 100%),
    repeating-linear-gradient(60deg,
      rgba(0, 255, 120, .04) 0 6px,
      rgba(0,0,0,0) 6px 12px),
    linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.0));
  mix-blend-mode: overlay;
  z-index: -2;
  pointer-events: none;
}
html::after {
  /* CSS noise/scanline feel (pure CSS) */
  content:"";
  position: fixed; inset:0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
    linear-gradient(135deg, rgba(0,0,0,.0), rgba(0,0,0,.0) 60%);
  mix-blend-mode: overlay;
  opacity:.25;
  z-index:-1;
  pointer-events:none;
}
body { background-color: #040a07; }

/* Layout primitives */
.header, nav, main, article, aside, footer { width: 100%; }
.container { width: 100%; max-width: clamp(640px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Header / hero */
header {
  text-align: center;
  padding: 2rem 1rem 1.25rem;
}
header h1 {
  font-size: clamp(1.6rem, 1.5vw + 1.4rem, 3rem);
  line-height: 1.08;
  margin: .15rem 0 .25rem;
  letter-spacing: .3px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.9rem, 0.6vw + 0.8rem, 1.05rem);
  margin-bottom: .75rem;
}
nav {
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4em .8em;
  border-radius: 6px;
  border: 1px solid transparent;
}
nav a:hover { text-decoration: underline; }

/* Main content grid / typography */
main { padding: 1rem 0 2rem; }
article { margin: 0 auto; padding: 0; max-width: clamp(640px, 90vw, 860px); }
.article-content { padding: 0 0 1rem; }

/* Image frame */
.image-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(114, 255, 190, 0.4); box-shadow: 0 6px 20px rgba(0,0,0,.25); margin: 1rem 0; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content blocks */
h2 { font-size: clamp(1.25rem, 1vw + 1.1rem, 1.75rem); margin: 0.75rem 0 .4rem; color: var(--text); }
p { margin: .5rem 0; color: rgba(232,255,240,.92); }
blockquote {
  margin: .75rem 0; padding: .6rem 1rem;
  border-left: 3px solid var(--accent);
  color: #dfffe8;
  background: rgba(2, 24, 14, 0.18);
  border-radius: 6px;
  font-style: italic;
}
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Glass panels (primary content surfaces) */
.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .glass { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(6, 14, 12, 0.28); }
}
@media (prefers-color-scheme: dark) {
  .glass { background: rgba(6,14,12,0.28); }
}
@media (prefers-reduced-motion: reduce) {
  .glass { transition: none; animation: none; }
}

/* Buttons / CTAs */
a, button { font-family: inherit; font-weight: 600; }
a { color: var(--text); text-decoration: none; }
a.btn, a.cta, button.btn, button.cta {
  display: inline-block;
  padding: .65em 1.05em;
  border-radius: 8px;
  border: 1px solid rgba(46,255,140,.55);
  background: linear-gradient(#1ce675, #14b559);
  color: #041b0e;
  text-align: center;
  cursor: pointer;
}
a.btn.outline, a.cta.outline, button.btn.outline, button.cta.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent-2);
}
a.btn:hover, a.cta:hover, button.btn:hover, button.cta:hover { transform: translateY(-1px); text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: var(--focus); outline-offset: 3px; }

/* Utilities + components */
.container.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card {
  background: var(--panel-2);
  border: 1px solid rgba(46,255,140,.40);
  border-radius: 12px;
  padding: .9rem;
}
.tag {
  display:inline-block;
  padding:.25em .6em;
  font-size:.75rem;
  color: var(--text);
  background: rgba(0,255,140,.25);
  border:1px solid rgba(0,255,140,.55);
  border-radius:999px;
}

/* Layout helpers for potential aside/content blocks */
aside { display: none; } /* reserved for future side content if needed */

/* Footer / ad zones */
footer { padding: 1.5rem 1rem; text-align: center; color: var(--muted); }
.product-ad, .sponsored-page {
  display: inline-block; min-width: 180px;
  margin: .25rem;
  padding: .6rem 1rem;
  border-radius: 10px;
  background: rgba(2, 24, 14, 0.28);
  border: 1px solid rgba(0,255,140,.4);
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; }

/* Print styles */
@media print {
  html, body { background: #fff; color: #000; }
  nav, header, footer { display: none !important; }
  article { max-width: 100%; padding: 0; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: translate(0,0) !important; }
}