/* Reset and base styles */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #0b0b0f;
  --fg: #e9e0d9;
  --card: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.25);
  --accent: #ff7a00;
  --accent2: #ff3d00;
  --shadow: rgba(0,0,0,.6);
  --radius: 14px;
}
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--fg);
  background: var(--bg);
  background-image: radial-gradient(circle, rgba(255,0,0,.45) 1px, transparent 1px);
  background-size: 12px 12px;
  background-repeat: repeat;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--fg); text-decoration: none; }
a:hover, a:focus { color: var(--accent); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Layout */
main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  min-height: calc(100vh - 180px);
}
.image-frame {
  width: min(900px, 92vw);
  padding: 18px;
  border-radius: 16px;
  background: rgba(8,8,12,.55);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.image-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(0,0,0,.6), 0 0 0 4px rgba(255,122,0,.25);
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Footer / ad */
footer {
  padding: 20px 16px;
  text-align: center;
}
.product-ad {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 8px;
}
.product-ad h3 {
  font-size: 0.95rem;
  margin: 0 0 6px;
}
.product-ad a { color: var(--fg); text-decoration: none; }
.product-ad a:hover, .product-ad a:focus { color: var(--accent); text-decoration: underline; }
.product-ad p {
  margin: 0;
  color: #ffd9a0;
  font-weight: 600;
}

/* Fine-tuned typography / accessibility */
@media (min-width: 768px) {
  main {
    min-height: calc(100vh - 120px);
    padding: 48px 24px;
  }
  .image-frame {
    padding: 22px;
    border-radius: 20px;
  }
  .product-ad { font-size: 1rem; }
}