/* Global reset and a mobile-first, indigo galaxy + yellow hacker aesthetic */

:root {
  --bg-0: #0b1020;
  --bg-1: #14142b;
  --bg-2: #1a1a3a;
  --text: #f6f3a6;
  --muted: #e5d97a;
  --accent: #ffd400;
  --accent-deep: #ffde3a;
  --glass: rgba(14, 16, 32, 0.65);
  --glass-border: rgba(255, 255, 255, 0.25);
  --card: rgba(12, 14, 34, 0.65);
  --shadow: 0 10px 28px rgba(0,0,0,.55);
  --radius: 14px;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: var(--text);
  background-color: var(--bg-0);
  line-height: 1.65;
  /* Indigo galaxy starscape background (soft layered dots) */
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.9) 0 1px, transparent 1px),
    radial-gradient(circle at 25% 60%, rgba(210,238,255,.9) 0 1px, transparent 1px),
    radial-gradient(circle at 60% 30%, rgba(180,199,255,.9) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255,244,150,.9) 0 1px, transparent 1px),
    radial-gradient(circle at 40% 85%, rgba(200,200,255,.6) 0 1px, transparent 1px);
  background-size: 2px 2px, 2px 2px, 2px 2px, 2px 2px, 2px 2px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle galaxy tint over everything for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(75,0,130,.18) 0 40%, transparent 40%),
              radial-gradient(circle at 70% 20%, rgba(0,255,170,.08) 0 60%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

/* Layout and frosted glass sections (focus on accessibility) */
header, footer, main, article {
  position: relative;
  z-index: 1;
}

header {
  padding: 2rem 1rem;
  text-align: center;
  margin: 0;
  backdrop-filter: blur(6px);
  background: linear-gradient(to bottom, rgba(12,14,32,.72), rgba(12,14,32,.48) 70%, rgba(12,14,32,.32) 100%);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

header h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: .3px;
  /* bright hacker-y gradient text */
  background: linear-gradient(90deg, #ffd400 0%, #fff5a8 60%, #ffd400 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(255, 212, 0, 0.6);
}

header .meta {
  margin: 0;
  font-size: 0.92rem;
  color: #f2e89a;
  opacity: 0.95;
}

main {
  padding: 1.25rem 1rem 2rem;
  display: block;
}

article {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.8rem;
  border-radius: var(--radius);
  background: rgba(9, 10, 28, 0.62);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #f6f3a6;
  box-shadow: var(--shadow);
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 12px 28px rgba(0,0,0,.6);
  margin: 0 0 1rem;
}

article p {
  font-size: 1.05rem;
  color: #f6f3a6;
  margin: 0.95rem 0;
}

footer {
  padding: 1.75rem 1rem 2rem;
  text-align: center;
  color: var(--muted);
  background: rgba(8, 10, 28, 0.65);
  border-top: 1px solid rgba(255,255,255,.2);
  margin-top: 2rem;
}

.product-ad {
  display: inline-block;
  text-align: left;
  padding: 0.65rem;
  border-radius: 12px;
  background: rgba(16, 18, 40, 0.65);
  border: 1px solid rgba(255,255,255,.25);
  margin-bottom: 0.75rem;
}

.product-ad h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: #ffd400;
  font-weight: 700;
}

.product-ad a {
  display: inline-block;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(135deg, #141028 0%, #0b0a1a 100%);
  color: #ffd400;
  border: 1px solid rgba(255,255,255,.25);
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,.4);
}

.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
}

.product-ad a:focus-visible {
  outline: 3px solid #ffd400;
  outline-offset: 2px;
}

footer p {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: #e9e07a;
}

/* Focus styles for keyboard accessibility on interactive elements */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive, mobile-first tweaks */
@media (min-width: 600px) {
  header { padding: 2.25rem 1.25rem; }
  header h1 { font-size: 2.4rem; }
  article { padding: 2.2rem; }
}

@media (min-width: 900px) {
  body {
    background-attachment: fixed;
  }
  article { padding: 2.6rem; }
  header h1 { font-size: 3rem; }
  main { padding: 2rem 0 2.5rem; }
  .product-ad { margin-left: auto; margin-right: auto; }
}
