/* Reset & base */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; }

/* Yellow grid paper background + navy hacker vibe */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: #e6f0ff;
  background-color: #f5dc4a;
  background-image:
    linear-gradient(rgba(0,0,0,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.08) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 0 0;
  line-height: 1.6;
}

/* Frosted glass foundations (header + content panels) */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  background: rgba(8,12,28,.65);
  border-bottom: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width: 100%;
}
header h1 {
  margin: 0 0 .4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas;
  font-size: clamp(2rem, 3vw + 1rem, 3.6rem);
  letter-spacing: .22em;
  color: #eaffff;
  text-shadow: 0 0 10px rgba(0,180,255,.9);
}
header .meta {
  font-size: .92rem;
  color: rgba(235,246,255,.92);
  opacity: .95;
}

/* Page layout & content card styling (frosted glass article) */
main { padding: 1rem; }
article {
  max-width: 900px;
  margin: 1rem auto;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: rgba(6,12,28,.60);
  border: 1px solid rgba(255,255,255,.18);
  color: #eaf2ff;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.featured-image { margin: .75rem 0; }
.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
}
article p {
  margin: 0 0 1rem;
}
article, .article * { color: #eaf2ff; }

/* Footer with CTA styling (prominent CTAs) */
footer {
  padding: 1.75rem;
  text-align: center;
  color: #ccdfff;
}
.product-ad {
  display: inline-block;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(9,14,36,.65);
  border: 1px solid rgba(255,255,255,.15);
}
.product-ad h3 { margin: 0 0 .4rem; font-size: 1.05rem; color: #fff; }
.product-ad a {
  display: inline-block;
  padding: .7rem 1.1rem;
  border-radius: 6px;
  background: linear-gradient(#0b2b6b,#0e3aab);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: transform .2s ease, background .2s ease;
}
.product-ad a:hover { transform: translateY(-2px); background: linear-gradient(#0f3a9e,#0c2b7c); }

/* Links accessibility & focus styles */
a, a:visited { color: #cfe2ff; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 3px solid #ffd54a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Responsive tweaks (mobile-first) */
@media (min-width: 700px) {
  main { padding: 1.25rem 2rem; }
  article { padding: 1.25rem 1.5rem; }
}
@media (min-width: 1024px) {
  body { font-size: 1.05rem; }
  header { padding: 3rem 0; }
  header h1 { font-size: 3.25rem; }
  footer { padding: 2rem 0; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}