/* Global reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: #eaf3ff;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Maroon metallic sheen + blue hacker accent, frost glass feel */
  background:
    radial-gradient(circle at 20% -10%, rgba(255,255,255,.08) 0 15%, rgba(255,255,255,0) 40%),
    radial-gradient(circle at 100% 0%, rgba(0,170,255,.08) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(135deg,
      #4b0f1a 0%,
      #7a0f1d 40%,
      #1e0f1f 100%);
  background-attachment: fixed;
  background-blend-mode: overlay;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Color tokens (readability + cyberpunk vibe) */
:root {
  --bg: #0b0b0f;
  --maroon: #7a0f1d;
  --maroon-dark: #2b0f15;
  --blue: #4db3ff;
  --blue-deep: #2b6bd6;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.22);
  --text: #eaf3ff;
  --muted: #cbdaf7;
  --shadow: 0 8px 20px rgba(0,0,0,.45);
}

/* Layout container for readability on all screens */
main {
  padding: 1rem;
}
header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  position: relative;
  z-index: 1;
  /* frosted glass header */
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
header::after {
  /* subtle metallic sheen overlay */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(77,179,255,.8), transparent);
  opacity: .8;
  pointer-events: none;
}
header h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.04;
  color: #eafaff;
  letter-spacing: .5px;
  text-shadow: 0 0 10px rgba(77,179,255,.75);
}
header .meta {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  opacity: .95;
  margin-top: .25rem;
}

/* Featured image styling */
.featured-image {
  display: block;
  max-width: 1000px;
  margin: 0.75rem auto 1rem;
  padding: 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 8px 18px rgba(0,0,0,.4);
  object-fit: cover;
  background: #111;
}

/* Paper-like frosted content region for the article text */
article {
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #eaf3ff;
  box-shadow: var(--shadow);
}
article p {
  margin: 0.75rem 0;
}
article blockquote {
  margin: 1rem 0;
  padding: .5rem 1rem;
  border-left: 3px solid rgba(77,179,255,.7);
  color: #dbeaff;
  background: rgba(13, 13, 28, 0.25);
  border-radius: 6px;
}
article h2, article h3 {
  color: #dff0ff;
  margin: 1rem 0 .5rem;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover, a:focus {
  color: #c9e8ff;
  text-decoration: underline;
}
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Footer area with a prominent CTA style for the product link */
footer {
  padding: 1.25rem;
  text-align: center;
  color: #d8e6ff;
  background: rgba(0,0,0,0.0);
}
.product-ad {
  display: inline-block;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(5,5,15,.55);
  border: 1px solid rgba(77,179,255,.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin: .5rem 0 1rem;
}
.product-ad h3 {
  margin: 0 0 .25rem;
  font-size: 1rem;
  color: #dbeeff;
}
.product-ad a {
  text-decoration: none;
}
.product-ad a p {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: linear-gradient(#0b66d2, #0b4db0);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 6px 14px rgba(0,0,0,.45);
}
.product-ad a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
footer p {
  margin: .25rem 0 0;
  font-size: .9rem;
  color: #bdd6ff;
}

/* Small viewports: ensure content remains legible on mobile */
@media (min-width: 640px) {
  header {
    padding: 2.5rem 1.25rem 1.25rem;
  }
  article {
    padding: 1.25rem 1.5rem;
  }
  .product-ad {
    transform: translateY(0);
  }
}

/* Larger screens: tighten content width for a cinematic feel */
@media (min-width: 980px) {
  main {
    padding: 1.5rem 2rem;
  }
  article {
    padding: 1.5rem 1.75rem;
  }
  header h1 {
    font-size: clamp(2.6rem, 3.5vw + 1rem, 4rem);
  }
}