/* Minimal reset and mobile-first base */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: #e6d5b5;
  background-color: #0b0f14;
  line-height: 1.5;
  /* Gray geometric shapes background (soft grid) */
  background-image:
    linear-gradient(135deg, rgba(80,80,80,.25) 25%, transparent 25%),
    linear-gradient(225deg, rgba(80,80,80,.25) 25%, transparent 25%),
    linear-gradient(315deg, rgba(80,80,80,.25) 25%, transparent 25%),
    linear-gradient(45deg, rgba(80,80,80,.25) 25%, transparent 25%);
  background-size: 60px 60px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Beige accents and frosted glass vibe */
:root {
  --beige: #e6d5b5;
  --beige-dark: #d4bf99;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --focus: #ffd27d;
}

a { color: var(--beige); text-decoration: none; }

/* Hero / main area */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

/* Frosted glass framed image (hero) */
.image-frame {
  width: min(92vw, 900px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: block;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* subtle hue shift for cyberpunk vibe on imagery */
  filter: saturate(1.05) contrast(1.05);
}

/* Footer / product ad */
footer {
  padding: 1.25rem;
  color: #e6d5b5;
  background: #0b0f14;
}

/* Product ad card (CTA area) */
.product-ad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(230, 210, 180, 0.12);
  border: 1px solid rgba(230, 210, 180, 0.25);
  margin: 0 auto;
  max-width: 780px;
}

.product-ad h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #f3e0c9;
  text-shadow: 0 0 6px rgba(255, 210, 125, 0.25);
}

.product-ad a {
  color: var(--beige);
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: transform .15s ease, background .15s ease;
}
.product-ad a:hover,
.product-ad a:focus {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  outline: none;
}
.product-ad a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 999px;
}

/* Copyright line under ad */
footer p {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.85;
  margin: 0.75rem 0 0;
}

/* Focus management for accessibility on links/buttons generally */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Small screens: mobile-first adjustments */
@media (min-width: 700px) {
  main { padding-top: 3rem; }
  .image-frame { width: min(92vw, 940px); }
}

@media (min-width: 900px) {
  footer {
    padding: 1.5rem 2rem;
  }
  /* Arrange ad and copyright nicely on wide screens */
  footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
  }
  .product-ad { justify-self: start; }
  footer p { justify-self: end; text-align: right; }
}