/* Placeholder page for the domain until the website goes live (website/README.md, "Platzhalterseite").
   The key visual (logo and lettering on the moss wall) is shown whole on every screen: a "stage" in the picture's
   own shape, as large as the window allows. The text sits inside it, in the calm lower part of the picture, so it
   never covers the lettering. What the stage leaves free shows the same picture, blurred and darker.
   No scripts, no inline styles, nothing loaded from other servers. */

@font-face {
  font-family: Anton;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/anton-latin.woff2") format("woff2");
}

@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --night: #070c06;
  --bone: #efe8d8;
  --leaf: #9ccf45;
  --wood: linear-gradient(#f4e6c4, #d2b07a 55%, #93703f);
  --art: url("img/bald-quer.webp");

  color-scheme: dark;
}

/* upright screens (phones, tablets held upright): the picture made for that shape */
@media (max-aspect-ratio: 1/1) {
  :root {
    --art: url("img/bald-hoch.webp");
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: Archivo, Arial, system-ui, sans-serif;
}

.soon {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
}

.soon::before {
  content: "";
  position: absolute;
  inset: -48px; /* the blur would leave a light seam at the edges */
  z-index: -1;
  background: var(--art) center / cover no-repeat;
  filter: blur(28px) brightness(0.4);
}

.soon__stage {
  display: flex;
  width: min(100vw, 150vh);
  width: min(100vw, 150svh);
  aspect-ratio: 3 / 2;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 4% 7%;
  background: var(--art) center / cover no-repeat;
  container-type: inline-size;
  text-align: center;

  /* soft edges where the stage meets the blurred surroundings */
  mask-image:
    linear-gradient(to right, transparent, #000 5%, #000 95%, transparent),
    linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}

@media (max-aspect-ratio: 1/1) {
  .soon__stage {
    width: min(100vw, 66.667vh);
    width: min(100vw, 66.667svh);
    aspect-ratio: 2 / 3;
    padding-bottom: 9%;
  }
}

/* Phones are taller than the picture: it fills the screen instead. Logo and lettering lie in the middle half of
   its width, so the sides it loses hold nothing but wall. */
@media (max-aspect-ratio: 2/3) {
  .soon__stage {
    width: 100vw;
    min-height: 100vh;
    min-height: 100svh;
    aspect-ratio: auto;
  }
}

.soon__title {
  margin: 0;
  padding-top: 0.1em; /* keeps the top of the letters inside the clipped gradient */
  background: var(--wood);
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0.04em 0 rgb(40 26 10 / 85%)) drop-shadow(0 0.15em 0.4em rgb(0 0 0 / 75%));
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(1.75rem, 5vw, 4.5rem); /* browsers without container units */
  font-size: 5.4cqi;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  text-wrap: balance;
}

.soon__meta {
  margin: 0.9em 0 0;
  color: var(--leaf);
  font-size: clamp(0.85rem, 1.8vw, 1.5rem);
  font-size: 1.9cqi;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-shadow: 0 2px 10px #000;
  text-transform: uppercase;
}

@media (max-aspect-ratio: 1/1) {
  .soon__title {
    font-size: 10cqi;
  }

  .soon__meta {
    font-size: 3.9cqi;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
