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

html, body {
  height: 100%;
}

:root {
  --bg-dark: #0b0f15;
  --bg-dark2: #0a0e14;
  --beige: #e5d5b3;
  --beige-dk: #d2c29a;
  --glass: rgba(255, 251, 239, 0.14);
  --glass-border: rgba(255, 255, 255, 0.25);
  --text: #f4e9d1;
  --muted: #c9b48a;
  --shadow: 0 10px 25px rgba(0,0,0,.25);
  --glow: 0 0 12px rgba(214, 196, 132, 0.8);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--beige);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 20px 40px, rgba(255,255,255,.6) 1px, transparent 1px),
    radial-gradient(circle at 60px 90px, rgba(180,190,210,.5) 1px, transparent 1px),
    radial-gradient(circle at 120px 20px, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 60px 60px, 90px 90px, 120px 120px;
  background-repeat: repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Light reset for padding/margins around the page */
main {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  flex: 1 0 auto;
}

.image-frame {
  width: min(92vw, 700px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  padding: 0;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  align-items: stretch;
  justify-items: stretch;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
}

/* Frosted glass feel for the overall page footer ad */
footer {
  width: 100%;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: rgba(12, 14, 18, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--beige);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-ad {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  padding: .75rem 1rem;
  background: rgba(255, 251, 239, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  text-align: center;
  min-width: 180px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

.product-ad h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f6e3c9;
  text-shadow: 0 0 8px rgba(240, 200, 120, 0.6);
}

.product-ad a {
  color: #efe6cc;
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}
.product-ad a:hover,
.product-ad a:focus-visible {
  text-decoration: underline;
  outline: 2px solid rgba(240, 200, 120, 0.9);
  outline-offset: 2px;
}

footer p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #cdbf95;
  opacity: 0.95;
  text-align: center;
  letter-spacing: .2px;
}

@media (min-width: 768px) {
  main { padding: 3rem; }

  .image-frame {
    width: min(60vw, 720px);
  }

  footer {
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
  }

  .product-ad {
    min-width: 240px;
  }
}

/* Focus visibility for accessibility on keyboard users */
:focus-visible {
  outline: 2px solid #ffdda0;
  outline-offset: 2px;
  border-radius: 6px;
}