/* Oriole – orioleoriole.com */

@font-face { font-family: 'Oriole Rhymes'; src: url(../fonts/rhymes-text.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Oriole Univers 67'; src: url(../fonts/univers-67-condensed-bold.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Oriole Courier Prime'; src: url(../fonts/courier-prime.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --rhymes: 'Oriole Rhymes', 'Times New Roman', Times, serif;
  --univers: 'Oriole Univers 67', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Oriole Courier Prime', 'Courier New', monospace;
  --grey: #707070;
  --red: #E5461C;
  /* Size unit taken from the A4 invitations: scales with the window up to about 1100px wide, then stays */
  --u: clamp(1.6px, calc(100vw / 595), 1.84px);
  --edge-y: clamp(18px, 2.4vw, 30px);
  --edge-x: clamp(20px, 3vw, 40px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }

.app { position: relative; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; background: #000; }
.pages { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.pages::-webkit-scrollbar { display: none; }
.page { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.page.white { background: #fff; color: #000; }

/* Background photograph (page 1 and contact) */
.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left bottom; }
.shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0, rgba(0, 0, 0, 0) 120px, rgba(0, 0, 0, 0) calc(100% - 120px), rgba(0, 0, 0, 0.6) 100%); }

/* Invitation layout: content hangs below the floating logo */
.anchor { position: absolute; left: 0; right: 0; top: calc(50% - 56.379 * var(--u)); padding: 0 var(--edge-x); display: flex; flex-direction: column; align-items: center; text-align: center; }
.logo-space { height: calc(7.257 * var(--u)); flex: none; }
.heading { margin: calc(22 * var(--u)) 0 0; font-family: var(--univers); font-weight: 700; font-size: calc(14 * var(--u)); line-height: calc(18 * var(--u)); letter-spacing: 0; text-transform: uppercase; }
.address { margin: calc(20.5 * var(--u)) 0 0; font-family: var(--mono); font-size: calc(9 * var(--u)); line-height: 1; letter-spacing: 0.135em; color: var(--grey); white-space: pre-wrap; }
.address.groups { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 0.735em; row-gap: 0.6em; white-space: normal; }
.address .group { white-space: pre; }
.address .tight { margin-right: -0.25em; }
/* Address lines always stay on one line: the type shrinks a little on narrow phones instead of wrapping */
.address.fit { white-space: pre; font-size: min(calc(9 * var(--u)), calc(var(--avail, calc(100vw - 2 * var(--edge-x))) / (var(--chars) * 0.735 + 0.4))); }
.address.groups.fit { white-space: normal; flex-wrap: nowrap; }

/* About */
.about { margin: calc(22 * var(--u)) 0 0; font-family: var(--univers); font-weight: 700; text-transform: uppercase; line-height: calc(18em / 14); text-align: justify; text-align-last: justify; }
.about span { display: block; }
.about span.last { text-align-last: left; }
.about-wide { font-size: min(calc(14 * var(--u)), calc((100vw - 40px) / 31.815)); width: 31.815em; }
.about-narrow { display: none; font-size: min(calc(14 * var(--u)), calc((100vw - 40px) / 22.223)); width: 22.223em; }
@media (max-width: 600px) { .about-wide { display: none; } .about-narrow { display: block; } }

/* Contact */
/* Courtesy line on the About page, in the address-line position */
.credits { margin-top: calc(20.5 * var(--u) - 0.175em); line-height: 1.35; color: var(--grey); white-space: normal; }
/* Contact: e-mail in neon, Impressum and Imprint in white where the address line sits on the invitations */
.contact .heading { color: #FFE5D9; text-shadow: 0 0 1px #FFFFFF, 0 0 4px #FF6D2D, 0 0 9px #FF914D, 0 0 16px #FF4500; }
.contact .heading { margin-top: calc(39.2 * var(--u)); }
.line-gap { height: calc(18.8 * var(--u)); flex: none; }
.contact .legal { color: #FFFFFF; text-shadow: 0 0 8px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.6); display: flex; justify-content: center; column-gap: calc(4 * 0.735em); }

/* Exhibitions: horizontal loop of invitation, photographs and press release */
.ex { background: #000; overscroll-behavior-x: none; touch-action: pan-y; }
.track { display: flex; height: 100%; will-change: transform; }
.track.animate { transition: transform 0.75s cubic-bezier(0.65, 0, 0.35, 1); }
.slide { flex: 0 0 100%; height: 100%; position: relative; }
.slide-title { background: #fff; color: #000; }
.slide-photo { background: #000; }
.slide-photo img { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.slide-photo img.fill { object-fit: cover; }
.slide-press { background: #fff; }
.press-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.press-scan { display: block; width: 100%; max-width: 1095px; height: auto; margin: 0 auto; -webkit-user-select: none; user-select: none; }
.press-text { --avail: calc(100vw - 2 * max(22px, 100vw * 82 / 595)); display: none; margin: 0 auto; padding: 64px max(22px, calc(100vw * 82 / 595)) 48px; color: #000; text-align: center; }
.press-text .press-logo { width: calc(50.8 * var(--u)); height: auto; opacity: 0.61; }
.press-text .heading { white-space: pre-line; }
.press-text .label { margin: calc(34 * var(--u)) 0 0; font-family: var(--rhymes); font-size: calc(9.5 * var(--u)); text-transform: uppercase; }
.press-text .body, .press-text .bio { white-space: pre-line; text-align: justify; hyphens: auto; -webkit-hyphens: auto; font-family: var(--rhymes); font-size: calc(9 * var(--u)); line-height: calc(12 * var(--u)); }
.press-text .body { margin-top: calc(26 * var(--u)); }
.press-text .bio { margin-top: calc(24 * var(--u)); }
.press-text .author { margin: 0; font-family: var(--rhymes); font-size: calc(9 * var(--u)); line-height: calc(12 * var(--u)); }
.press-text .note { margin-top: calc(36 * var(--u)); text-align: left; font-family: var(--rhymes); font-size: calc(6 * var(--u)); line-height: calc(8 * var(--u)); }
@media (max-width: 700px) { .press-scan { display: none; } .press-text { display: block; } }
.download { position: absolute; top: var(--edge-y); right: var(--edge-x); color: #000; font-family: var(--rhymes); font-size: 11.2px; letter-spacing: 0.08em; text-transform: uppercase; }

.half { position: absolute; top: 0; width: 50%; height: 100%; padding: 0; border: 0; background: transparent; -webkit-tap-highlight-color: transparent; }
.half.prev { left: 0; }
.half.next { right: 0; }
.half.prev { cursor: w-resize; }
.half.next { cursor: e-resize; }
.ex.on-press .half { pointer-events: none; }
.caption { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 40px); pointer-events: none; opacity: 0; transition: opacity 0.4s ease; font-family: var(--rhymes); font-size: 11px; letter-spacing: 0.01em; line-height: 1.35; text-align: center; color: #fff; }
.counter { position: absolute; top: var(--edge-y); right: var(--edge-x); pointer-events: none; opacity: 0; transition: opacity 0.4s ease; color: #fff; font-family: var(--rhymes); font-size: 11px; letter-spacing: 0.01em; }
.ex.on-photo .caption, .ex.on-photo .counter { opacity: 1; }
@media (max-width: 820px) { .caption { bottom: 64px; } }

/* Floating overlay: logo and corner links */
.nav { position: absolute; inset: 0; pointer-events: none; color: #000; font-family: var(--rhymes); font-size: 11.2px; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.3s ease, opacity 0.45s ease, text-shadow 0.3s ease; }
.nav.light { color: #fff; text-shadow: 0 0 8px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.6); }
.nav.hidden { opacity: 0; }
.nav .corner { position: absolute; padding: 14px; margin: -14px; pointer-events: auto; }
.nav.hidden .corner, .nav .corner.static { pointer-events: none; }
.nav .corner.static:hover { text-decoration: none; }

/* Corner links light up like the neon ORIOLE when the mouse is over them */
.nav .corner, .download { transition: color 0.25s ease, text-shadow 0.25s ease; }
.nav .corner:hover, .download:hover { text-decoration: none; color: #FF6D2D; text-shadow: 0 0 3px rgba(255, 109, 45, 0.55), 0 0 9px rgba(255, 69, 0, 0.35); }
.nav.light .corner:hover { color: #FFE5D9; text-shadow: 0 0 1px #FFFFFF, 0 0 4px #FF6D2D, 0 0 9px #FF914D, 0 0 16px #FF4500; }
.nav .corner.static:hover { color: inherit; text-shadow: inherit; }
.corner.tl { top: var(--edge-y); left: var(--edge-x); }
.corner.tr { top: var(--edge-y); right: var(--edge-x); }
.corner.bl { bottom: var(--edge-y); left: var(--edge-x); }
.corner.br { bottom: var(--edge-y); right: var(--edge-x); }

.logo { position: absolute; left: 50%; top: 50%; width: calc(50.8 * var(--u)); transform: translate(-50%, calc(-56.379 * var(--u))); transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1); }
.nav.start .logo { transform: translate(-50%, calc(-3.6285 * var(--u))); }
.logo img { display: block; width: 100%; height: auto; }
.logo .neon { opacity: 0; transition: opacity 0.6s ease; }
.logo .neon img { filter: drop-shadow(0 0 calc(0.117 * var(--u)) #FFFFFF) drop-shadow(0 0 calc(0.39 * var(--u)) #FFE5D9) drop-shadow(0 0 calc(0.98 * var(--u)) #FF6D2D) drop-shadow(0 0 calc(2.15 * var(--u)) #FF914D) drop-shadow(0 0 calc(4.3 * var(--u)) #FF4500); }
.logo .grey, .logo .pale { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; transition: opacity 0.6s ease; }
.logo .pale img { filter: brightness(0) invert(1); }
.nav.start .neon { opacity: 1; }
.nav.end .pale { opacity: 1; }
.nav.middle .grey { opacity: 0.61; }


@keyframes neonOn { 0% { opacity: 0; } 45% { opacity: 0.92; } 52% { opacity: 0.86; } 60% { opacity: 0.97; } 100% { opacity: 1; } }
@keyframes neonHum { 0%, 100% { opacity: 1; } 50% { opacity: 0.97; } }
.neon img { animation: neonOn 2.4s ease-out both, neonHum 9s ease-in-out 2.4s infinite; }

@media (prefers-reduced-motion: reduce) {
  .pages { scroll-behavior: auto; }
  .neon img { animation: none; }
  .track.animate, .logo, .nav, .logo .neon, .logo .grey, .logo .pale, .caption, .counter { transition: none; }
}

noscript p { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: #fff; font: 12px/1.4 var(--rhymes); }
