:root {
  color-scheme: dark;
  background: #53636d;
  color: #a0b0b8;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body { position: fixed; inset: 0; }

main {
  height: 100%;
  height: 100svh;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.composition {
  position: relative;
  height: 100%;
  min-height: 16rem;
  container-type: size;
}

/* All three centres and their relative sizes follow the Illustrator artboard. */
.wordmark, .practice, .contact {
  --logo-width: min(76%, 57.81vh);
  --logo-width: min(76cqw, 57.81cqh);
  position: absolute;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}

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

.wordmark {
  top: 35.725%;
  left: 50.058%;
  width: var(--logo-width);
}

.practice {
  top: 55.76%;
  width: max(8rem, calc(var(--logo-width) * .66862));
}

.contact {
  top: 79.51%;
  display: grid;
  place-items: center;
  width: max(10.5rem, calc(var(--logo-width) * .453));
  min-height: 48px;
  max-width: 90%;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.contact:focus { outline: none; }
.contact:focus-visible img, .contact:active img { filter: brightness(1.35); }

@media (hover: hover) {
  .contact:hover img { filter: brightness(1.25); }
}

@media (prefers-contrast: more) {
  img { filter: brightness(1.42); }
}

@media (forced-colors: active) {
  .composition { background: #53636d; forced-color-adjust: none; }
}
