:root {
  --color-cream: #f4f0e7;
  --color-white: #fffdf8;
  --color-dark: #11150f;
  --color-accent: #d8b27c;
  --page-padding: clamp(1.5rem, 5vw, 5.5rem);
  --header-height: 7rem;
  color-scheme: dark;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  min-height: 100%;
  background: var(--color-dark);
}

body {
  min-width: 20rem;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--color-white);
  background: var(--color-dark);
  overflow-x: hidden;
}

.page {
  position: relative;
  isolation: isolate;
}

.page::before,
.page::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
}

.page::before {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.page::after {
  z-index: -1;
}

.page--home::before {
  background-image: url("header.jpg");
  background-position: center center;
}

.page--home::after {
  background:
    linear-gradient(90deg, rgb(8 12 8 / 88%) 0%, rgb(8 12 8 / 62%) 34%, rgb(8 12 8 / 8%) 72%),
    linear-gradient(180deg, rgb(4 6 4 / 28%) 0%, transparent 30%, rgb(4 6 4 / 18%) 100%);
}

.page--impressum::before {
  background-image: url("impressum.jpg");
  background-position: center center;
}

.page--impressum::after {
  background:
    linear-gradient(90deg, rgb(18 9 4 / 80%) 0%, rgb(18 9 4 / 52%) 40%, rgb(18 9 4 / 4%) 72%),
    linear-gradient(180deg, rgb(10 5 2 / 30%) 0%, transparent 38%, rgb(10 5 2 / 22%) 100%);
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.25em;
}

a:focus-visible {
  outline: 0.15rem solid var(--color-accent);
  outline-offset: 0.35rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  color: var(--color-dark);
  background: var(--color-cream);
  border-radius: 0.2rem;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem var(--page-padding);
  background: linear-gradient(180deg, rgb(5 7 5 / 38%), transparent);
}

.brand {
  font-family: Baskerville, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.015em;
  text-decoration: none;
}

.site-header--nav-only {
  justify-content: flex-end;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.site-nav a {
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 0.08rem;
  content: "";
  background: currentcolor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  padding: calc(var(--header-height) + 2rem) var(--page-padding) 4rem;
}

.hero__content {
  width: min(100%, 43rem);
  margin-top: 1.5rem;
}

.hero h1 {
  margin: 0;
  font-family: Baskerville, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__content h1 {
  color: rgb(255 253 248 / 84%);
}

.roles {
  display: grid;
  gap: clamp(0.35rem, 0.8vh, 0.7rem);
  margin: clamp(2rem, 5vh, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.roles li {
  font-size: clamp(1.15rem, 2.15vw, 1.75rem);
  font-weight: 350;
  line-height: 1.25;
  letter-spacing: 0.015em;
}

.hero--impressum {
  align-items: flex-end;
}

.imprint-content {
  width: fit-content;
  max-width: 100%;
  text-shadow: 0 0.15rem 1.5rem rgb(0 0 0 / 42%);
}

.imprint-content h1 {
  color: rgb(255 253 248 / 84%);
  font-size: clamp(1.75rem, 2.6vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.015em;
}

.contact {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.2rem;
}

.contact__label {
  color: rgb(255 253 248 / 62%);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact__address {
  width: fit-content;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

@media (prefers-reduced-motion: no-preference) {
  .brand,
  .site-nav,
  .hero__content,
  .imprint-content {
    animation: fade-in 700ms both;
  }

  .site-nav {
    animation-delay: 80ms;
  }

  .hero__content,
  .imprint-content {
    animation-delay: 140ms;
  }

  @keyframes fade-in {
    from {
      opacity: 0;
      transform: translateY(0.6rem);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 48rem) {
  :root {
    --header-height: 5.5rem;
    --page-padding: clamp(1.3rem, 6vw, 2.5rem);
  }

  .page--home::before {
    background-position: 64% center;
  }

  .page--home::after {
    background:
      linear-gradient(180deg, rgb(5 8 5 / 42%) 0%, rgb(5 8 5 / 7%) 32%, rgb(5 8 5 / 88%) 78%, rgb(5 8 5 / 96%) 100%),
      linear-gradient(90deg, rgb(5 8 5 / 26%), transparent 72%);
  }

  .page--impressum::before {
    background-position: 55% center;
  }

  .page--impressum::after {
    background: linear-gradient(180deg, rgb(12 6 3 / 38%) 0%, rgb(12 6 3 / 8%) 32%, rgb(12 6 3 / 90%) 86%, rgb(12 6 3 / 96%) 100%);
  }

  .site-header {
    gap: 1rem;
    padding-top: max(1.1rem, env(safe-area-inset-top));
  }

  .site-nav {
    gap: 1.15rem;
  }

  .site-nav a {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .hero {
    align-items: flex-end;
    padding-bottom: max(2.5rem, calc(env(safe-area-inset-bottom) + 1.5rem));
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .hero__content {
    margin-top: 0;
  }

  .roles {
    gap: 0.3rem;
    margin-top: 1.8rem;
  }

  .roles li {
    font-size: clamp(1.05rem, 5vw, 1.35rem);
  }

  .hero--impressum {
    align-items: flex-end;
  }

  .imprint-content h1 {
    font-size: clamp(1.7rem, 8vw, 2.1rem);
  }

  .contact {
    margin-top: 1rem;
  }
}

@media (max-height: 42rem) and (min-width: 48.01rem) {
  .hero {
    padding-top: var(--header-height);
    padding-bottom: 2rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 10vh, 4.5rem);
  }

  .roles {
    gap: 0.2rem;
    margin-top: 1.5rem;
  }

  .roles li {
    font-size: clamp(1rem, 3.3vh, 1.35rem);
  }

  .imprint-content h1 {
    font-size: clamp(1.6rem, 6vh, 2rem);
  }

  .contact {
    margin-top: 1rem;
  }
}
