/* CSS: Echoes of the Shipwreck Ghost – hacker/cyberpunk, blue gradient, frosted glass */
:root{
  --bg1: #041a39;
  --bg2: #0b2a7a;
  --bg3: #041a38;
  --card: rgba(10,28,70,.66);
  --glass: rgba(255,255,255,.08);
  --text: #e8f2ff;
  --muted: #a8c3ff;
  --accent: #4ea8ff;
  --ring: 0 0 0 3px rgba(78,168,255,.75);
}

*,
*::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, Arial;
  color: var(--text);
  min-height: 100vh;
  background:
    linear-gradient(135deg, #041a39 0%, #0b2a7a 50%, #041a39 100%),
    radial-gradient(circle at 20% -10%, rgba(0,132,255,.25), transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: calc(100vh - 160px);
}

.image-frame {
  width: min(92vw, 720px);
  padding: 1rem;
  border-radius: 16px;
  background: rgba(8,28,70,.58);
  border: 1px solid rgba(120,170,255,.5);
  box-shadow: 0 10px 40px rgba(0,0,60,.6);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  overflow: hidden;
}

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

/* Footer / Product Ad (frosted glass) */
footer {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.product-ad {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(10,28,70,.6);
  border: 1px solid rgba(120,170,255,.5);
  backdrop-filter: blur(4px);
  width: min(420px, 90%);
}

.product-ad h3 {
  margin: 0;
  font-size: .95rem;
  color: #e8f2ff;
  display: flex;
  align-items: center;
  gap: .4rem;
  text-shadow: 0 0 6px rgba(78,168,255,.6);
}

.product-ad a {
  display: inline-block;
  text-decoration: none;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
}
.product-ad a:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.product-ad a p { margin: 0; padding: 0; color: #fff; }

/* Footer caption */
footer p {
  color: var(--muted);
  margin: 0;
  text-align: center;
  font-size: .9rem;
}

/* Responsive (mobile-first) tweaks */
@media (min-width: 800px) {
  main { padding: 3rem; }
  .image-frame { width: min(700px, 60vw); }
  footer { padding: 1.75rem 0; }
  .product-ad { width: 420px; }
}

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

/* Focus for links on all pages (fallback) */
a:focus-visible { outline: none; box-shadow: var(--ring); }