/* Palette & Foundations */
:root{
  --bg: #0b0f14;
  --bg-2: #0a1b1f;
  --text: #eafff4;
  --muted: #a6e0cc;
  --accent: #2ff5c2;
  --accent-2: #22d1a5;
  --card: rgba(14, 28, 34, 0.28);
  --card-opaque: rgba(14, 28, 34, 0.60);
  --stroke: rgba(120, 255, 210, 0.40);
  --focus: rgba(0, 255, 170, 0.75);
}
html, body {
  height: 100%;
}
html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans";
}
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(2,6,12,1) 0%, rgba(2,6,12,1) 60%, rgba(0,0,0,0.0) 100%),
    linear-gradient(135deg, rgba(0,0,0,0.25), rgba(0,0,0,0) 60%),
    #04070a;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  isolation: isolate;
  box-sizing: border-box;
}
:where(*){
  box-sizing: border-box;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* Chrome retro synthwave grid (mint accents) */
body::before {
  background-image:
    linear-gradient(to right, rgba(0,255,170,.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,255,170,.15) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: screen;
  opacity: 0.35;
}
body::after {
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,.0), rgba(0,0,0,.0) 60%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.05) 0 1px, transparent 1px 2px);
  background-size: auto;
  opacity: 0.08;
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  body::after { animation: none; }
}

/* Glass panels (fallback-safe) */
header, main, footer, aside, article {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  header, main, footer, aside, article {
    background: rgba(14,28,34,0.72);
    border-color: rgba(120,255,210,0.55);
  }
}

/* Global typography & helpers */
.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
  padding-block: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--card-opaque);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: .95rem;
}
.tag {
  display: inline-block;
  padding: .15em .6em;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #052016;
  background: rgba(47,245,194,.28);
  border: 1px solid rgba(47,245,194,.60);
}
ul, ol {
  margin: 0.6em 0 1em 1.1em;
  padding: 0;
}
li { margin: .25em 0; line-height: 1.5; }

/* Layout primitives (mobile-first) */
header {
  margin: 0 auto 1rem;
  padding: 1rem;
}
header h1 {
  font-size: clamp(1.4rem, 1.2rem + 1.2vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 .25rem;
  color: var(--text);
}
header .meta {
  color: var(--muted);
  font-size: .92rem;
  margin: 0 0 .5rem;
}
nav {
  display: flex;
  gap: .5rem;
  margin-top: .25rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .25rem .6rem;
  border-radius: 6px;
  font-weight: 600;
}
nav a:hover,
nav a:focus {
  text-decoration: underline;
  outline: none;
}
main {
  padding: .5rem 0 1rem;
}
article {
  display: block;
}
.featured-image {
  margin: 0 0 1rem;
}
.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(0,255,170,.45);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(0,255,170,.40);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.image-frame:hover img {
  transform: scale(1.03);
}

/* Content area styling hooks */
.content {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.125rem);
  line-height: 1.55;
  color: var(--text);
}
.content h1, .content h2, .content h3 {
  line-height: 1.25;
  margin: .75em 0 .25em;
  color: var(--text);
}
.content p { margin: .5em 0; }

/* Hero CTAs (primary/secondary) */
.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .65em 1em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  user-select: none;
}
.btn { color: #04261a; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); border-color: rgba(0,0,0,.15); }
.btn:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(0, 255, 170, 0.65);
}
.btn--outline:hover { background: rgba(0,255,170,.15); }
.btn--outline:focus-visible { box-shadow: 0 0 0 3px rgba(0,255,170,.7); }

a, button, .btn, .cta {
  text-decoration-skip-ink: auto;
}
a:hover { text-decoration: underline; }

/* Link focus treatment for accessibility */
a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0,255,170,.75); border-radius: 4px; }

/* Footer & sections */
footer {
  padding: 1rem;
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
}
footer .product-ad,
footer .sponsored-page {
  display: block;
  text-align: left;
}
footer p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

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

/* Responsiveness */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (min-width: 1024px) {
  header, main, footer, aside, article { padding: 1rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}