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

:root {
  --red: #ff2b2b;
  --red-dark: #b10b0b;
  --bg-brown-1: #4b2a18;
  --bg-brown-2: #2e160b;
  --glass: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.18);
  --text: #f7f7f7;
  --muted: #d9d9d9;
}

/* Light reset for body */
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Inter", Arial;
  /* Brown radial gradient background with a hacker vibe */
  background: radial-gradient(circle at 20% 0%, #8a5a2a 0%, #4b2a18 40%, #1f0f07 100%), #000;
  background-attachment: fixed;
  line-height: 1.6;
}

/* Header / hero */
header {
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* subtle frosted container behind the hero text */
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,.15);
}
header:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% -20%, rgba(255,0,0,.25) 0%, transparent 40%);
  pointer-events: none;
  mix-blend-mode: screen;
}
header h1 {
  margin: 0 0 0.25rem;
  font-family: ui-monospace,SFMono-Regular,Monaco,Consolas,"Liberation Mono", monospace;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: .04em;
  color: #ff4d4d;
  text-shadow: 0 0 8px rgba(255,0,0,.75);
}
header .meta {
  margin: 0;
  font-size: .92rem;
  color: #f0dede;
  opacity: .95;
}

/* Main content area */
main { padding: .75rem 1rem 2rem; }

/* Frosted glass article container (readability + glass effect) */
article {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(12,12,12,.54);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #f7f7f7;
  line-height: 1.75;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
}
.featured-image { margin: 1rem auto; overflow: hidden; border-radius: 12px; max-width: 900px; width: 100%; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.featured-image img { display: block; width: 100%; height: auto; }

/* Typography tweaks for headings within the content */
h2, h3, h4 { color: #ff6a6a; }

/* Footer area with a clear CTA */
footer { padding: 1rem; margin-top: 1rem; }
.product-ad {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(20,0,0,.35);
  border: 1px solid rgba(255,0,0,.4);
  max-width: 760px;
  margin: 0 auto;
}
.product-ad h3 { margin: 0; color: #ff7676; font-weight: 700; }
.product-ad a { display: block; text-decoration: none; width: max-content; }
.product-ad a > p {
  margin: 0;
  padding: .9rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(#ff4141,#d61e1e);
  color: white;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0,0,0,.4);
}
.product-ad a:hover > p { filter: brightness(1.05); transform: translateY(-1px); }

footer p { text-align: center; color: #d6d6d6; font-size: .92rem; margin: .6rem 0 0; }

/* Accessible focus styles for links and interactive elements */
a { color: #ff6a6a; text-decoration: none; outline: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid #ffce00;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive adjustments (mobile-first) */
@media (min-width: 768px) {
  main { padding: 1.25rem 2rem 2rem; }
  article { padding: 1.75rem; }
  .product-ad { align-items: center; flex-direction: row; justify-content: center; }
  .product-ad h3 { margin-right: 1rem; }
}

@media (min-width: 1024px) {
  header { text-align: left; padding: 3rem 2rem; }
  header h1 { font-size: clamp(2.6rem, 3.6vw, 4rem); }
  article { margin: 1.5rem auto; padding: 2rem; max-width: 860px; }
}