/* Light reset and CSS theme */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Beige paper + teal hacker vibe */
:root {
  --paper: #f2e6d1;
  --teal: #12b6a2;
  --teal-dark: #0e8f7a;
  --ink: #113133;
  --glass: rgba(255, 255, 255, 0.75);
  --shadow: 0 8px 24px rgba(0,0,0,.15);
}
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--ink);
  background: var(--paper);
  /* subtle parchment texture feel */
  background-image:
    radial-gradient(circle at 15% 5%, rgba(255,255,255,.55), transparent 25%),
    radial-gradient(circle at 85% 25%, rgba(255,255,255,.25), transparent 25%),
    linear-gradient(135deg, #f6ecd8 0%, #e9d8ba 60%, #f0e4d0 100%);
  background-blend-mode: overlay;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { margin: 0 auto; padding: 1rem; max-width: 1100px; }

/* Frosted glass card for the image frame (hero) */
.image-frame {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.image-frame img { display: block; width: 100%; height: auto; }

/* Footer / CTA area */
footer { padding: 1.5rem 1rem; text-align: center; color: #254040; }

/* Product ad CTA styling (becomes prominent) */
.product-ad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .6rem;
  margin: .75rem auto 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.product-ad h3 {
  font-size: .92rem;
  margin: 0;
  color: #0b5a53;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-shadow: 0 0 6px rgba(0,255,255,.25);
}
.product-ad a { text-decoration: none; }

/* CTA pill inside the ad (the actual clickable element) */
.product-ad a p {
  margin: 0;
  padding: .55rem .95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #12c6b8 0%, #0a8f84 100%);
  color: #eafff7;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.15);
  display: inline-block;
  transition: transform .15s ease;
}
.product-ad a p:hover { transform: translateY(-1px); }

/* Focus styles for accessibility (keyboard navigation) */
:focus-visible { outline: 3px solid #9be7d5; outline-offset: 2px; }

/* Small screens (mobile-first) */
@media (max-width: 899px) {
  main { padding: 1.5rem 1rem; }
  .image-frame { border-radius: 14px; }
  .product-ad { width: 100%; justify-content: center; }
}

/* Larger screens: split hero + ad side-by-side, frosted glass polish */
@media (min-width: 900px) {
  main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 2rem;
    padding: 2rem;
  }
  .image-frame { border-radius: 20px; }
  footer { grid-column: 1 / -1; text-align: left; }
  .product-ad { justify-content: flex-start; }
}