/* Minimal, mobile-first CSS for a yellow-grid, hacker-style landing page with frosted glass UI */

/* Reset and variables */
:root {
  --bg-yellow: #f5e66a;
  --grid-dark: rgba(0, 0, 0, 0.25);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.15);
  --text: #eaeaea;
  --muted: #c9c9c9;
  --accent: #ffd63b;
  --shadow: 0 6px 24px rgba(0,0,0,.25);
  --radius: 14px;
  --focus: 2px solid #ffd63b;
  --focus-offset: 2px;
  --bg-grid-size: 40px;
}

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

/* Basic layout */
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  line-height: 1.5;
  background-color: var(--bg-yellow);
  /* yellow grid paper: subtle grid lines over yellow */
  background-image:
    linear-gradient(to right, var(--grid-dark) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-dark) 1px, transparent 1px);
  background-size: var(--bg-grid-size) var(--bg-grid-size);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Frosted glass base for hero-like frame */
.image-frame {
  width: min(92%, 760px);
  aspect-ratio: 16 / 9;
  margin: 6vh auto 2rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px) saturate(1.15);
  -webkit-backdrop-filter: blur(6px) saturate(1.15);
  padding: 1rem;
  overflow: hidden;
}

/* Image behavior inside frame */
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  display: block;
  filter: saturate(0.95);
  border: 1px solid rgba(255,255,255,.25);
}

/* Main and footer layout adjustments for accessibility and contrast */
main { display: grid; align-items: start; justify-items: center; padding: 1rem; min-height: calc(100vh - 160px); }

footer {
  margin-top: 1rem;
  padding: 1rem;
  width: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.0));
}
.product-ad {
  width: min(92%, 720px);
  padding: .9rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 6px 18px rgba(0,0,0,.25);
  text-align: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.product-ad h3 {
  margin: 0 0 .25rem;
  font-size: 1rem;
  letter-spacing: .04em;
}
.product-ad p { margin: .25rem 0; color: #fff; font-weight: 600; }

.product-ad a {
  text-decoration: none;
  display: inline-block;
  padding: .6rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  color: #0b0b0b;
  background: linear-gradient(135deg, #ffd63b 0%, #ffd166 60%, #f9c93a 100%);
  border: 1px solid rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.product-ad a:hover { transform: translateY(-1px); }

/* Focus visibility for accessibility (keyboard users) */
:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
  border-radius: 6px;
}
a, button { color: #eaeaea; text-decoration: none; }

/* Responsive tweaks */
@media (min-width: 600px) {
  .image-frame { margin-top: 8vh; }
  .product-ad { padding: 1.1rem 1.2rem; }
}
@media (min-width: 900px) {
  main { padding: 2rem 0; }
  .image-frame { width: min(80%, 860px); }
}
