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

html, body { height: 100%; }

:root {
  --bg-teal: #0b6a66;
  --bg-teal-dark: #062a2a;
  --indigo: #4b4bdc;
  --indigo-dark: #1a1d53;
  --glass: rgba(18, 37, 70, 0.65);
  --text: #e9f6ff;
  --accent: #2ff3ff;
  --border: rgba(120, 200, 255, 0.6);
  --surface: rgba(9, 25, 50, 0.6);
  --shadow: rgba(0,0,0,.5);
}

html { font-size: 16px; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background-color: var(--bg-teal);
  /* Teal paper texture approximation */
  background-image:
    radial-gradient(circle at 2px 2px, rgba(255,255,255,.08) 2px, transparent 2px),
    radial-gradient(circle at 8px 8px, rgba(0,0,0,.08) 2px, transparent 2px),
    linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,.0) 40%),
    linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.0) 60%);
  background-size: 12px 12px, 12px 12px, 100% 100%, 100% 100%;
  background-blend-mode: overlay, overlay, normal, normal;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: #c6f5ff; text-decoration: none; }

main {
  width: min(980px, 92%);
  margin: 2rem auto 1.5rem;
}

/* Hero image frame with frosted glass overlay hint CTA */
.image-frame {
  position: relative;
  width: 100%;
  height: 52vh;
  min-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(120,180,255,.5);
  background: #0b1620;
  box-shadow: 0 10px 40px rgba(0,0,0,.4), inset 0 0 80px rgba(0,0,0,.25);
}

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

/* Frosted glass feel around the image edges */
.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(0,0,0,.25);
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Hint CTA as a frosted glass chip in the corner of the hero */
.image-frame::after {
  content: "Enter the Archive";
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 0.6rem 0.95rem;
  border-radius: 10px;
  background: rgba(6, 18, 38, 0.78);
  border: 1px solid rgba(110, 220, 255, 0.8);
  color: #eaffff;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.95rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: 0 1px 0 rgba(0,0,0,.3);
  letter-spacing: .3px;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  user-select: none;
}

/* Subtle frosted edge */
.image-frame::around { content: ""; }

/* Footer with prominent CTA-style product ad */
footer {
  margin: 2rem auto 2rem;
  padding: 1.25rem;
  width: min(980px, 92%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(to top, rgba(6,12,28,.9), rgba(6,12,28,.6));
  border-radius: 12px;
  border: 1px solid rgba(110, 180, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.product-ad {
  display: inline-flex;
  align-items: center;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: rgba(10, 25, 60, 0.65);
  border: 1px solid rgba(110, 200, 255, 0.7);
  gap: .75rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.product-ad h3 {
  font-size: 0.95rem;
  margin: 0;
  color: #e6fffe;
  line-height: 1;
}
.product-ad a { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }

.product-ad p {
  margin: 0;
  padding: .25rem .6rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #0d1f35, #0a1130);
  color: #eaffff;
  border: 1px solid rgba(150, 210, 255, 0.7);
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  white-space: nowrap;
}

/* Small footer text for copyright */
footer p { margin: 0; color: #b8d6ff; font-size: .9rem; }

/* Accessibility: clear focus styles for interactive elements */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive: mobile-first adjustments */
@media (min-width: 640px) {
  main { padding-top: 1rem; }
  .image-frame { height: 60vh; min-height: 420px; }
  .image-frame::after { font-size: 1rem; }
}

@media (min-width: 1024px) {
  footer { justify-content: space-between; }
  .product-ad { padding-left: 1rem; }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}