/* Light reset */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

/* Theme + layout variables (beige + brown hacker vibe with frosted glass) */
:root {
  --beige: #efe4cf;
  --beige-d: #d9c5a2;
  --brown: #6a4a2a;
  --brown-d: #4b2f1a;
  --text: #2a1f14;
  --muted: #6b5a4a;
  --glass: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.42);
  --shadow: 0 12px 28px rgba(0,0,0,.25);
  --blur: 8px;
  --cta: #d3891e;
  --cta-dark: #8a5e1d;
  --ring: rgba(255,255,255,0.9);
  --radius: 18px;
}

/* Beige geometric background, mobile-first */
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background: var(--beige);
  /* subtle geometric shapes */
  background-image:
    radial-gradient(circle at 15% 15%, rgba(0,0,0,.05) 0 15px, transparent 16px),
    linear-gradient(135deg, rgba(0,0,0,.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,0,0,.03) 25%, transparent 25%);
  background-size: 60px 60px, 120px 120px, 120px 120px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* ensure smooth rendering on low-end devices */
  transform: translateZ(0);
}

/* Layout: hero in the center, content stacked */
main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
}

/* Frosted glass framed image (hero) */
.image-frame {
  width: 100%;
  max-width: 760px;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
  position: relative;
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(255,255,255,.65);
}

/* Subtle glass sheen overlay on the frame */
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(to bottom right, rgba(255,255,255,.15), rgba(255,255,255,0));
  pointer-events: none;
}

@media (min-width: 768px) {
  main { padding: 2rem; }
  .image-frame { padding: 2px; border-radius: calc(var(--radius) + 2px); }
  .image-frame img { border-radius: calc(var(--radius) - 2px); }
}

/* Footer with product ad (CTA) and copyright */
footer {
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-family: inherit;
  background: linear-gradient(to top, rgba(255,255,255,0), rgba(255,255,255,0.25));
}

.product-ad {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: .75rem;
}
.product-ad h3 {
  font-size: .95rem;
  margin: 0 0 .25rem;
  color: var(--brown);
}
.product-ad a { text-decoration: none; }
.product-ad a p {
  display: inline-block;
  margin: 0;
  color: #fff;
  padding: .4rem .8rem;
  border-radius: 8px;
  background: linear-gradient(#7a4a1f, #4b2b16);
  border: 1px solid rgba(255,255,255,.5);
  transition: transform .2s ease;
}
.product-ad a:focus-visible, a:focus-visible {
  outline: 2px solid #ffd166;
  outline-offset: 2px;
}
.product-ad a:hover p { transform: translateY(-1px); }

footer p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

/* Basic CTAs: ensure keyboard accessibility */
a, button { color: var(--brown); text-decoration: none; }
a.btn, button.btn {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(#8a551f, #6a3a12);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
a.btn:hover, button.btn:hover { filter: brightness(1.05); }
a.btn:focus-visible, button:focus-visible {
  outline: 2px solid #ffd166;
  outline-offset: 2px;
}