:root {
  /* Tokenized palette (lime + gray) */
  --bg: #0a0f0f;
  --bg-2: #111317;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --text: #eaf6f0;
  --muted: #a6b0a6;
  --accent: #9bff00;
  --accent-2: #b8ff3a;
  --glass-border: rgba(180, 210, 180, 0.4);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --radius: 12px;
  --blur: blur(12px);
}

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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue";
  background: #0a0f0f;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Layered background: gradient + lime hex honeycomb hint + subtle noise/scanlines (pure CSS) */
  background-image:
    radial-gradient(circle at 15% 5%, rgba(155,255,0,.08), transparent 40%),
    linear-gradient(30deg, rgba(155,255,0,.15) 25%, transparent 25%),
    linear-gradient(-30deg, rgba(155,255,0,.15) 25%, transparent 25%),
    linear-gradient(#0a0f0f, #0a0f0f);
  background-size: 52px 44px, 52px 44px, 52px 44px, 100% 100%;
  background-position: 0 0, 0 0, 0 0, 0 0;
  position: relative;
}
html:focus-within { outline: none; }

body::after {
  /* subtle scanlines overlay */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.02) 0 2px, transparent 2px 4px);
  mix-blend-mode: overlay;
  opacity: .8;
  z-index: 0;
}

header, nav, main, article, aside, footer {
  position: relative;
  z-index: 1;
  background: rgba(14, 18, 22, 0.18);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem auto;
  max-width: clamp(720px, 92vw, 1100px);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}

header { text-align: center; padding-top: 1.25rem; padding-bottom: 1.25rem; }
header h1 { margin: .25rem 0 .5rem; font-size: clamp(1.8rem, 4vw + .5rem, 3.25rem); line-height: 1.05; letter-spacing: .2px; }
header .meta { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; color: var(--muted); margin-bottom: .25rem; }

nav { display: flex; justify-content: center; gap: .75rem; padding: .75rem 0; }
nav a { color: var(--text); text-decoration: none; padding: .25rem .6rem; border-radius: 6px; border: 1px solid rgba(160,180,160,.25); background: rgba(0,0,0,.18); transition: transform .15s ease, background .2s ease; }
nav a:hover { background: rgba(0,0,0,.28); transform: translateY(-1px); text-decoration: underline; }
nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

main { padding: 1rem 0 2rem; }
article { display: block; padding: 0; margin: 0; }

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

.content { color: var(--text); font-size: clamp(1rem, 1vw + .25rem, 1.125rem); line-height: 1.6; }
.content h2, .content h3 { color: #eaffd9; margin: .75rem 0 .5rem; }
.content p { margin: .75rem 0; }
.content blockquote { margin: .75rem 0; padding: .5rem 1rem; border-left: 3px solid var(--accent); color: #eafbe9; background: rgba(0,0,0,.15); border-radius: 6px; }

ul, li { margin: .5rem 0; padding: 0; list-style: disc inside; }
li { margin-left: 0.75rem; }

.product-ad, .sponsored-page { display: inline-block; width: 100%; margin: .5rem 0; text-align: center; }

.product-ad a, .sponsored-page a { display: inline-block; width: 100%; padding: .75rem 1rem; border-radius: 999px; text-decoration: none; color: var(--text); background: rgba(0,0,0,.25); border: 1px solid rgba(180,210,180,.4); transition: transform .15s ease, background .2s ease; }
.product-ad a:hover, .sponsored-page a:hover { background: rgba(0,0,0,.35); transform: translateY(-1px); text-decoration: underline; }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }

footer { text-align: center; padding: 1rem; }

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

.grid { display: grid; gap: 1rem; }

/* Card and tag utilities */
.card { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1rem; }

/* Tag for small pills/labels */
.tag { display: inline-block; padding: .25em .5em; border-radius: 999px; font-size: .75rem; background: rgba(0,0,0,.28); color: #d4ffd1; border: 1px solid rgba(140,220,140,.5); }

/* Button and link variants */
a, button, .btn, .cta {
  text-decoration: none;
  color: var(--text);
  outline: none;
}
.btn {
  display: inline-block;
  padding: .75em 1.25em;
  border-radius: 999px;
  border: 1px solid rgba(180,210,180,.5);
  background: rgba(0,0,0,.25);
  color: var(--text);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(0,0,0,.35); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.outline {
  background: transparent;
  border: 1px solid rgba(155,255,0,.8);
  color: #eaffd9;
}
.cta { font-weight: 600; }

/* Typography scaling for responsive, fluid type */
h1, h2, h3 { line-height: 1.15; }
h2 { font-size: clamp(1.25rem, 1.2rem + 1vw, 1.75rem); }
h3 { font-size: clamp(1.1rem, 0.9rem + .8vw, 1.25rem); }

/* Focus states for links and interactive elements (WCAG AA) */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Accessibility: ensure high contrast for text over glass */
@media (prefers-contrast: more) {
  :root { --surface: rgba(255,255,255,.12); }
  header, nav, main, article, aside, footer { border-color: rgba(255,255,255,.4); }
}

/* Layout helpers */
@media (min-width: 720px) {
  main { padding: 1.25rem 0 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  html, body { background: #fff; color: #000; }
  header, nav, main, article, aside, footer { background: transparent; border: none; box-shadow: none; }
}
