/* Global reset and theme variables */
:root {
  --bg-dark: #0b0b0b;
  --bg-darker: #0a0a0a;
  --card: rgba(20, 20, 20, 0.55);
  --text: #e9e9e9;
  --muted: #bebebe;
  --edge: rgba(255, 255, 255, 0.15);
  --glass: rgba(255, 255, 255, 0.08);
  --orange-1: #ff7a00;
  --orange-2: #e85d04;
  --orange-3: #c44500;
}

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

html, body { height: 100%; }

/* Light reset for margin/padding across the page */
html { line-height: 1.15; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background-color: var(--bg-dark);
  /* Orange carbon-fiber vibe (soft, layered, responsive) */
  background-image:
    linear-gradient(135deg, rgba(255, 122, 0, 0.18) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255, 122, 0, 0.18) 25%, transparent 25%),
    linear-gradient(#0b0b0b, #0b0b0b);
  background-size: 20px 20px, 20px 20px, 100% 100%;
  background-position: 0 0, 0 0, 0 0;
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: .2px;
}

/* Frosted glass vibe for sections (hack/cyberpunk aesthetic) */
header,
article,
footer {
  background: var(--glass);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  border: 1px solid var(--edge);
  border-radius: 12px;
}

/* Layout and spacing (mobile-first) */
header {
  text-align: center;
  padding: 2rem 1rem 1.25rem;
  margin-bottom: 0;
}
header h1 {
  font-size: clamp(1.8rem, 4vw + 1rem, 3.2rem);
  line-height: 1.15;
  margin: 0 0 .35rem;
  text-shadow: 0 1px 0 rgba(0,0,0,.6);
}
header .meta {
  font-size: .92rem;
  color: #f0f0f0;
  opacity: .85;
}

main {
  padding: 1rem;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 320px);
}

article {
  max-width: 860px;
  width: 100%;
  padding: 1rem;
  margin: 0.75rem 0 2rem;
  /* hacker-grade card */
  background: rgba(20, 20, 20, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #e9e9e9;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}
.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
article p {
  margin: 1rem 0;
  font-size: 1.02rem;
  color: #e9e9e9;
}
article > *:first-child { margin-top: 0; }

/* Footer with a prominent CTA block */
footer {
  padding: 1rem;
  text-align: center;
  margin-top: 1rem;
}
.product-ad {
  display: grid;
  gap: .6rem;
  justify-items: center;
  padding: .9rem;
  width: min(720px, 100%);
  background: rgba(12,12,12,.55);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
}
.product-ad h3 {
  margin: 0;
  font-size: 1.05rem;
}
.product-ad a { text-decoration: none; display: inline-block; }

/* CTA button styling (prominent, accessible) */
.product-ad a > p {
  margin: 0;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  display: inline-block;
  background: linear-gradient(135deg, var(--orange-1), var(--orange-2) 60%, var(--orange-3));
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 6px 14px rgba(0,0,0,.4);
}
.product-ad a:focus-visible {
  outline: 3px solid #ffd27a;
  outline-offset: 2px;
}
a:focus-visible { outline: 3px solid #ffd27a; outline-offset: 2px; border-radius: 6px; }

/* Responsiveness (tablet and up) */
@media (min-width: 768px) {
  main { padding: 2rem 0; }
  article { padding: 1.25rem 1.5rem; }
  .product-ad { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; padding: 1rem 1.25rem; }
}

/* Larger screens for a more cinematic hacker vibe */
@media (min-width: 1024px) {
  header { padding: 3rem 1rem 2rem; }
  article { border-radius: 16px; padding: 1.5rem 2rem; }
  .product-ad { padding: 1.25rem 1.5rem; }
  .product-ad a > p { padding: .85rem 1.4rem; }
}