/* CSS for the landing page: indigo galaxy + olive hacker theme with frosted glass */
:root {
  --bg0: #050317;
  --bg1: #0a0b1a;
  --olive: #6b8e23;
  --oliveDark: #5a7a1a;
  --text: #eaf7ff;
  --muted: #a9bFA0;
  --glass: rgba(8, 12, 8, 0.55);
  --card: rgba(7, 12, 10, 0.50);
  --border: rgba(110, 255, 180, 0.25);
  --ring: rgba(107, 142, 35, 0.9);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
img { max-width: 100%; height: auto; display: block; }

/* Mobile-first starry indigo galaxy background with olive hacker accents */
body {
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.6;
  background-color: var(--bg0);
  /* indigo galaxy starscape layers */
  background-image:
    radial-gradient(circle at 15% 20%, rgba(170,190,255,.90) 0 1px, transparent 1.5px),
    radial-gradient(circle at 60% 10%, rgba(120,170,255,.85) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 60%, rgba(100,210,160,.60) 0 1px, transparent 1.5px),
    radial-gradient(circle at 95% 95%, rgba(255,255,255,.75) 0 1px, transparent 1.5px),
    linear-gradient(#050317 0%, #0b0f2a 40%, #0a0f28 100%);
  background-attachment: fixed;
  min-height: 100vh;
  text-shadow: 0 0 0 transparent;
  /* stack order for potential frosted overlays */
  position: relative;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* faint drifting dust specks for depth */
  background-image:
    radial-gradient(circle at 20px 30px, rgba(255,255,255,.12) 1px, transparent 2px),
    radial-gradient(circle at 60px 120px, rgba(255,255,255,.10) 1px, transparent 2px),
    radial-gradient(circle at 200px 180px, rgba(255,255,255,.08) 1px, transparent 2px);
  mix-blend-mode: overlay;
  opacity: 0.8;
  filter: saturate(110%);
}

/* Layout container for content to center nicely on all sizes */
.main-wrap {
  display: grid;
  gap: 1rem;
  width: 92%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  position: relative;
  z-index: 1;
}

/* Frosted glass header (hero) */
header {
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
  border-radius: 14px;
  max-width: 980px;
  background: rgba(8, 12, 8, 0.42);
  border: 1px solid rgba(110, 255, 180, 0.28);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  box-shadow:
    0 8px 30px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.04);
  position: relative;
}
header h1 {
  margin: 0 0 .35rem;
  font-size: 1.6rem;
  line-height: 1.15;
  color: #eaffff;
  text-shadow: 0 0 8px rgba(107,142,35,.65);
}
header .meta {
  margin: 0;
  font-size: .88rem;
  color: #cbd8be;
  letter-spacing: .4px;
}

/* Featured image block */
.featured-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(107, 142, 35, 0.25);
  background: rgba(0,0,0,.25);
}
.featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Main article content - frosted card with readable text */
article {
  max-width: 760px;
  padding: 1rem;
  background: rgba(6, 12, 8, 0.40);
  border-radius: 12px;
  border: 1px solid rgba(110, 255, 180, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #e9f5ff;
}
article p {
  margin: 0 0 1rem;
}
article p:last-child { margin-bottom: 0; }

/* Ensure the first-letter styling for p.content if present */
p.content:first-letter {
  font-weight: 700;
  font-size: 2em;
  color: var(--olive);
}
p.content:first-letter + span, p.content { /* ensure normal flow if needed */ }

/* Footer with a frosted card-like ad area and copyright */
footer {
  padding: 1.25rem 0 2rem;
  margin-top: 0.5rem;
  display: grid;
  justify-items: center;
}
.product-ad {
  width: 100%;
  max-width: 420px;
  padding: .95rem;
  border-radius: 12px;
  background: rgba(8, 12, 8, 0.50);
  border: 1px solid rgba(110, 255, 180, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: .75rem;
}
.product-ad h3 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
  color: #eafff0;
}
.product-ad a {
  display: inline-block;
  padding: .55rem 1rem;
  border-radius: 999px;
  color: #062e0f;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(107,214,178,0.95), rgba(100,180,120,0.95));
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.product-ad a:hover { transform: translateY(-1px); filter: brightness(1.03); }

/* P in ad block styling (if used with a paragraph inside) */
.product-ad a p { margin: 0; padding: 0; color: #062e0f; }

/* Global focus styles for accessibility on keyboard nav */
:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 2px;
  border-radius: 6px;
}
a { color: inherit; text-decoration: none; }

/* Responsive: tablet and up - larger typography and layout adjustments */
@media (min-width: 700px) {
  header {
    padding: 2.5rem 1.5rem;
  }
  header h1 { font-size: 2.2rem; }
  article { padding: 1.25rem 1.5rem; }
  .main-wrap { padding: 0 0 2rem; }
}
@media (min-width: 1024px) {
  .main-wrap { grid-template-columns: 1fr auto; align-items: start; padding: 2rem 0 3rem; }
  article { padding: 1.4rem 1.6rem; }
  .product-ad { justify-self: end; align-self: start; margin-left: 2rem; }
}
