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

html, body { height: 100%; }

:root {
  --beige: #e8d5b2;
  --beige-dark: #d8c294;
  --turq: #2bd4c6;
  --turq-dark: #1eaaa0;
  --glass: rgba(255, 255, 255, 0.78);
  --text: #1b1710;
  --shadow: rgba(0,0,0,.15);
  --focus: #2bd4c6;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background-color: var(--beige);
  /* turquoise crosshatch background */
  background-image:
    linear-gradient(45deg, rgba(43,212,198,.25) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(43,212,198,.25) 25%, transparent 25%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  display: grid;
  place-items: center;
  padding: 5rem 1rem;
}

.image-frame {
  width: min(92vw, 760px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

footer {
  padding: 1.75rem 1rem;
  text-align: center;
  color: #1b170f;
}

.product-ad {
  display: inline-block;
  padding: .5rem;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid rgba(0,0,0,.08);
  margin: 0 auto .75rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 6px 18px rgba(0,0,0,.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-ad h3 {
  font-size: .95rem;
  margin: 0 0 .25rem;
}

.product-ad a {
  text-decoration: none;
  color: inherit;
}

.product-ad a p {
  display: inline-block;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: linear-gradient(#f9f0e1,#e8d3a8);
  border: 1px solid rgba(0,0,0,.08);
  font-weight: 700;
  color: #1a170f;
  margin: 0;
  transition: transform .2s ease;
}

.product-ad a:hover p {
  transform: translateY(-1px);
}

.product-ad a:focus-visible p {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (min-width: 700px) {
  main { padding: 6rem 1rem; }
  .image-frame { border-radius: 18px; }
}