/* The Global Village placeholder site */

:root {
  color-scheme: dark;
  --page-bg: #02050a;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--page-bg);
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/*
  Full-screen display area.
  The image itself stays fully visible with object-fit: contain.
  A blurred duplicate fills the screen behind it so tablets/phones/widescreens
  do not look empty when the image aspect ratio does not match the screen.
*/
.hero {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background-color: var(--page-bg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -4%;
  background-image: image-set(
    url("assets/global-village-720.jpg") 1x,
    url("assets/global-village-1080.jpg") 2x
  );
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.05);
  opacity: 0.35;
  transform: scale(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.36));
  pointer-events: none;
}

.hero picture {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100svh;
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* On very wide screens, let the image breathe without cropping. */
@media (min-aspect-ratio: 2 / 1) {
  .hero-image {
    width: auto;
    max-width: 100%;
  }
}

/* On phones, keep the full image visible and avoid browser UI height jumps. */
@media (max-width: 700px) {
  body {
    overflow: hidden;
  }

  .hero,
  .hero picture {
    height: 100dvh;
  }

  .hero::before {
    filter: blur(22px) saturate(1.05);
    opacity: 0.45;
  }
}

/* If the visitor prefers less visual processing, simplify the background. */
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    filter: blur(18px);
  }
}
