
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@300;400;500&display=swap');

:root {
  --ink: #ffffff;
  --muted: rgba(255,255,255,.72);
  --panel: rgba(30, 10, 55, .18);
  --line: rgba(255,255,255,.28);
  --shadow: 0 18px 52px rgba(24, 7, 40, .28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Source Code Pro", monospace;
  background:
    linear-gradient(rgba(38, 12, 68, .05), rgba(38, 12, 68, .05)),
    url("images/gradient-background.jpg") center / cover fixed no-repeat;
}

a { color: inherit; }

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
  letter-spacing: .14em;
  font-size: .93rem;
  font-weight: 400;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .08em;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 84px;
}

.page-heading {
  margin: 0 0 56px;
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 3.3rem);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.subheading {
  margin: 80px 0 34px;
  font-size: .92rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery {
  display: grid;
  gap: 76px;
}

.artwork {
  margin: 0;
  display: grid;
  place-items: center;
}

.artwork img {
  display: block;
  max-width: min(860px, 100%);
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.copy-page {
  max-width: 760px;
}

.copy-page p {
  line-height: 1.9;
  font-size: .95rem;
  color: rgba(255,255,255,.9);
}

.placeholder {
  padding: 24px 0;
  color: var(--muted);
  font-style: italic;
}

.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 36px;
  color: rgba(255,255,255,.55);
  font-size: .72rem;
  letter-spacing: .06em;
}

.splash {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: url("images/gradient-background.jpg") center / cover no-repeat;
}

.splash-frame {
  position: relative;
  width: min(100vw, calc(100svh * 16 / 9));
  aspect-ratio: 16 / 9;
}

.splash-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.splash-frame .splash-sparkle {
  position: absolute;
  inset: auto;
  left: 38.75%;
  top: 56.3%;
  width: clamp(62px, 4.4vw, 88px);
  height: auto;
  z-index: 2;
  pointer-events: none;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transform-origin: center;
  opacity: .82;
  filter: drop-shadow(0 0 7px rgba(255,255,255,.4));
  animation: sparkleTwinkle 3.2s ease-in-out infinite;
}

@keyframes sparkleTwinkle {
  0%, 100% {
    opacity: .38;
    transform: translate(-50%, -50%) scale(.76) rotate(0deg);
  }
  18% {
    opacity: .72;
    transform: translate(-50%, -50%) scale(.94) rotate(8deg);
  }
  38% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.16) rotate(-7deg);
  }
  58% {
    opacity: .68;
    transform: translate(-50%, -50%) scale(.9) rotate(5deg);
  }
  78% {
    opacity: .96;
    transform: translate(-50%, -50%) scale(1.05) rotate(-4deg);
  }
}


/* Invisible clickable area aligned to the baked-in "enter" text. */
.enter-hotspot {
  position: absolute;
  left: 33%;
  top: 82.5%;
  width: 21%;
  height: 8%;
  z-index: 2;
  cursor: pointer;
  border-radius: 6px;
}

.enter-hotspot:focus-visible {
  outline: 2px solid rgba(255,255,255,.95);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  body { background-attachment: scroll; }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 22px;
  }

  .nav {
    justify-content: flex-start;
    gap: 10px 16px;
  }

  main { padding-top: 44px; }

  .gallery { gap: 48px; }

  .artwork img {
    max-height: none;
    width: 100%;
  }

  .page-heading { margin-bottom: 38px; }

  .subheading { margin-top: 58px; }
}
