@font-face {
  font-family: 'Sohne';
  src: url('https://sohne-font.s3.us-east-2.amazonaws.com/Sohne-Buch.otf')
    format('opentype');
  font-weight: 400;
  font-style: 'normal';
}

@font-face {
  font-family: 'Sohne';
  src: url('https://sohne-font.s3.us-east-2.amazonaws.com/Sohne-Dreiviertelfett.otf')
    format('opentype');
  font-weight: 700;
  font-style: 'normal';
}

:root {
  --c-bg: #0d1212;
  --c-footer-bg: #293338;
  --c-header-bg: #1d252c;
  --c-text: #e9ecec;
  --c-light-text: #e9ecec;

  font-family: Sohne, system-ui, sans-serif;
  font-size: 1rem;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  padding: 0;
}

main {
  flex-grow: 1;
  font-size: 1.5rem;
  margin-top: 20vh;
  padding: 0 2rem;
  text-align: center;
}
main a,
main a:visited {
  color: currentColor;
  font-weight: bold;
  text-decoration: underline;
}

header,
footer {
  align-items: center;
  color: var(--c-light-text);
  display: flex;
  z-index: 1;
}

header {
  background: var(--c-header-bg);
  display: flex;
  flex-wrap: wrap;
  padding: 1rem 0 1rem 30px;
}

header svg {
  fill: var(--c-light-text);
  width: 8rem;
}

header a,
header a:visited {
  color: var(--c-light-text);
  text-decoration: none;
  margin-right: 2rem;
  padding: 0.5rem 0;
}

footer {
  background: var(--c-footer-bg);
  height: 126px;
  padding-left: 45px;
}

.waves {
  filter: invert(100%);
  left: -112px;
  position: absolute;
  top: 46vh;
  max-width: 2400px;
  width: 147vw;
}

small {
  font-size: 0.5rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

@media (prefers-color-scheme: light) {
  :root {
    --c-bg: #fff;
    --c-text: #293338;
  }
  .waves {
    filter: invert(0%);
  }
}

@media (width < 1200px) {
  main {
    font-size: 1rem;
  }

  .waves {
    top: 60vh;
  }
}

@media (height < 640px) {
  main {
    margin-top: 10vh;
  }
}
