@font-face {
  font-family: "DM Sans";
  src: url("./dm-sans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --plum: #452242;
  --red: #a5001e;
  --accent: #f91c28;
  --ink: #252026;
  --line: #e8e0e6;
  --gutter: clamp(1rem, 3vw, 2.25rem);
  background: #f2f2f2;
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1300px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  padding-inline: var(--gutter);
}

.topbar {
  min-height: 5.25rem;
  padding-block: .75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #171318;
  text-decoration: none;
}

.brand img {
  flex: none;
  width: 1.65rem;
  height: 2.65rem;
}

.wordmark {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
}

.product-label {
  padding-inline-start: .6rem;
  border-inline-start: 1px solid var(--line);
  color: var(--plum);
  font-size: .82rem;
  font-weight: 700;
}

.language {
  min-height: 2.75rem;
  padding: .25rem .5rem;
  border: 0;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
}

.language:hover {
  text-decoration: underline;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 14rem;
  overflow: hidden;
  background: linear-gradient(90deg, #201321ed 0%, #201321a8 62%, #2013213a 100%),
    linear-gradient(0deg, #20132193, #20132100 70%),
    url("./hero-austria.jpg") center 54% / cover;
  background-color: var(--plum);
  color: #fff;
}

.hero h1 {
  position: relative;
  max-width: 24ch;
  margin: 0;
  padding: 1.65rem var(--gutter);
  font-size: clamp(2rem, 5.5vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.hero-dots {
  --dot: clamp(1rem, 3.6vw, 2.5rem);
  position: absolute;
  top: 50%;
  right: 14%;
  display: grid;
  gap: 2px;
  transform: translateY(-50%);
}

.hero-dots span {
  width: var(--dot);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
}

.hero-dots span:is(:nth-child(2), :nth-child(4)) {
  transform: translateX(var(--dot));
}

.hero-dots span:nth-child(3) {
  transform: translateX(calc(2 * var(--dot)));
}

.content {
  padding: 1.75rem var(--gutter) 2rem;
}

.tenant-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: .75rem;
  max-width: 44rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tenant-list:empty {
  display: none;
}

.tenant-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  height: 100%;
  min-height: 3.375rem;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--plum);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.tenant-list a:is(:hover, :focus-visible) {
  border-color: var(--accent);
  color: var(--red);
  text-decoration: underline;
}

.brand:focus-visible,
.language:focus-visible,
.tenant-list a:focus-visible,
.footer a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.footer {
  margin-block-start: auto;
  padding-block: .8rem;
  background: var(--plum);
  color: #fceced;
  font-size: .8rem;
}

.footer a {
  color: inherit;
  font-weight: 700;
}

@media (max-width: 600px) {
  .wordmark {
    font-size: 1.9rem;
  }

  .product-label {
    font-size: .75rem;
  }

  .hero {
    min-height: 11rem;
  }

  .hero-dots {
    top: 37%;
    right: 19%;
    opacity: .85;
  }

  .content {
    padding-block-start: 1.3rem;
  }
}
