:root {
  color-scheme: dark;
  --night: #070e19;
  --paper: #f7f6eb;
  --yellow: #f3e747;
  --muted: #bec9d5;
  --edge: clamp(24px, 5vw, 88px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--night);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box }
body, figure, h1, p { margin: 0 }
button, input { font: inherit }
button, a, input, summary { -webkit-tap-highlight-color: transparent }
button, summary { cursor: pointer }
a { color: inherit }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px }
.sr-only, .skip:not(:focus) { position: absolute; clip-path: inset(50%); overflow: hidden; white-space: nowrap; height: 1px; width: 1px }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 20; padding: 10px 15px; color: var(--night); background: var(--yellow) }
.entry {
  position: relative; isolation: isolate; display: grid;
  grid-template: "brand brand" auto ". login" 1fr "credits credits" auto / minmax(0, 1fr) minmax(360px, 450px);
  gap: clamp(26px, 5vh, 68px); min-height: 100vh; min-height: 100svh;
  padding: clamp(25px, 5.2vh, 70px) var(--edge) 24px;
}
.coast { position: absolute; inset: 0; z-index: -1; overflow: hidden; isolation: isolate; background: #0a1626 }
.photo-view { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none }
.photo-view:focus-visible { outline: 2px solid var(--yellow); outline-offset: -6px }
.photo-view[data-dragging] { cursor: grabbing }
.photo-view img {
  pointer-events: none; position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; max-width: none; -webkit-user-drag: none;
  filter: grayscale(1) contrast(1.13) brightness(.77);
}
.photo-view::before, .photo-view::after { content: ""; position: absolute; inset: 0; pointer-events: none }
.photo-view::before {
  z-index: 1; background: linear-gradient(175deg, #102339 2%, #23435c 43%, #244551 64%, #293944 94%);
  mix-blend-mode: color;
}
.photo-view::after {
  z-index: 2;
  background:
    linear-gradient(180deg, #030919ec 0%, #06152bbb 18%, #0c264533 43%, #07132014 60%, #030914de 100%),
    linear-gradient(90deg, #06122022 14%, #07132100 45%, #050c1999 100%);
}
.sky {
  pointer-events: none; position: absolute; z-index: 3; inset: -18px -18px auto; height: 46%; min-height: 120px;
  background-image:
    radial-gradient(circle at 8% 30%, #e8f4ff 0 1px, #b0dbff40 1.4px, transparent 3px),
    radial-gradient(circle at 17% 49%, #cbd9f2 0 .7px, transparent 1.4px),
    radial-gradient(circle at 23% 17%, #fff5c9 0 .8px, transparent 2px),
    radial-gradient(circle at 33% 48%, #e0f2ff 0 .9px, #a5ceec33 1.5px, transparent 3px),
    radial-gradient(circle at 40% 24%, #d2e3fc 0 .75px, transparent 1.6px),
    radial-gradient(circle at 59% 43%, #e0f0ff 0 1px, #acdbff38 1.7px, transparent 4px),
    radial-gradient(circle at 72% 15%, #ccddfb 0 .8px, transparent 1.6px),
    radial-gradient(circle at 86% 38%, #e4ecfc 0 .85px, transparent 1.6px),
    radial-gradient(circle at 37px 54px, #d6e8ff8a 0 .7px, transparent 1.1px),
    radial-gradient(circle at 111px 113px, #b6d2fb80 0 .65px, transparent 1.2px),
    radial-gradient(circle at 77px 22px, #f8edca8a 0 .6px, transparent 1.2px);
  background-size: auto, auto, auto, auto, auto, auto, auto, auto, 201px 179px, 283px 197px, 241px 137px;
  mask-image: linear-gradient(#000 12%, #000d 50%, transparent 98%);
}
.brand { grid-area: brand; justify-self: start; pointer-events: none }
.brand img { display: block; width: clamp(132px, 11vw, 178px); height: auto }
.photo-caption {
  position: absolute; z-index: 4; left: var(--edge); bottom: clamp(46px, 8vh, 90px);
  color: var(--paper); pointer-events: none; display: grid; justify-items: start; gap: 20px;
}
.photo-location { display: flex; flex-direction: column; align-items: flex-start; gap: 9px }
.place { display: inline-flex; gap: 7px; align-items: center; font-weight: 580; font-size: .73rem; text-transform: uppercase; letter-spacing: .19em }
.place svg,.pan-step svg,.enter svg,.help svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
.place svg { width: 14px; height: 14px; color: var(--yellow) }
.beach { font-family: "Baskerville", "Iowan Old Style", Georgia, serif; font-weight: 400; font-style: italic; line-height: .96; letter-spacing: -.055em; font-size: clamp(48px, 6vw, 98px); text-shadow: 0 3px 20px #0005 }
.pan-controls { display: flex; align-items: center; gap: 12px; flex-direction: row-reverse }
.pan-hint { font-size: .76rem; color: #d3dee9 }
.touch-hint { display: none }
.pan-buttons { display: flex; gap: 6px; pointer-events: auto }
.pan-step { display: grid; place-items: center; border: 1px solid #d5e5f478; background: #091422a6; color: var(--paper); width: 38px; height: 38px; border-radius: 50% }
.pan-step:hover { border-color: var(--yellow); color: var(--yellow) }
.pan-step[aria-disabled=true] { opacity: .5; cursor: default }
.pan-step svg { width: 16px; height: 16px }
.access-panel {
  grid-area: login; align-self: center; min-width: 0; padding: clamp(26px, 3.5vw, 52px);
  background: linear-gradient(145deg, #122031ed, #081221eb); border: 1px solid #c5d6e83d;
  border-radius: 22px; box-shadow: 0 22px 70px #02071159;
}
.access-content { outline: none }
h1 { font-size: clamp(3rem, 4.65vw, 4.7rem); font-weight: 620; line-height: .96; letter-spacing: -.074em }
.accent { color: var(--yellow) }
.lead { margin: 19px 0 27px; color: var(--muted); line-height: 1.5; font-size: .97rem; text-wrap: pretty }
form { display: grid; gap: 9px }
form label { font-size: .86rem; font-weight: 570 }
form input { width: 100%; border: 1px solid #657180; background: #08111ce0; color: var(--paper); border-radius: 9px; padding: 13px 15px; min-height: 52px; font-size: 1rem }
form input::placeholder { color: #a7b3c2; font-size: .92rem }
form input:focus { border-color: var(--yellow) }
form input[aria-invalid=true] { border-color: #efb1a3 }
.enter { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 51px; border: 0; border-radius: 9px; padding: 13px 16px; font-size: .95rem; font-weight: 680; background: var(--yellow); color: #171909 }
.enter:hover { background: #fff36a }
.enter:disabled { cursor: progress; opacity: .76 }
.enter svg { width: 20px; height: 20px }
.status { color: var(--muted); font-size: .85rem; line-height: 1.5 }
.status:empty { display: none }
.status[data-error] { color: #ffd1c2 }
.help { margin-top: 21px; padding-top: 16px; border-top: 1px solid #aebed333; font-size: .84rem }
.help summary { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--muted); list-style: none }
.help summary::-webkit-details-marker { display: none }
.help summary:hover { color: var(--paper) }
.help summary svg { width: 14px; height: 14px }
.help[open] svg { transform: rotate(180deg) }
.help p,.credits p { color: var(--muted); line-height: 1.55; margin: 9px 0 0 }
.credits { grid-area: credits; justify-self: end; max-width: 34em; font-size: .73rem; color: #c3cfda }
.credits[open] { background: #081220f2; border-radius: 8px; padding: 12px 15px }
.credits a { text-underline-offset: .15em }
noscript { display: block; margin-top: 10px; line-height: 1.5 }

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .mouse-hint { display: none }
  .touch-hint { display: inline }
}
@media (prefers-reduced-motion: reduce) and (pointer: fine) {
  .pan-hint { display: none }
}
@media (max-width: 740px) {
  .entry {
    grid-template: "brand" auto "login" auto "credits" auto / minmax(0, 1fr); align-content: end;
    gap: 16px; padding: max(23px, env(safe-area-inset-top)) 18px max(16px, env(safe-area-inset-bottom));
  }
  .brand { position: absolute; grid-area: auto; left: 26px; top: max(23px, env(safe-area-inset-top)) }
  .entry { --photo-space: clamp(170px, 29svh, 290px); padding-top: calc(var(--photo-space) + 70px) }
  .brand img { width: 126px }
  .coast { z-index: -1 }
  .photo-caption { left: 26px; bottom: auto; top: 88px; right: 26px; display: flex; align-items: end; justify-content: space-between }
  .photo-location { gap: 5px }
  .beach { font-size: clamp(35px, 8vw, 48px) }
  .place { font-size: .65rem }
  .pan-hint { display: none }
  .access-panel { width: min(100%, 470px); justify-self: center; padding: clamp(21px, 6vw, 33px); border-radius: 17px }
  h1 { font-size: clamp(2.35rem, 8.3vw, 3.2rem); line-height: 1 }
  h1 br { display: none }
  .lead { margin: 10px 0 20px; font-size: .93rem }
  .help { margin-top: 17px; padding-top: 12px }
  .credits { justify-self: center }
  .photo-view::after { background: linear-gradient(180deg,#050c1ce0 0%,#0d213463 25%,#07152319 40%,#030b16dd 92%) }
}
