/* Minimal, cyberpunk, neon-maroon, frosted-glass styling - mobile-first */

:root{
  --maroon: #2a0b0f;
  --maroon-dark: #190606;
  --surface: rgba(20,0,0,.60);
  --surface-2: rgba(40,0,0,.50);
  --text: #f7e4dc;
  --muted: #e8cfc6;
  --accent: #ff8a00;      /* neon orange */
  --accent-dark: #ff6a00;
  --glass-border: rgba(255,255,255,.20);
  --shadow: 0 8px 28px rgba(0,0,0,.45);
  --glow: 0 0 24px rgba(255,140,0,.8);
}

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

html, body { height: 100%; }
html, body { margin: 0; padding: 0; }

/* Neon orange glow background layered with maroon themes */
body {
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.7;
  background: #120606;
  background-image:
    radial-gradient(circle at 70% 0%, rgba(255, 140, 0, .25) 0, transparent 40%),
    radial-gradient(circle at 0% 20%, rgba(255, 60, 0, .25) 0, transparent 40%),
    linear-gradient(#270505, #140101 60%, #0b0000);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  pointer-events: none;
  background: radial-gradient(circle at 20% 0%, rgba(255,140,0,.25) 0 20%, transparent 22%),
              radial-gradient(circle at 80% 20%, rgba(255,60,0,.25) 0 20%, transparent 22%),
              radial-gradient(circle at 50% 50%, rgba(255, 120, 0, .15) 0 60%, transparent 70%);
  filter: blur(0.5px);
  z-index: -1;
  /* subtle glow across the page */
  box-shadow: 0 0 60px rgba(255, 120, 0, .25);
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { filter: blur(0.5px); opacity: 0.9; }
  50% { filter: blur(1px); opacity: 1; }
}

/* Layout container behavior (no extra wrappers in HTML) */
header, main, footer { width: min(1100px, 94%); margin: 0 auto; }

/* Frosted glass surfaces for hacker-themed sections */
.section-glass {
  background: rgba(12, 0, 0, .55);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1rem;
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* Header / hero styling */
header {
  margin: 1rem auto;
  padding: .9rem 1rem;
}
header h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.07;
  margin: .15rem 0 .4rem;
  color: #ffd8c0;
  text-shadow: 0 0 6px rgba(255,140,0,.9);
}
header .meta {
  color: #ffd9cb;
  font-size: .92rem;
  opacity: .95;
}
header .intro {
  margin-top: .25rem;
  color: #f2dcd5;
  font-size: 1rem;
}

/* Main article content */
main {
  margin: 1.25rem auto 0;
}
article {
  font-size: 1.02rem;
  color: #f3e0d9;
  line-height: 1.8;
  max-width: 860px;
  padding: 0 0.25rem;
}

/* Featured image with frosted frame look */
.featured-image {
  border-radius: 12px;
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.15);
}
.featured-image img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  image-rendering: auto;
}

/* Footer product ad section (CTA) */
footer {
  margin: 2rem auto;
  padding: 0;
}
.product-ad {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(24,0,0,.55);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: var(--shadow);
}
.product-ad h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #ffd9cb;
}
.product-ad a {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: #210000;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
  border: 1px solid rgba(0,0,0,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.4), inset 0 1px 1px rgba(255,255,255,.35);
}
.product-ad a:hover,
.product-ad a:focus {
  background: var(--accent-dark);
  outline: 3px solid rgba(255,208,0,.9);
  outline-offset: 2px;
}
footer p {
  color: #d5b3ae;
  text-align: center;
  font-size: .92rem;
  margin: 0.6rem 0 1rem;
}

/* Typography helpers for readability against dark maroon */
p, li, blockquote {
  color: #f4e7e1;
}
a {
  color: #ffcc9e;
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Focus visibility for accessibility (keyboard users) */
:focus { outline: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid #ffd27a;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Small-screen improvements (mobile-first) */
@media (min-width: 640px) {
  header {
    padding: 1.25rem 1.25rem;
  }
  article { font-size: 1.04rem; }
  .featured-image { margin: 1.25rem 0; }
}
@media (min-width: 900px) {
  header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 1.25rem;
    padding: 1.75rem 1.5rem;
  }
  header h1 { font-size: clamp(2.75rem, 3.5vw + 1rem, 4.5rem); }
  .section-glass { padding: 1rem 1.25rem; }
  main { padding: 0 1.25rem; }
}
