/* Base tokens */
:root{
  --bg: #0b0f14;
  --bg-2: #131721;
  --text: #e8e8eb;
  --muted: #a6a6a6;
  --accent: #ffd574;
  --accent-2: #ffeaa2;
  --glass: rgba(255,255,255,0.08);
  --glass-2: rgba(255,255,255,0.14);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.28);
  --focus: #ffd574;
}

/* Global reset + fluid typography */
*,
*::before,
*::after { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial; line-height: 1.5; height: 100%; }
body {
  margin: 0;
  color: var(--text);
  min-height: 100%;
  background-color: var(--bg);
  /* Layered background: gradient + subtle scanlines + platinum spiral hint */
  background-image:
    linear-gradient(135deg, rgba(9,12,18,.92) 0%, rgba(9,12,18,.94) 60%, rgba(9,12,18,.92) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, rgba(0,0,0,.0) 1px 2px),
    conic-gradient(from 180deg at 50% 50%, rgba(210,210,210,.09) 0deg, rgba(210,210,210,.04) 25deg, rgba(210,210,210,.09) 50deg, rgba(210,210,210,.04) 75deg, rgba(210,210,210,.09) 100deg, rgba(210,210,210,.04) 125deg, rgba(210,210,210,.09) 150deg, rgba(210,210,210,.04) 175deg, rgba(210,210,210,.09) 200deg);
  background-blend-mode: overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }

/* Layout helpers */
.container { max-width: clamp(640px, 88vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Grid & cards (utility) */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Glass panel fallback for no backdrop-filter */
@supports not (backdrop-filter: blur(8px)) {
  .card { background: rgba(255,255,255,0.12); backdrop-filter: none; -webkit-backdrop-filter: none; border-color: rgba(255,255,255,.35); }
}
  
/* Content styling targets */
html, body, header, nav, main, article, footer, aside { display: block; }

/* Header (future cyberpunk glass) */
header {
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
  background: rgba(2,6,12,.65);
  border-bottom: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  margin: 1rem auto;
  max-width: clamp(320px, 92vw, 1100px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
header h1 {
  font-size: clamp(1.6rem, 2.6vw + 1rem, 3.25rem);
  line-height: 1.05;
  margin: .25rem 0 0.5rem;
  font-weight: 800;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 1vw + 0.5rem, 1rem);
  margin: 0 0 0.75rem;
}
header nav a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
  padding: .4rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
}
header nav a:hover { text-decoration: underline; }

/* Main content */
main { padding: 2rem 1rem; }
article {
  max-width: clamp(640px, 78vw, 900px);
  margin: 0 auto;
  display: block;
  gap: 1rem;
}
.featured-image { margin: 1rem 0 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 8px 28px rgba(0,0,0,.28); }
.image-frame { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 6px 20px rgba(0,0,0,.4); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.05); }
h2 { font-size: clamp(1.4rem, 1vw + 1.2rem, 2.25rem); margin: .75rem 0 .5rem; }
h3 { font-size: clamp(1.1rem, .8vw + 1rem, 1.4rem); margin: .75rem 0 .4rem; color: #f4f4f4; }
p { color: var(--text); font-size: clamp(0.95rem, 0.9vw + .8rem, 1.05rem); line-height: 1.6; margin: .5rem 0 1rem; }
ul { margin: .5rem 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Blockquote styling */
blockquote { margin: 1rem 0; padding: .75rem 1rem; border-left: 3px solid var(--accent); background: rgba(255,255,255,.05); border-radius: 6px; }

/* Content container (aliases to .content) */
.content { padding: 0.25rem; }

/* Product ad / footer panels (glass panels) */
footer {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: stretch;
  justify-items: center;
  background: rgba(2,6,12,.65);
  border-top: 1px solid rgba(255,255,255,.15);
}
.product-ad, .sponsored-page {
  width: 100%;
  text-align: center;
  display: block;
}
.product-ad a, .sponsored-page a {
  display: block;
  padding: .9rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .15s ease, background .25s ease;
}
.product-ad a:hover, .sponsored-page a:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); text-decoration: underline; }

/* Link/button treatments (WCAG AA contrast on glass) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  outline: none;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Buttons variants */
.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .25s ease, color .25s ease;
}
.btn:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--solid { background: var(--accent); color: #111; border-color: rgba(0,0,0,.15); }
.btn--outline { background: transparent; color: var(--accent); border: 1px solid rgba(255,214,0,.8); }

/* Typography scale for hero feel */
h1, h2, h3 { word-wrap: break-word; }

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

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