/* Lightweight, responsive, hacker-themed styling with yellow circuit-board backdrop */

/* 1) Light reset & root vars */
:root{
  --bg-brown: #3b210f;
  --bg-brown-dark: #2a170a;
  --board-yellow: #f6d24a;
  --board-yellow-dark: #e6be34;
  --text: #f6e8d0;
  --glass: rgba(255,255,255,.12);
  --glass-border: rgba(255,255,255,.25);
  --card: rgba(0,0,0,.25);
  --shadow: 0 12px 32px rgba(0,0,0,.38);
  --accent: #ffd84d;
  --accent-dark: #e6b623;
}

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

html, body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background-color: var(--bg-brown);
  /* Yellow circuit-board vibe: subtle grid lines over brown */
  background-image:
    linear-gradient(rgba(246,210,74,.08), rgba(246,210,74,.08)),
    linear-gradient(to right, rgba(246,210,74,.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(246,210,74,.25) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px;
  background-position: 0 0, 0 0, 0 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

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

.image-frame{
  width: min(680px, 92%);
  border-radius: 18px;
  overflow:hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.12);
  backdrop-filter: saturate(1.1) blur(3px);
  -webkit-backdrop-filter: saturate(1.1) blur(3px);
  transition: transform .25s ease, box-shadow .25s ease;
}

.image-frame:hover{
  transform: scale(1.01);
  box-shadow: 0 0 0 6px rgba(246,210,74,.25), var(--shadow);
}

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

footer{
  padding: 1.75rem 1rem;
  text-align:center;
  color: #f2e7d3;
  background: linear-gradient(to top, rgba(0,0,0,.12), rgba(0,0,0,0));
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top:auto;
}

.product-ad{
  display:inline-block;
  padding:.55rem .9rem;
  border-radius:999px;
  background: rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom:.75rem;
}

.product-ad h3{
  font-size: .95rem;
  font-weight: 600;
  letter-spacing:.2px;
  margin:0 0 .25rem;
}

.product-ad a{
  text-decoration:none;
  display:inline-block;
  padding:.5rem .8rem;
  border-radius:8px;
  background: rgba(255, 214, 77, .25);
  color: #1a1400;
  border:1px solid rgba(255,214,77,.6);
  transition: transform .15s ease, background .15s ease;
}
.product-ad a:hover{
  transform: translateY(-1px);
  background: rgba(255,214,77,.38);
}
.product-ad a:focus-visible{
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* 3) Accessibility + typography helpers */
a{ color: var(--accent); text-decoration: none; }
a:focus-visible{ outline: 3px solid var(--accent); outline-offset: 2px; }

/* 4) Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce){
  * { transition: none !important; animation: none !important; }
}

/* 5) Responsive tweaks for larger screens */
@media (min-width: 768px){
  main{ padding-top: 6rem; }
  .image-frame{ border-radius: 20px; }
  .product-ad h3{ font-size:1.05rem; }
  footer{ padding: 2rem 0 2.5rem; }
}