/* The hero of the start page with the photo of the front and the door sign. */

.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: clip;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 62%;
  filter: saturate(0.92) contrast(1.05);
}

/* The shade of the current site: dark at the top, the bottom and both sides, so the soft photo recedes and the text reads */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 8, 7, 0.58) 0%, rgba(9, 8, 7, 0.2) 26%, rgba(11, 26, 19, 0.48) 58%, rgba(9, 8, 7, 0.94) 100%),
    linear-gradient(90deg, rgba(9, 8, 7, 0.7) 0%, rgba(9, 8, 7, 0.15) 52%, transparent 70%),
    linear-gradient(270deg, rgba(9, 8, 7, 0.45) 0%, transparent 25%);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  left: var(--margin);
  right: var(--margin);
  bottom: clamp(28px, 5vh, 56px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px 48px;
}

.hero-zum {
  font-size: var(--t-head);
  margin: 0 0 4px 0.1em;
}

.hero-name {
  font: 700 clamp(84px, 11vw, 176px)/0.86 var(--font-sign);
  color: var(--gold);
  margin-left: -0.04em;
}

.hero-sentence {
  font-size: var(--t-lead);
  max-width: 30ch;
  margin: 28px 0 0;
}

.hero-side {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

/* The door sign: an enamel plate on a string that flips between open and closed */
.door-sign {
  --nail: 10px;
  position: absolute;
  z-index: 3;
  top: 100px;
  right: var(--margin);
  width: 220px;
  perspective: 1000px;
  transform-origin: 50% calc(var(--nail) / 2);
}

.door-sign-nail {
  position: absolute;
  z-index: 1;
  top: 2px;
  left: 50%;
  width: var(--nail);
  height: var(--nail);
  translate: -50% 0;
  border-radius: 50%;
  background: #8a7a5c;
}

/* String and plate turn together around the nail, like a real sign on a door */
.door-sign-body {
  transform-style: preserve-3d;
  transform-origin: 50% 0;
  transition: transform 1200ms cubic-bezier(0.65, 0, 0.35, 1);
}

.door-sign.is-closed .door-sign-body {
  transform: rotateY(180deg);
}

.door-sign-string {
  display: block;
  width: 100%;
  height: 56px;
  overflow: visible;
}

.door-sign-string path {
  fill: none;
  stroke: #b9a77f;
  stroke-width: 2;
}

.door-sign-card {
  position: relative;
  height: 116px;
  margin-top: -4px;
  transform-style: preserve-3d;
}

.door-sign-face {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  border-radius: 12px;
  backface-visibility: hidden;
  font-size: var(--t-small);
}

.door-sign-face b {
  font: 700 40px/1 var(--font-sign);
}

.door-sign-open {
  background: var(--paper);
  color: var(--green-deep);
  border: 3px solid var(--green-deep);
  outline: 6px solid var(--paper);
}

.door-sign-closed {
  background: var(--green-deep);
  color: var(--paper);
  border: 3px solid var(--paper);
  outline: 6px solid var(--green-deep);
  transform: rotateY(180deg);
}

.party-sticker {
  position: absolute;
  right: -18px;
  /* Low enough that the time on the sign stays free */
  bottom: -40px;
  margin: 0;
  padding: 8px 14px 6px;
  background: var(--blood);
  color: #fff;
  font: 700 26px/1 var(--font-sign);
  rotate: 8deg;
}

@media (max-width: 920px) {
  .hero-copy {
    grid-template-columns: 1fr;
  }

  .door-sign {
    top: 84px;
    width: 150px;
  }

  .door-sign-string {
    height: 40px;
  }

  .door-sign-card {
    height: 84px;
  }

  .door-sign-face b {
    font-size: 28px;
  }

  .party-sticker {
    font-size: 20px;
    right: -8px;
  }
}
