/* hacker-olive-grid-glass (mobile-first, single stylesheet) */
:root {
  --bg: #0b111a;
  --olive: rgba(85,107,47,.25);
  --panel: rgba(12,22,44,.72);
  --panel-2: rgba(10,28,60,.75);
  --text: #eaf4ff;
  --muted: #cbdaf2;
  --blue: #6ec0ff;
  --blue-dark: #4aa3ff;
  --cyan: #7bd3ff;
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --grid: rgba(85,107,47,.25);
}

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

html, body { height: 100%; }

body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background-color: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system;
  line-height: 1.6;
  /* Olive grid paper background */
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-clip: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

header {
  width: 100%;
  padding: 1.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 22, 54, .72);
  border-bottom: 1px solid rgba(110,170,255,.25);
  backdrop-filter: saturate(1.2) blur(6px);
  /* subtle glow for hacker vibe */
  text-shadow: 0 0 8px rgba(110,170,255,.4);
}

header h1 {
  margin: 0;
  font-family: ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw + 1rem, 2.75rem);
  color: #eaf6ff;
  letter-spacing: .5px;
  text-shadow: 0 0 12px rgba(60,180,255,.8);
}

header .meta {
  margin: 0.25rem 0 0;
  font-size: .85rem;
  color: #cbdaf2;
  opacity: .95;
}

/* Main layout container (centered content) */
main {
  padding: 1.25rem;
  display: grid;
  justify-items: center;
}

article {
  max-width: 860px;
  width: 100%;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(6,18,40,.66);
  border: 1px solid rgba(110,170,255,.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px) saturate(1.2);
}

.featured-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  background: #111;
  margin: .75rem 0;
}
.featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

article p {
  color: #eaf4ff;
  margin: 1rem 0;
}

/* Footer with featured product ad (CTA) */
footer {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
  gap: .75rem;
  margin-top: 1rem;
  background: rgba(2,8,22,.5);
  border-top: 1px solid rgba(120,190,255,.25);
}

.product-ad {
  width: 100%;
  max-width: 860px;
  padding: .9rem;
  border-radius: 12px;
  background: rgba(4,8,20,.65);
  border: 1px solid rgba(120,190,255,.25);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .75rem;
}

.product-ad h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #d7eaff;
  display: inline-block;
}

.product-ad a {
  text-decoration: none;
  color: #eaf6ff;
  background: linear-gradient(135deg, #0b4fff 0%, #1563ff 100%);
  padding: .6rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  display: inline-block;
  transition: transform .15s ease, background .15s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0a3bd1 0%, #1b6fff 100%);
}
.product-ad a:focus-visible {
  outline: 2px solid #7bd3ff;
  outline-offset: 2px;
}
footer p {
  margin: 0;
  font-size: .9rem;
  color: #a8b4d4;
  text-align: center;
}

/* Accessibility: focus styles for keyboard navigation */
*:focus-visible {
  outline: 2px solid #7bd3ff;
  outline-offset: 2px;
}

/* Responsive tweaks */
@media (min-width: 768px) {
  article { padding: 1.25rem 1.5rem; }
  .product-ad { gap: 1rem; }
}
@media (min-width: 1024px) {
  main { padding: 2rem 0; }
  .product-ad { grid-template-columns: 1fr auto; }
}