/* Base tokens */
:root{
  --bg: #0b1117;
  --bg-2: #141b22;
  --text: #eaffff;
  --muted: #9bdad2;
  --accent: #2fe8d1;
  --accent-2: #0fb49f;
  --glass: rgba(12, 25, 30, 0.22);
  --glass-2: rgba(12, 25, 30, 0.38);
  --shadow: 0 8px 20px rgba(0,0,0,.25);
  --radius: 12px;
}

/* Base reset & typography */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #0a0f14 0%, #111821 60%, #0a0f14 100%);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* subtle retro scanline / noise vibe (pure CSS layered) */
  background-image:
    linear-gradient(rgba(0,255,235,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,235,0.08) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  mix-blend-mode: overlay;
}
img { display: block; max-width: 100%; height: auto; }

/* Layout helpers (utility-style) */
.container {
  width: 100%;
  max-width: clamp(640px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }
.card { background: var(--glass); border: 1px solid rgba(46,255,215,0.28);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: var(--glass-2); }
}
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(46,255,215,.4);
  color: var(--text);
  background: rgba(0,0,0,.15);
}

/* Header / hero styling */
header {
  padding: 1rem;
}
header h1 {
  font-size: clamp(1.6rem, 2.5vw + 1rem, 3rem);
  line-height: 1.15;
  margin: 0 0 .25rem;
  letter-spacing: .2px;
}
header .meta {
  font-size: clamp(.9rem, 0.4vw + .8rem, 1.05rem);
  color: var(--muted);
  margin: 0;
}
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 235, 0.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Main content */
main { padding: 0 0 1rem; }
article { padding: 1rem; }

/* Headings & text flow */
h2 { font-size: clamp(1.25rem, 0.8rem + 1.25vw, 2rem); margin: 1rem 0 .5rem; color: var(--text); }
h3 { font-size: clamp(1.1rem, 0.6rem + 1vw, 1.6rem); margin: .75rem 0; color: var(--text); }
p { margin: .5rem 0 1rem; color: #eaffff; }
ol, ul { margin: .5rem 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; color: #eaffff; }

/* Blockquotes & emphasis */
blockquote {
  margin: .75rem 0;
  padding-left: .75rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
em { font-style: italic; color: #d9fffb; }

/* Links & interactive elements */
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Buttons (solid and outline variants) */
.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(46,255,215,.6);
  background: linear-gradient(135deg, rgba(46,255,215,.9), rgba(15,180,150,.9));
  color: #062a28;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.btn:active { transform: translateY(0); }
.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(46,255,215,.6);
}
.cta { display: inline-block; }

/* Image frame notes (specific styling) */
.image-frame { background: rgba(0,0,0,0.1); }

/* Product ad / footer sections (glass panels) */
footer {
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  align-items: start;
  justify-items: center;
}
.product-ad, .sponsored-page {
  width: 100%;
}
.product-ad a, .sponsored-page a {
  display: block;
  text-align: center;
  padding: .75rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
}
.product-ad { background: rgba(8, 20, 24, 0.32); border: 1px solid rgba(0, 255, 235, 0.4); }
.product-ad a { border: 1px solid rgba(0, 255, 235, 0.6); background: linear-gradient(135deg, rgba(32,232,214,0.25), rgba(2,180,150,0.25)); }
.sponsored-page { background: rgba(8, 20, 24, 0.28); border: 1px solid rgba(0, 150, 200, 0.4); }
footer p { text-align: center; margin: .5rem 0 0; color: var(--muted); }

/* Responsive layout utilities */
@media (min-width: 640px){
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px){
  .grid-2 { grid-template-columns: repeat(3, 1fr); }
  header { padding: 1.25rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; transform: none !important; }
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
}
