/* Minimal, responsive hacker-theme CSS (mobile-first) */

/* light reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }

/* palette and glassy accents */
:root {
  --maroon-1: #6b001a;
  --maroon-2: #8b0a28;
  --maroon-3: #2a0f1f;
  --blue-1: #4db6ff;
  --blue-2: #0aa2ff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.22);
  --text: #e9f3ff;
  --muted: #a7c6ff;
  --focus: 0 0 0 3px rgba(0, 180, 255, 0.5);
  --shadow: 0 12px 40px rgba(0,0,0,.35);
}

/* base look and maroon gradient background */
body {
  font-family: ui-sans-serif, system-ui, "-apple-system", "Segoe UI", Roboto;
  color: var(--text);
  background: linear-gradient(135deg, var(--maroon-1) 0%, var(--maroon-2) 50%, var(--maroon-3) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

/* layout containers (mobile-first) */
main {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
  flex: 1 1 auto;
}

.image-frame {
  width: 94%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.25rem;
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  box-shadow: inset 0 0 0 rgba(0,0,0,0), var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  filter: saturate(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

/* footer and product ad with frosted glass look */
footer {
  padding: 0.9rem 1rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  background: linear-gradient(to top right, rgba(0,0,0,0.0), rgba(0,0,0,.15));
}

.product-ad {
  width: min(680px, 92%);
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.product-ad h3 {
  font-size: 1.05rem;
  color: #dcefff;
  margin-bottom: 0.25rem;
  letter-spacing: .4px;
}

.product-ad a {
  text-decoration: none;
  display: inline-block;
}

.product-ad p {
  display: inline-block;
  padding: .65rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0a5bd7 0%, #4db6ff 100%);
  color: #001022;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: 0 0 12px rgba(0, 190, 255, .6);
  border: 1px solid rgba(255,255,255,.4);
  transition: transform .2s ease;
}
.product-ad p:hover { transform: translateY(-1px); }

/* focus styles for accessibility on the CTA */
.product-ad a { outline: none; }
.product-ad a:focus { outline: none; box-shadow: var(--focus); }
.product-ad a:focus-visible { outline: none; box-shadow: var(--focus); }

/* caption under the ad */
footer p {
  font-size: .9rem;
  color: #cfe4ff;
  text-align: center;
  margin-top: .25rem;
}

/* responsive refinements */
@media (min-width: 600px) {
  main { padding: 2.25rem; }
  .image-frame { width: 80%; padding: 1.5rem; border-radius: 24px; }
  .image-frame img { border-radius: 16px; }
  .product-ad { padding: 1.25rem 1.5rem; }
}

@media (min-width: 900px) {
  main { justify-content: center; padding: 3rem; }
  .image-frame { width: 60%; }
  footer { padding: 1.25rem 0; }
}