:root {
  color-scheme: dark;
  --text: #fff8ef;
  --muted: #ead9c7;
  --accent: #f2c879;
  --accent-strong: #ffffff;
  --shadow: rgba(15, 18, 19, 0.72);
  --button-bg: rgba(16, 23, 24, 0.44);
  --button-border: rgba(255, 248, 239, 0.3);
  --button-active: rgba(242, 200, 121, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #151817;
  color: var(--text);
  font-family:
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: url("../images/IMG_8925_FamGehrmann-Hollywood-2024-B.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  content: "";
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 16, 17, 0.76), rgba(13, 16, 17, 0.38) 54%, rgba(13, 16, 17, 0.18)),
    linear-gradient(0deg, rgba(13, 16, 17, 0.52), rgba(13, 16, 17, 0.1) 44%, rgba(13, 16, 17, 0.48));
  content: "";
}

.photo-focus {
  display: none;
}

.site-shell {
  position: relative;
  z-index: 0;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(3rem, 8vh, 6rem);
  padding: clamp(1.25rem, 4vw, 4rem);
}

.language-switcher {
  display: flex;
  width: min(100%, 27rem);
  align-self: flex-end;
  justify-content: flex-end;
  gap: 0.5rem;
}

.language-button {
  min-height: 2.6rem;
  border: 1px solid var(--button-border);
  border-radius: 999px;
  padding: 0.62rem 0.95rem;
  background: var(--button-bg);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1;
  text-shadow: 0 1px 2px var(--shadow);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.language-button:hover,
.language-button:focus-visible {
  border-color: rgba(255, 248, 239, 0.72);
  background: rgba(255, 248, 239, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.language-button.is-active {
  border-color: rgba(242, 200, 121, 0.76);
  background: var(--button-active);
  color: var(--accent-strong);
}

.welcome {
  width: min(100%, 43rem);
  padding-block: clamp(2rem, 9vh, 6rem);
  text-shadow: 0 0.25rem 1.4rem var(--shadow);
}

.kicker {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: clamp(0.86rem, 1.6vw, 1rem);
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 12vw, 9.4rem);
  font-weight: 800;
  line-height: 0.9;
}

.welcome-text {
  max-width: 38rem;
  margin: clamp(1.2rem, 3vw, 1.8rem) 0 1.1rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.5vw, 1.45rem);
  line-height: 1.55;
}

.email-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  border-bottom: 2px solid rgba(242, 200, 121, 0.7);
  color: var(--text);
  font-size: clamp(1rem, 2.1vw, 1.18rem);
  font-weight: 700;
  text-decoration: none;
}

.email-link:hover,
.email-link:focus-visible {
  border-color: var(--text);
  color: var(--accent);
  outline: none;
}

@media (max-width: 680px) {
  body::before {
    background-position: center;
    background-size: cover;
    filter: blur(12px) saturate(0.94);
    transform: scale(1.08);
  }

  .photo-focus {
    position: fixed;
    top: 50%;
    left: 0;
    z-index: -2;
    display: block;
    width: 100vw;
    aspect-ratio: 1672 / 941;
    transform: translateY(-50%);
    background-image: url("../images/IMG_8925_FamGehrmann-Hollywood-2024-B.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    mask-image:
      linear-gradient(to bottom, transparent 0, black 1.35rem, black calc(100% - 1.35rem), transparent 100%),
      linear-gradient(to right, transparent 0, black 1.35rem, black calc(100% - 1.35rem), transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0, black 1.35rem, black calc(100% - 1.35rem), transparent 100%),
      linear-gradient(to right, transparent 0, black 1.35rem, black calc(100% - 1.35rem), transparent 100%);
    -webkit-mask-composite: source-in;
  }

  body::after {
    background:
      linear-gradient(0deg, rgba(12, 15, 16, 0.76), rgba(12, 15, 16, 0.32)),
      linear-gradient(90deg, rgba(12, 15, 16, 0.72), rgba(12, 15, 16, 0.34));
  }

  .site-shell {
    justify-content: flex-end;
    gap: 2.5rem;
    padding: 1rem;
  }

  .language-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    width: auto;
    justify-content: center;
  }

  .language-button {
    flex: 1 1 0;
    max-width: 7.2rem;
    padding-inline: 0.55rem;
    font-size: 0.82rem;
  }

  .welcome {
    padding-block: 7.5rem 1.5rem;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: clamp(1.5rem, 8vw, 2.8rem);
    white-space: nowrap;
    overflow-x: auto;
    text-overflow: ellipsis;
    word-break: normal;
    hyphens: none;
  }
  .language-switcher {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    width: 100%;
    max-width: 16rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  .language-button {
    max-width: 100%;
    width: 100%;
    font-size: 0.9rem;
  }
}

@supports (-webkit-touch-callout: none) {
  body::before {
    background-attachment: scroll;
  }
}
