@font-face {
  font-family: "Libre Caslon Text";
  src: url("assets/fonts/librecaslontext.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Ultra;
  src: url("assets/fonts/ultra.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Goudy Bookletter 1911";
  src: url("assets/fonts/goudybookletter1911.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "Goudy Bookletter 1911", serif;
}

a { color: inherit; text-decoration: none; }
a, button { cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.contact a:hover { text-decoration: underline; }

@media (hover: hover) and (pointer: fine) {
  body { cursor: url("assets/cursor-40.png") 20 11, auto; }
}

.film {
  position: relative;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
}

.film video {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  /* The active picture occupies about 69% of the archival frame. */
  height: 145%;
  transform: translateY(-50%);
  object-fit: cover;
}

.wordmark {
  position: relative;
  margin: 0;
  width: clamp(10rem, 18vw, 24rem);
}

.wordmark img { display: block; width: 100%; height: auto; }

.film-controls {
  position: absolute;
  display: flex;
  right: max(0.5rem, env(safe-area-inset-right));
  bottom: max(0.5rem, env(safe-area-inset-bottom));
}
.film-controls[hidden] { display: none; }

.film-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
}

.film-controls svg, .contact svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.play { fill: currentColor; }
#playback[data-playing="true"] .play,
#playback:not([data-playing="true"]) .pause,
#sound[data-audible="true"] .sound-off,
#sound:not([data-audible="true"]) .sound-on { display: none; }

.identity {
  --identity-padding: clamp(2.625rem, 5.75vw, 6.5rem);
  padding-block: var(--identity-padding) max(var(--identity-padding), env(safe-area-inset-bottom));
  padding-inline: max(6vw, env(safe-area-inset-left)) max(6vw, env(safe-area-inset-right));
  background: #000;
  color: #fff;
  text-align: center;
  font-size: clamp(1.25rem, 1.65vw, 2.25rem);
  font-weight: 400;
  font-synthesis: none;
}

.manifesto {
  margin: 0;
  line-height: 1.19;
}

.identity h2 {
  margin: clamp(0.7rem, 1.4vw, 1.575rem) 0 0;
  --establishment-size: clamp(1.5rem, 3.06vw, 4.6rem);
  font-family: "Libre Caslon Text", "Goudy Bookletter 1911", serif;
  font-size: calc(var(--establishment-size) * 1.083);
  font-weight: 400;
  line-height: calc(var(--establishment-size) * 1.2);
  letter-spacing: 0.003em;
}

.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.8em;
  margin-top: clamp(2rem, 4vw, 4.5rem);
  font-size: 0.75em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact svg {
  width: 1em;
  height: 1em;
}

@media (max-width: 640px) {
  .film video { object-position: 38% center; }

  .wordmark { width: clamp(8rem, 45vw, 15rem); }

  .manifesto {
    max-width: 34rem;
    margin-inline: auto;
    text-wrap: balance;
  }

  .manifesto br { display: none; }

  .identity h2 { --establishment-size: clamp(1.25rem, 5.4vw, 1.875rem); }
}
