/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }

/* Core palette (maroon hacker vibe with gold accents) */
:root {
  --maroon: #7a0b1d;
  --maroon-dark: #52060a;
  --gold: #d4af37;
  --gold-soft: rgba(212,175,55,.25);
  --text: #f6f0ed;
  --muted: #e9d9c7;
  --bg: #120a0f;
}

/* Base layout (mobile-first) */
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.6;
  background: linear-gradient(#120a0f 0 60%, #0b0406 60%), #100a0f;
  background-attachment: fixed;
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Gold abstract blur behind the hero (header) */
header {
  position: relative;
  text-align: center;
  padding: 40px 16px;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  background: rgba(10,0,0,.28);
  border-bottom: 1px solid rgba(255,255,255,.15);
  backdrop-filter: saturate(120%) blur(0px);
  -webkit-backdrop-filter: saturate(120%) blur(0px);
}

/* Gold abstract blur shapes */
header::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at 25% 25%, rgba(212,175,55,.65), transparent 40%),
              radial-gradient(circle at 70% 60%, rgba(255,225,120,.55), transparent 40%),
              radial-gradient(circle at 80% 10%, rgba(255,255,255,.35), transparent 40%);
  filter: blur(42px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}
header > * {
  position: relative;
  z-index: 1;
}

/* Title styling with glow for cyberpunk feel */
header h1 {
  margin: 0 0 6px;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: .5px;
  text-shadow: 0 0 8px rgba(212,175,55,.9);
}
header .meta {
  font-size: .92rem;
  color: rgba(255,255,255,.95);
  opacity: .95;
}

/* Main content area */
main { padding: 20px 16px; }

/* Glassy article (frosted, readable content) */
article {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 14px;
  background: rgba(12,0,0,.55);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  color: var(--text);
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.featured-image { margin: 12px auto 18px; border-radius: 12px; overflow: hidden; max-width: 720px; }
.featured-image img { width: 100%; height: auto; display: block; }

/* Paragraphs and prose readability on dark glass */
p { margin: 1em 0; font-size: 1.05rem; color: #f6f0ed; }

/* Footer with a frosted product ad card and a CTA-like link */
footer { padding: 12px 16px; text-align: center; color: #eae0d0; }
footer p { margin: 12px 0 0; color: rgba(230, 224, 217, 0.9); }

/* Featured product CTA (button-like link) */
.product-ad { margin: 18px auto; padding: 14px; max-width: 680px; border-radius: 12px;
  background: rgba(12,0,0,.55); border: 1px solid rgba(255,255,255,.18); }
.product-ad h3 { display: inline-block; margin: 0 0 8px; font-size: 1.05rem; }
.product-ad a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(212,175,55,.25);
  color: #ffd9a3;
  text-decoration: none;
  border: 1px solid rgba(212,175,55,.75);
  transition: transform .2s ease, background .2s ease;
}
.product-ad a:hover { background: rgba(212,175,55,.4); transform: translateY(-1px); }

/* Link styling and accessibility */
a { color: #ffd; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
:focus { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Subtle frosted behavior on major regions for readability on dark theme */
header, article, footer { backdrop-filter: saturate(120%); -webkit-backdrop-filter: saturate(120%); }

/* Responsive adjustments (tablet/desktop) */
@media (min-width: 640px) {
  header { padding: 64px 20px; }
  header h1 { font-size: 2.5rem; }
  article { padding: 34px; }
}
@media (min-width: 900px) {
  header { padding: 72px 0; }
  header h1 { font-size: 3rem; }
  .featured-image { max-width: 860px; }
  article { padding: 42px; }
}