/* Tokens */
:root {
  --bg: #000000;
  --bg-2: #0a0a0a;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.14);
  --text: #f8f8f8;
  --muted: #c9c9c9;
  --accent: #00e5ff;
  --accent-2: #ff6bd6;
  --focus: #7af0ff;
}

/* Base */
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background:
    /* subtle scanlines over a gradient */
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 60%, #000 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 1px, transparent 2px);
  background-attachment: fixed;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Layout helpers */
.container { width: 100%; max-width: clamp(320px, 90vw, 1200px); margin-inline: auto; padding-inline: 1rem; }

/* Glass panels (with fallback) */
.glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,.16); }
}

/* Header */
header {
  padding: 1rem;
  margin: 0 auto;
  max-width: 1100px;
}
header.plain { background: transparent; backdrop-filter: none; }
header h1 {
  font-size: clamp(1.75rem, 4vw + 0.5rem, 4rem);
  line-height: 1.08;
  margin: 0 0 .5rem;
  font-weight: 700;
  letter-spacing: .2px;
}
header .meta {
  font-size: clamp(.8rem, .8vw, 1rem);
  color: var(--muted);
  margin: .25rem 0 0;
}
header nav {
  margin-top: .5rem;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
header nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.25);
}
header nav a:hover { text-decoration: underline; }

/* Main content & hero feel */
main { padding: .75rem; }
article { max-width: clamp(320px, 90vw, 1100px); margin: 0 auto; padding: 0; }
.featured-image { width: 100%; margin: .5rem 0; }
.image-frame { aspect-ratio: 16/9; width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.28); box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

article h2 { font-size: clamp(1.4rem, 2.5vw + 1rem, 2.75rem); margin: .25rem 0 .5rem; }
article h3 { font-size: clamp(1.1rem, 1.2vw + .8rem, 1.5rem); margin: .8rem 0 .4rem; }
article p { color: #e9e9e9; margin: .4rem 0; }

/* Lists */
ul, ol { padding-left: 1.25rem; margin: .4rem 0; }
li { margin: .25rem 0; }

/* Content helper (flexible for future sections) */
.content { padding: 1rem; }

/* Utilities / components */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  padding: .75rem;
}
.tag {
  display: inline-block;
  padding: .25em .5em;
  font-size: .72rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
  color: var(--text);
}

/* CTAs & links */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  padding: .55em .9em;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28);
  cursor: pointer;
}
a:hover, .btn:hover, .cta:hover, button:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.btn { background: rgba(0,0,0,.25); color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn, .btn--outline { transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.12); }
.btn--outline:hover { background: rgba(255,255,255,.08); }

/* Footer & sponsor blocks */
footer {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: start;
}
.product-ad, .sponsored-page {
  padding: 0.9rem;
  text-align: center;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
}
footer p { text-align: center; margin: 0; padding: .25rem 0 0; color: var(--muted); }

/* Print niceties */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  .image-frame { page-break-inside: avoid; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}