/* Reset and base styles (light, accessible) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f2e0c8;
  --bg-deep: #e6d3b0;
  --text: #1a1a1a;
  --muted: #4a5568;
  --silver: #cbd5e1;
  --silver-dark: #8a97a6;
  --glass: rgba(255,255,255,.22);
  --glass-border: rgba(255,255,255,.55);
  --accent: #f59e0b;
  --accent-dark: #b96a00;
  --shadow: 0 8px 28px rgba(0,0,0,.25);
}

html, body { height: 100%; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background-color: var(--bg);
  /* subtle parchment texture with orange tint for a hacker-y parchment vibe */
  background-image:
    linear-gradient(135deg, rgba(246, 139, 0, 0.08) 0%, transparent 50%),
    linear-gradient(315deg, rgba(0,0,0,0.04) 0%, transparent 50%);
  background-size: 60px 60px, 60px 60px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout: mobile-first, centered hero area with frosted glass image frame */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem 0;
}

.image-frame {
  width: min(92vw, 860px);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.24);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  transition: transform .3s ease;
}
.image-frame:hover { transform: translateY(-2px); }

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: crisp-edges;
}

/* Footer with CTA styling (silver on parchment) */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: #2a2a2a;
  background: linear-gradient(to bottom, rgba(255,255,255,.0), rgba(0,0,0,.02));
}

.product-ad {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 16px rgba(0,0,0,.12);
  font-weight: 600;
}
.product-ad h3 {
  font-size: .92rem;
  color: var(--silver-dark);
  margin: 0;
}
.product-ad a { display: inline-block; text-decoration: none; }

/* CTA pill inside the ad (orange button look) */
.product-ad a p {
  display: inline;
  margin: 0;
  padding: .32rem .72rem;
  border-radius: .5rem;
  background: linear-gradient(#f59e0b, #d97706);
  color: #fff;
  font-weight: 800;
  letter-spacing: .2px;
  white-space: nowrap;
}

.product-ad a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  border-radius: .5rem;
}
a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  border-radius: .25rem;
}

/* Small screens: ensure generous touch targets and spacing */
@media (max-width: 767px) {
  .image-frame { border-radius: 14px; }
  .product-ad { padding: .5rem .9rem; }
}

/* Tablet & up: larger hero and layout breathing room */
@media (min-width: 768px) {
  main { padding: 4rem 0 0; }
  .image-frame { width: 820px; }
  footer { padding: 2rem 1rem 2rem; }
  .product-ad { font-size: 1rem; }
}

/* Wide displays: slight polish on edges for hacker-cyber parchment vibe */
@media (min-width: 1024px) {
  .image-frame { border-radius: 18px; }
  body { background-position: 20px 20px; }
}