/* PARACHUTE: rebuilt from parachute-film.cargo.site.
   Sizes follow Cargo's: 1rem is 0.9vw on desktop, and the mobile view scales the base
   up by 1.73 and shrinks the page padding to 0.21 of the desktop value. */

@font-face { font-family: Standard; src: local('Standard Bold'), local('Standard-Bold'); font-weight: 700; }

html { font-size: 0.9vw; --pad-scale: 1; --font-scale: 1; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #000;
  color: #f9f7ed;
  -webkit-font-smoothing: antialiased;
}

.page-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 82%;
  margin: 0 auto;
  padding: calc(4.3rem * var(--pad-scale));
}

.page-content {
  padding: calc(4rem * var(--pad-scale));
  text-align: center;
  background: #000;
  border: 0.3rem solid #fff;
  border-radius: 1.2rem;
}

/* Cargo's <bodycopy>. */
.bodycopy {
  --font-size: 1.6rem;
  --ff-unit: 1cqw;
  container-type: inline-size;
  display: block;
  font-family: Standard, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: 0;
  color: #f9f7ed;
}

.bodycopy,
.bodycopy * { font-size: calc(var(--font-scale) * var(--font-size)); }

.bodycopy a { color: #f9f7ed; text-decoration: none; }
.bodycopy a:active { opacity: 0.7; }

h1 {
  --font-size: 4.65rem;
  margin: 0;
  font-family: 'Golos Text', sans-serif;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: 0;
  color: #f9f7ed;
}

h2 {
  --font-size: 3rem;
  margin: 0;
  font-family: 'Golos Text', sans-serif;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
  color: #f9f7ed;
}

.small-caps { font-variant: small-caps; text-transform: lowercase; }

.caption {
  --font-size: 1.1rem;
  display: block;
  margin-top: 0.5em;
  font-family: 'Monument Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: #f9f7ed;
}

.button-12 {
  --font-size: 1.6rem;
  display: inline-block;
  padding: 0.8rem 1rem;
  border: 0.2rem solid #1a59d2;
  border-radius: 0.5rem;
  background: #fff;
  font-family: Standard, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: rgba(0, 0, 0, 0.85) !important;
}

/* media-item: sized as a share of the text column, sitting on its own line. */
.mi { display: inline-block; vertical-align: top; max-width: 100%; }
.mi a { display: block; }
.mi img,
.mi video { display: block; width: 100%; height: auto; }
.mi--video { aspect-ratio: 16 / 9; }
.mi--video iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Blink: Cargo's speed 50.1 works out to a 2.495s cycle. */
.blink { animation: 2.495s ease infinite blink; }
@keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* column-set */
.column-set { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: var(--gutter, 0); }
.column-unit { min-width: 0; }
.column-unit .mi { width: 100% !important; }

/* gallery-freeform: every coordinate is a percentage of the gallery's width. */
.freeform { position: relative; width: 100%; }
.ff-item { position: absolute; display: block; }
.ff-item img { display: block; width: 100%; height: auto; }

/* gallery-slideshow: shuffled, fading, autoplaying. */
.slideshow { position: relative; display: grid; width: 100%; }
.slide { grid-area: 1 / 1; margin: 0; opacity: 0; transition: opacity 0.8s ease-in-out; pointer-events: none; }
.slide.is-on { opacity: 1; pointer-events: auto; }
.slide img { display: block; width: 100%; height: calc(67.5 * var(--ff-unit)); object-fit: contain; }
.slide .caption { text-align: center; }

.ss-nav {
  position: absolute;
  top: calc(33.75 * var(--ff-unit));
  translate: 0 -50%;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(87, 87, 87, 0.35);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.ss-nav svg { display: block; width: 30px; height: 30px; fill: none; stroke: rgba(255, 255, 255, 0.9); stroke-width: 1.5px; }
.ss-nav:active { opacity: 0.7; }
.ss-prev { left: 15px; }
.ss-next { right: 15px; }
.slideshow:hover .ss-nav,
.ss-nav:focus-visible { opacity: 1; }

/* The parachute that drifts across every page. */
.flying-layer { position: fixed; inset: 0; z-index: 5000; overflow: hidden; pointer-events: none; }
.flyer { position: absolute; left: 0; top: 0; width: 7.6vmax; height: auto; will-change: transform; transform: translate(-200vmax, -200vmax); }

.pc-credits {
  margin: 1.6rem 0 0;
  text-align: center;
  font: 500 1.1rem/1.4 'Golos Text', sans-serif;
  color: rgba(249, 247, 237, 0.45);
}

.pc-credits a { color: inherit; }

@media (max-width: 767px) {
  html { font-size: calc(2.24vw * 1.73); --pad-scale: 0.21; }
  .page-layout { max-width: 100%; }
  .column-set { grid-auto-flow: row; }
  .slide img { height: auto; }
  .ss-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .blink { animation: none; }
  .flying-layer { display: none; }
}

/* This site now lives as an archive inside ben-krueger.com: a way home, outside the frame. */
.pc-archive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 82%;
  margin: 0 auto;
  padding: 1.4rem calc(4.3rem * var(--pad-scale)) 0;
  font: 500 11px/1.3 'Golos Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: rgba(249, 247, 237, 0.5);
}

.pc-archive a {
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  gap: 6px;
  padding: 0.5em 1em;
  border: 1px solid rgba(249, 247, 237, 0.85);
  border-radius: 999px;
  color: #f9f7ed;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.pc-archive a:hover { background: #f9f7ed; color: #000; }

@media (max-width: 767px) {
  .pc-archive { max-width: 100%; padding: 12px 14px 0; font-size: 10px; }
  .pc-archive span { text-align: right; }
}

/* Only the gestures we handle: no double-tap zoom anywhere. */
html { touch-action: manipulation; }

/* Photos are for looking at: no long-press save sheet, no dragging them off the page. */
img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
