/* Global reset and CSS variables for parchment + cyan hacker theme */
:root{
  --bg: #f2e6cd;           /* parchment backdrop */
  --bg-soft: #efe5d0;
  --ink: #0b2b2b;           /* readable dark text */
  --cyan: #00e5ff;          /* neon cyan accents */
  --cyan-d: #00b8d0;
  --panel: rgba(255,255,255,.70); /* frosted panel */
  --shadow: 0 6px 20px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Frosted glass header / hero */
header {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 10;
  /* subtle glow to hint cyberpunk vibe */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 6px 20px rgba(0,0,0,.05);
}

header h1 {
  margin: 0 0 .25rem;
  font-size: 1.4rem;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, .65);
}

.meta {
  font-size: .85rem;
  color: rgba(10,10,10,.65);
}

/* Layout: centered content, mobile-first */
main {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

article {
  width: 100%;
  max-width: 760px;
  background: var(--panel);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
}

/* Featured image block */
.featured-image {
  margin: 1rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.6);
}

.featured-image img {
  width: 100%; height: auto; display: block;
}

/* Article content tweaks for readability on parchment */
article p { margin: 1rem 0; color: #0e1b1b; }

/* Footer + product ad (CTA) styling */
footer {
  padding: 1rem;
  text-align: center;
  color: rgba(10,10,10,.75);
}

.product-ad {
  border-radius: 12px;
  padding: 0.75rem;
  margin: 0.75rem auto;
  max-width: 420px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
  display: inline-block;
  text-align: left;
}

.product-ad h3 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  color: var(--cyan);
}

.product-ad a {
  display: inline-block;
  padding: .75rem 1.2rem;
  border-radius: 999px;
  background: var(--cyan);
  color: #001414;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0, 188, 212, .8);
  box-shadow: 0 0 12px rgba(0, 196, 212, .45);
}
.product-ad a:hover {
  transform: translateY(-1px);
  filter: saturate(1.15);
}

/* Accessible link/button styling for cyan hues */
a, button {
  color: var(--cyan);
}
a:hover { text-decoration: underline; }

/* Focus visibility for accessibility */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Small-screen first typography adjustments */
@media (min-width: 600px) {
  header h1 { font-size: 1.9rem; }
  article { padding: 1.25rem; }
  .product-ad { display: inline-block; }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  header { padding: 1.75rem 2rem; }
  main { padding: 2rem; }
  article { padding: 1.5rem; border-radius: 14px; }
}