/* Global reset (light) */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
:root {
  --bg-a: #f6ecd5;       /* beige base */
  --bg-b: #f0e3c9;       /* lighter beige for layers */
  --text: #1f1b15;        /* dark text for contrast */
  --muted: #6b5730;       /* muted accents */
  --accent: #ffd24d;      /* neon yellow/beige accent */
  --accent-2: #e6b600;    /* darker accent for hover */
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.92);
  --shadow: 0 6px 20px rgba(0,0,0,.08);
}
* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Page base look: yellow waves + beige hacker aesthetic */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background: linear-gradient(#f7ecd1 0%, #f1e0c0 60%, #f4e2c3 100%);
  min-height: 100vh;
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
}
body::before {
  /* subtle yellow wave parallax feel (no extra markup) */
  content: "";
  position: fixed;
  left: -5vw;
  right: -5vw;
  bottom: -15vh;
  height: 40vh;
  background: radial-gradient(circle at 20% 0, rgba(255, 214, 102, 0.25) 0 60px, transparent 61px),
              radial-gradient(circle at 70% 40%, rgba(255, 214, 102, 0.18) 0 50px, transparent 51px),
              linear-gradient(#f6e8c0, #f1dca8);
  background-size: 120px 120px, 140px 140px, 100% 100%;
  filter: saturate(0.95);
  opacity: 0.92;
  z-index: -1;
  animation: drift 18s linear infinite;
  transform: translateZ(0);
}
@keyframes drift { 0% { transform: translateY(0); } 50% { transform: translateY(-6px); } 100% { transform: translateY(0); } }

/* Layout sections (mobile-first) */
header {
  padding: 2.5rem 1rem 1.75rem;
  text-align: center;
  color: #281f14;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
  width: min(1100px, 100%);
  position: relative;
  z-index: 0;
}
header h1 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 .25rem;
  letter-spacing: .4px;
  color: #2b231b;
  text-shadow: 0 0 8px rgba(255, 214, 0, 0.75);
}
header .meta {
  font-size: 0.95rem;
  color: #6b5a2a;
}
main { display: block; }

/* Article (frosted-glass, readable, centered) */
article {
  margin: 1.75rem auto;
  padding: 1.75rem;
  max-width: 860px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}
.featured-image {
  border-radius: 12px;
  overflow: hidden;
  margin: 1rem 0 1.25rem;
}
.featured-image img {
  display: block;
  width: 100%;
  height: auto;
}
article p {
  color: #2a261f;
  font-size: 1rem;
  margin: 1rem 0;
}
article h2, article h3 { color: #2a261f; }

/* Footer / ad with clear CTA styling (accessible) */
footer {
  padding: 1.75rem 1rem 2rem;
  text-align: center;
  color: #4b392a;
}
.product-ad {
  display: grid;
  gap: .75rem;
  justify-items: center;
  padding: .75rem;
  border-radius: 12px;
  width: min(980px, 92%);
  margin: 0 auto 0.75rem;
  background: rgba(255, 255, 255, 0.28);
  border-top: 1px solid rgba(0,0,0,.05);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.product-ad h3 { font-size: 1.05rem; margin: 0; color: #2b231f; }
.product-ad a {
  display: inline-block;
  padding: .75rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd96a 0%, #ffc12f 100%);
  color: #1c160f;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.product-ad a:hover { transform: translateY(-1px); }
.product-ad a:focus-visible {
  outline: 3px solid #1b1b1b;
  outline-offset: 2px;
}
footer p { margin: .75rem 0 0; font-size: .92rem; color: #6b5a2a; }

/* Accessible link styling and focus */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 3px solid #ffd400;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Responsive tweaks */
@media (min-width: 768px) {
  header { padding: 3.5rem 1.25rem 2rem; text-align: center; }
  header h1 { font-size: clamp(2.2rem, 3.5vw, 4rem); }
  article { padding: 2rem; }
  .product-ad { width: min(980px, 92%); }
}
@media (min-width: 1024px) {
  article { padding: 2.25rem 2rem; }
  header { padding: 4rem 1.25rem 2.5rem; }
}
