:root {
  --header-font-size: 2.5rem;
  --header-padding: 3rem 20rem;
  --footer-font-size: 1rem;
  --home-font-size: 2.5rem;
  --home-header-size: 7rem;
  --content-header-size: 4rem;
  --content-font-size: 1.5rem;
  --content-padding: 0 20rem;
}

@media (orientation: portrait) {
  :root {
    --header-font-size: 1.5rem;
    --header-padding: 3rem 5rem;
    --content-padding: 0 5rem;
  }
}

body {
  display: flex;
  min-height: 100vh;
  margin: 0;
  flex-direction: column;
  background-color: #45a29e;
}

header {
  background: #1f2833;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--header-padding);
  font-family: monospace;
  font-weight: bold;
  font-size: var(--header-font-size);
  text-align: center;
}

header a, header a:visited {
  color: #66fcf1;
  text-decoration: none;
}

a, a:visited {
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
}

.logo__cmd__container {
  display: flex;
}

.logo__cmd {
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: typing 1s forwards;
}

.logo__cmd__cursor {
  border-right: .75em solid #66fcf1;
  animation: cursor 1s infinite;
}

nav.menu {
  margin-left: auto;
}

.menu__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 .5rem;
  list-style: none;
}

.menu__inner > li {
  margin: 0 1rem;
}

.menu__inner > li > a:hover {
  text-decoration: underline;
}

.home__content {
  display: flex;
  flex-direction: column;
  font-size: var(--home-font-size);
  text-align: center;
  font-weight: bold;
}

.main .home__content > h1 {
  font-size: var(--home-header-size);
}

.main__content {
  padding-top: 2rem;
  max-width: 100%;
}

.main {
  display: flex;
  flex-direction: column;
  flex: 1 auto;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: var(--content-padding);
  font-size: var(--content-font-size);
  font-family: Inter, monospace;
}

.main h1 {
  font-size: var(--content-header-size);
}

.main h3, .main h4, .main h5, .main h6 {
  margin: 0;
}

.main em {
  font-weight: bold;
}

.main hr {
  margin: 3rem 0;
}

.main a, .main a:visited, .footer a, .footer a:visited {
  color: black;
  text-decoration: none;
}

.main pre {
  display: flex;
}

.main pre code {
  border-radius: 1rem;
}

mark {
  background-color: #1f2833;
  color: #bac8c7;
  padding: 2px 5px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1rem;
}

:not(pre) > code {
  background-color: #1f2833;
  color: white;
  padding: 1px 5px;
  border-radius: 5px;
}

.footer {
  flex-grow: 0;
  padding: 20px 40px;
  font-size: var(--footer-font-size);
  font-family: monospace;
  font-weight: bold;
  text-align: center;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes cursor {
  0% { opacity: 0 }
  50% { opacity: 1 }
  100% { opacity: 0 }
}
