:root {
  /* Default scheme (also used without JavaScript). scheme.js overrides
     these two on every load with one of its colour pairs. */
  --light: #e36d62;
  --dark: #3e007f;
  --font: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --pad-x: clamp(20px, 6.25vw, 120px);
  --pad-y: clamp(80px, 11.1vh, 120px);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--light);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 0.15em; }
a:focus-visible { outline: 2px solid var(--light); outline-offset: 4px; }

/* ---------- Home ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--pad-y) var(--pad-x);
  background: var(--dark);
  isolation: isolate;
}

/* Duotone backdrop: a layer filled with the light colour, masked by the
   greyscale image. White in the image shows the light colour, black lets the
   dark page colour through, greys mix the two. */
.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--light);
  -webkit-mask-image: url("assets/backdrop.jpg");
  mask-image: url("assets/backdrop.jpg");
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-mode: luminance;
}

/* Older browsers without luminance masks: approximate with blend modes. */
@supports not (mask-mode: luminance) {
  .hero__backdrop {
    -webkit-mask-image: none;
    mask-image: none;
    background: var(--light) url("assets/backdrop.jpg") center / cover no-repeat;
    background-blend-mode: multiply;
  }
  .hero__backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--dark);
    mix-blend-mode: lighten;
  }
}

/* The logo is drawn as a mask too, so it takes the current text colour. */
.logo {
  display: block;
  width: 100%;
  aspect-ratio: 877.725 / 138.68;
  background: currentColor;
  -webkit-mask: url("assets/proxima-logo.svg") center / 100% 100% no-repeat;
  mask: url("assets/proxima-logo.svg") center / 100% 100% no-repeat;
}

/* Keep the centre block vertically centred: an empty top row balances the nav. */
.hero::before { content: ""; display: block; height: 1em; }

.hero__logo {
  margin: 0;
  width: 70vw;
  max-width: 700px;
  line-height: 0;
}

.hero__nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: clamp(16px, 1.19vw, 22.8px);
  line-height: 1;
}

@media (min-width: 768px) {
  .hero__logo { width: 36vw; }
}

/* ---------- Imprint ---------- */

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
  font-size: clamp(14px, 0.9vw, 17px);
  line-height: 1.5;
}
.page__logo { display: block; width: min(60vw, 320px); margin: 0 0 3rem; line-height: 0; }
.page h1 { font-size: clamp(20px, 1.4vw, 27px); font-weight: 500; line-height: 1.2; margin: 0 0 2rem; }
.page h2 { font-size: 1em; font-weight: 500; margin: 2.5rem 0 0.5rem; }
.page p { margin: 0 0 1em; }
.page address { font-style: normal; }
.page__back { display: inline-block; margin-top: 3rem; }
