/* Base palette & tokens */
:root {
  --bg: #0b0a0a;
  --bg-2: #141210;
  --text: #f8fbff;
  --muted: #b8c2cf;
  --accent: #4de6ff;
  --accent-2: #b36bff;
  --glass: rgba(255,255,255,.08);
  --glass-2: rgba(255,255,255,.22);
  --border: rgba(255,255,255,.28);
  --shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* Reset helpers */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, rgba(0,0,0,.65), rgba(14,12,12,.95)),
              radial-gradient(circle at 20% 0%, rgba(0,0,0,.25), transparent 40%),
              #000;
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* espresso glitch-like texture via gradient + scanlines */
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.35)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 70% 20%, rgba(0,255,255,.08), transparent 40%);
  background-blend-mode: overlay;
  opacity: .85;
  transform: translateZ(0);
}

/* Layout containers & wrappers */
.header-wrap,
.main-wrap,
.footer-wrap { position: relative; z-index: 1; }

/* Section headers to separate areas (sectioned style) */
:root { --section-gap: 1.25rem; }

/* Global link/button/cta styling */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.25);
  padding: .6rem .95rem;
  border-radius: 8px;
  display: inline-block;
  cursor: pointer;
}
a:hover, a:focus { text-decoration: underline; color: var(--accent); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.btn, .cta { background: rgba(0,0,0,.28); border-color: rgba(255,255,255,.38); }

/* Core page typography & hero hierarchy (responsive) */
header {
  padding: 1rem;
  margin: 1rem auto;
  max-width: clamp(320px, 92vw, 1100px);
  border-radius: 14px;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px) saturate(110%);
  -webkit-backdrop-filter: blur(12px) saturate(110%);
  box-shadow: var(--shadow);
}
header h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.04;
  margin: .25rem 0;
  letter-spacing: .2px;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
header .meta {
  font-size: .85rem;
  color: var(--muted);
  margin-top: .25rem;
}
header nav {
  margin-top: .75rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
header nav a {
  color: var(--text);
  padding: .35rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
}
header nav a:hover { text-decoration: underline; }

/* Main content container */
main {
  padding: 1rem;
  display: grid;
  place-items: center;
}
article {
  width: 100%;
  max-width: clamp(420px, 90vw, 860px);
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  color: var(--text);
}
.featured-image { margin: 0 0 1rem; }
.featured-image img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.image-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Content typography within article */
article h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: .5rem 0 .4rem; }
article h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); margin: .6rem 0 .4rem; }
article p { margin: .4rem 0 1rem; line-height: 1.5; color: #f0f5ff; }
article ul { padding-left: 1.25rem; margin: .25rem 0 1rem; }
article li { margin: .25rem 0; }

/* Blockquote styling for emphasis */
article blockquote {
  margin: .75rem 0;
  padding: .75rem 1rem;
  border-left: .25rem solid var(--accent);
  background: rgba(0,0,0,.25);
  border-radius: 6px;
  color: var(--text);
}

/* Simple glass/card helpers */
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
}

/* Image/gallery + media wrapper (for potential aside) */
aside { display: block; }

/* Grid & utility classes */
.container { width: min(100%, 1100px); margin-inline: auto; padding: 1rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }

/* Footer & external promos (glass panels) */
footer {
  padding: 1rem;
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.product-ad, .sponsored-page {
  display: grid;
  place-items: center;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad a, .sponsored-page a { text-align: center; width: 100%; display: block; }

/* Print & motion preferences */
@media print {
  body::before { display: none; }
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
} 

/* Accessibility: ensure focus visibility in all interactive elements */
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }