/* Hacker parchment landing - mobile-first, single stylesheet */

/* Light reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 100%; }
body { margin: 0; padding: 0; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #e9d6c2; background: #000; line-height: 1.5;
  /* subtle parchment texture + glow for a cyberpunk hacker vibe */
  background-image:
    radial-gradient(circle at 15% 10%, rgba(120,60,20,.18) 0 6px, transparent 6px),
    radial-gradient(circle at 75% 60%, rgba(60,20,8,.18) 0 6px, transparent 6px);
  background-repeat: repeat;
  background-size: 60px 60px, 60px 60px;
  background-color: #000;
}

/* Color tokens (brown parchment + copper accents) */
:root {
  --brown-dark: #5a2f15;
  --brown: #7a4a2f;
  --brown-light: #c59a68;
  --amber: #f7c993;
  --glass: rgba(255, 255, 255, 0.08);
  --text: #e9d6c2;
  --glow: #ffd27a;
}

/* Layout: mobile-first hero area centered content */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 120px);
}

/* Frosted glass frame around the image (image-frame) */
.image-frame {
  width: min(92vw, 760px);
  margin: 0 auto;
  padding: 0.75rem;
  border-radius: 14px;
  background: rgba(20, 12, 8, 0.55);
  border: 1px solid rgba(120, 60, 40, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(120, 60, 40, 0.8);
  /* slight sepia tone for parchment feel on the image */
  filter: saturate(0.95) contrast(1.05);
}

/* Footer area with a prominent product CTA (glassy card) */
footer {
  padding: 2rem 1rem 3rem;
  color: var(--text);
  text-align: center;
}
.product-ad {
  width: min(92vw, 760px);
  margin: 0 auto 1rem;
  padding: 1rem;
  border-radius: 12px;
  text-align: left;
  background: rgba(9, 5, 4, 0.58);
  border: 1px solid rgba(120, 60, 40, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #f4e2d0;
}
.product-ad h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .5rem;
  color: #f7d8b0;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.product-ad a { text-decoration: none; color: inherit; }
.product-ad a > p {
  margin: 0;
  padding: .55rem .9rem;
  border-radius: 6px;
  display: inline-block;
  background: #5b2e15;
  color: #ffd8a8;
  border: 1px solid rgba(0,0,0,.25);
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}
.product-ad a > p:hover {
  background: #7a4218;
  transform: translateY(-1px);
  box-shadow: 0 0 8px rgba(255, 210, 150, 0.6);
}
.product-ad a:focus-visible > p {
  outline: 3px solid var(--glow);
  outline-offset: 2px;
}
.product-ad a:focus-visible { outline: none; }

/* Focus visibility for keyboard users on interactive elements */
a:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Basic text and headings (if added later) get a subtle glow to feel cyberpunk */
h1, h2, h3 { text-shadow: 0 0 6px rgba(255, 210, 120, 0.25); }

/* Accessibility: ensure sufficient contrast for body text on dark background */
@media (prefers-color-scheme: light) {
  body { color: #2b2110; background: #f8f0e3; }
  .image-frame { background: rgba(245,235,225,0.85); border: 1px solid rgba(120,60,40,0.25); }
  .image-frame img { border: 1px solid rgba(120,60,40,0.25); }
  .product-ad { background: rgba(255,255,255,0.8); color: #2b2110; }
  .product-ad a > p { background: #d6c2a3; color: #2b2110; }
}

/* Responsive tweaks: strengthen hero on larger viewports */
@media (min-width: 600px) {
  main { padding-top: 3rem; }
  .image-frame { padding: 1rem; }
  .product-ad { font-size: 1rem; }
}
@media (min-width: 1024px) {
  main { padding-top: 4rem; }
  .image-frame { transform: translateZ(0); }
}
