/* font */
@font-face {
  font-family: "SourceSans3";
  src: url("fonts/SourceSans3-Regular.otf.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SourceSans3";
  src: url("fonts/SourceSans3-Medium.otf.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SourceSans3";
  src: url("fonts/SourceSans3-Bold.otf.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* basics */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    "SourceSans3",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  line-height: 1.6;
  color: #fff;
  background-color: #1f1f1f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 800px;
  padding: 2rem;
  margin: 0 auto;
}

/* footer */
.site-footer {
  margin-top: 4rem;
  padding: 2rem;
  border-top: 1px solid #e5e5e5;
  text-align: center;
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* main page */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo {
  max-width: 300px;
  width: 100%;
  height: auto;
}

.back-link {
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  gap: 0.2rem;
}

.back-link .icon {
  width: 1rem;
  height: 1rem;
}

@media screen and (max-width: 640px) {
  h1 {
    font-size: 1em;
  }
}
