/* Minimal reset and maroon-noise, beige hacker theme with frosted glass + responsive layout */

:root{
  --bg: #2a0000;
  --bg-deep: #220000;
  --beige: #f5e7c9;
  --beige-dark: #e8d9b6;
  --text: #f7f1db;
  --muted: #d8c8a9;
  --card: rgba(255,255,240,.14);
  --glass: rgba(255,255,255,.18);
  --accent: #ffdca8;
  --shadow: 0 10px 28px rgba(0,0,0,.35);
  --radius: 14px;
}

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

html, body { height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background-color: var(--bg);
  /* maroon noise texture (subtle speckle) */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.25) 1px, transparent 1px),
    radial-gradient(circle at 3px 7px, rgba(0,0,0,.15) 1px, transparent 1px),
    linear-gradient(#400000, #2a0000);
  background-size: 4px 4px, 4px 4px, cover;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Hero image frame with frosted-glass bottom panel */
.image-frame {
  width: 100%;
  max-width: 1000px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  background: #000;
  border: 1px solid rgba(0,0,0,.25);
}

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

/* Frosted glass bottom overlay (for potential caption/CTA space) */
.image-frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(to top, rgba(248, 244, 226, .86), rgba(248, 244, 226, 0) 60%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  /* subtle glass sheen */
  box-shadow: inset 0 6px 20px rgba(255,255,255,.25);
}

/* Light halo for cyberpunk vibe around the frame */
.image-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(110, 60, 40, .25), transparent 40%);
  filter: blur(0.4px);
  z-index: 0;
}

/* Ensure hero scales nicely on mobile-first */
@media (max-width: 599px) {
  main { padding: 1.25rem 0.75rem 3rem; }
  .image-frame { border-radius: 12px; }
}

/* Footer / CTA styling (prominent, accessible) */
footer{
  margin-top: 1.75rem;
  padding: 1rem;
  text-align: center;
  color: var(--text);
  background: rgba(0,0,0,.22);
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Featured product card styled as a CTA */
.product-ad {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .95rem;
  border-radius: 999px;
  background: rgba(255,255,240,.12);
  border: 1px solid rgba(255,255,255,.22);
  margin-bottom: .75rem;
  text-align: left;
}
.product-ad h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  color: #ffe8c1;
  letter-spacing: .2px;
}
.product-ad a {
  color: inherit;
  text-decoration: none;
}
.product-ad p {
  margin: 0;
  font-weight: 600;
  color: #fff6db;
}
footer p {
  margin: .25rem 0 0;
  color: #d9d0bb;
  font-size: .88rem;
}

/* Link and button focus styles for accessibility */
a:focus-visible, button:focus-visible {
  outline: 3px solid #ffe082;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Tiny screen tip: keep CTA legible on small devices */
@media (min-width: 600px) {
  main { padding: 2rem 1.75rem 5rem; }
  .image-frame { border-radius: 20px; }
}

@media (min-width: 900px) {
  main { padding: 3rem 2rem 6rem; }
  .image-frame { max-width: 1100px; }
  .product-ad { display: inline-flex; align-items: center; gap: 1rem; }
}
