/* Hacker-style, mobile-first CSS with frosted-glass panels and gold accents */

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

/* Color system & background pattern (brown stripes + dark base) */
:root {
  --brown-1: #4a2f14;
  --brown-2: #6b4314;
  --brown-3: #2f1b07;
  --gold: #d4af37;
  --gold-dark: #b3891a;
  --text: #f8f5e6;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
}

html, body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background:
    /* brown striped pattern */
    repeating-linear-gradient(
      135deg,
      var(--brown-2) 0px,
      var(--brown-2) 6px,
      var(--brown-1) 6px,
      var(--brown-1) 12px
    ),
    linear-gradient(#140f08, #110b07);
  min-height: 100%;
  background-attachment: fixed;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout root */
body {
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}

/* Frosted glass hero frame for the image */
.image-frame {
  width: calc(100% - 2rem);
  max-width: 860px;
  aspect-ratio: 16 / 9;
  margin: 2rem auto;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 40px rgba(0,0,0,.25), 0 20px 40px rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  overflow: hidden;
}

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

/* Page structure alignment (mobile-first) */
main { display: grid; place-items: center; }

/* Footer with a featured product call-to-action */
footer {
  text-align: center;
  padding: 1.25rem 1rem 2rem;
  color: #f1e9c2;
  background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.55));
}

.product-ad {
  display: inline-block;
  padding: .55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: saturate(1.2) blur(4px);
  -webkit-backdrop-filter: saturate(1.2) blur(4px);
  margin-bottom: .75rem;
  text-align: left;
}

.product-ad h3 {
  margin: 0 0 .25rem;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: .5px;
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
}

.product-ad a {
  text-decoration: none;
  display: inline-block;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(#b8860b, #d4af37);
  color: #251b00;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(212,175,55,.5);
}
.product-ad a:focus-visible {
  outline: 3px solid #ffd27a;
  outline-offset: 2px;
}
.product-ad a:hover { transform: translateY(-1px); }

footer p { margin: .3rem 0 0; font-size: .85rem; opacity: .9; }

/* Accessibility: visible focus for interactive elements outside links too */
button:focus-visible,
a:focus-visible {
  outline: 3px solid #ffd77a;
  outline-offset: 2px;
}

/* Responsive tweaks */
@media (min-width: 640px) {
  image-frame, main { /* ensure panels scale gracefully on medium devices */
    box-sizing: border-box;
  }
  .image-frame { border-radius: 26px; }
  .product-ad h3 { font-size: 1.05rem; }
}

@media (min-width: 900px) {
  main { padding: 2rem; }
  .image-frame { width: 800px; }
}