/* Colour that clings: a balloon festival's opening picture, grey like an old print. The pointer stirs a fluid that
   carries the colour back in; the colour stays longest on what is closest, and the layers shift a little with the
   pointer, as if the picture had depth. */
:root {
  --ink: #12141a;           /* the text */
  --paper: #f6f1e8;         /* the text on the picture */
  --muted: rgba(246, 241, 232, 0.78);
  --edge: clamp(18px, 3.2vw, 48px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: clip;
}

body {
  background: #1b1d24;
  color: var(--paper);
  font-family: 'Barlow', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px var(--edge);
  font-size: 14px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.brand {
  font-family: 'Fraunces Variable', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
}

.bar__nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
}

.bar__nav a {
  transition: opacity 0.2s;
}

@media (hover: hover) {
  .bar__nav a:hover {
    opacity: 0.6;
  }
}

.bar a:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- the picture */
.stage {
  position: relative;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  /* the finger draws on the picture instead of scrolling the page */
  touch-action: none;
}

.stage__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stage__copy {
  position: absolute;
  left: var(--edge);
  bottom: clamp(26px, 6vh, 64px);
  max-width: min(560px, 60vw);
  pointer-events: none;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35);
}

.kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.title {
  margin: 0;
  font-family: 'Fraunces Variable', Georgia, serif;
  font-size: clamp(52px, 7.4vw, 124px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.title em {
  font-style: italic;
  font-weight: 400;
}

.note {
  margin: 18px 0 0;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 760px) {
  .bar__nav {
    display: none;
  }

  .stage__copy {
    right: var(--edge);
    max-width: none;
  }

  .title {
    font-size: 15vw;
  }
}
