/* Frosted glass, cyberpunk hacker theme for The Covenant at Cedar Hollow */
/* Mobile-first, single stylesheet, accessible focus, green circuit board background with yellow accents */

:root{
  --bg: #0b2d14;            /* deep forest green backdrop */
  --bg-dim: #0a2410;
  --panel: rgba(255,255,255,.08);       /* frosted glass panel */
  --panel-border: rgba(255,255,255,.18);
  --text: #e7f28e;           /* readable light yellow-green text */
  --text-dim: #cbdc6b;
  --yellow: #ffd24d;          /* primary accent (CTA) */
  --yellow-dark: #e8b700;
  --glow: 0 0 12px rgba(255,210,77,.9);
  --shadow: 0 10px 28px rgba(0,0,0,.25);
  --radius: 14px;
}

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

html, body { height: 100%; }

/* Light reset for margins/padding and provide a crisp starting point */
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  /* Green circuit-board look: subtle grid + glow lines */
  background-image:
    linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)),
    repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.20) 0 1px, transparent 1px 20px);
  background-size: 100% 100%, 20px 20px, 20px 20px;
  background-position: 0 0, 0 0, 0 0;
}

/* Layout scaffolding */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 10%, rgba(255, 212, 77, .15), transparent 40%),
              radial-gradient(circle at 80% 0%, rgba(0,0,0,.15), transparent 40%);
  mix-blend-mode: screen;
  z-index: 0;
}

header, main, footer { position: relative; z-index: 1; }

/* Hero header styled as frosted glass panel atop the circuit board */
header {
  padding: clamp(1.75rem, 4vw, 3rem) 1rem;
  text-align: center;
  margin: 1rem auto;
  max-width: 1100px;
  border-radius: var(--radius);
  background: rgba(8, 40, 8, .45);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  box-shadow: var(--shadow);
  overflow: hidden;
}
header h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.05;
  margin: .25rem 0 0.25rem;
  color: #fffbd0;
  text-shadow: 0 0 14px rgba(255,216,77,.9);
  letter-spacing: .5px;
}
header .meta {
  font-size: 0.95rem;
  color: #d6e27a;
  opacity: .95;
  margin-top: .25rem;
}

/* Main content area centers content and constrains width for readability */
main {
  display: grid;
  justify-items: center;
  padding: 1rem;
  gap: 1.25rem;
}
article {
  width: min(720px, 92%);
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  line-height: 1.75;
  color: #eafbd2;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.featured-image {
  margin: 0.75rem 0 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  background: #0a2a0e;
}
.featured-image img {
  display: block;
  width: 100%;
  height: auto;
}
article p {
  margin: 0.75rem 0;
  font-size: 1.05rem;
  color: #e7f9ba;
}
@media (min-width: 768px) {
  article { font-size: 1.05rem; }
}
@media (min-width: 1024px) {
  article { font-size: 1.08rem; }
}

/* Footer contains the featured product card with a strong CTA */
footer {
  padding: 1rem;
}
.product-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem;
  margin: 1rem auto 0;
  max-width: 720px;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.18);
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-ad h3 {
  margin: 0;
  font-size: 1.05rem;
}
.product-ad a {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--yellow);
  color: #1f2d00;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: transform .15s ease, background .15s ease;
}
.product-ad a:hover { transform: translateY(-1px); background: #ffd95a; }
.product-ad a:focus-visible {
  outline: 3px solid #aafc66;
  outline-offset: 2px;
}
.product-ad p { margin: 0; padding: 0; }

/* Global link color for accessible navigation outside CTA */
a {
  color: var(--yellow);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Accessibility helpers for focus on interactive controls (anchors in this page) */
:focus { outline: 3px solid #a6ff5e; outline-offset: 2px; }

/* Small screens: ensure readability and proper spacing */
@media (max-width: 520px) {
  header { padding: 1.75rem 1rem; }
  article { padding: 0.875rem; }
  .product-ad { padding: 0.75rem; }
  .product-ad a { padding: .65rem 1rem; }
}
