:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  background-color: #071013;
  color: var(--primary);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  --secondary: #f5f5f5;
  --as-color: #A7ACD9;
  --primary: #9E8FB2;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  padding: 3rem;
}

@media (prefers-color-scheme: light) {
  :root {
    background-color: #26547C;
    --secondary: #D3CDB1;
    --as-color: #D3CDB1;
    --primary: #D3CDB1;
  }
}

@media (prefers-reduced-motion) {
  * {
    transition: none;
  }
}

a {
  color: var(--as-color);
}

:root {
  --size: 1.2rem;
}

.ip-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ip-text {
  font-size: 1.5em;
}

.ip-container {
  display: flex;
  flex-direction: column;
  text-align: start;
  margin-bottom: 4vh;
  padding: 1rem;
  color: var(--primary);
}

.fade-in {
  animation: fade-in 300ms;
}

.reserve-space {
  min-height: 8.5rem;
}

h1 {
  padding-bottom: 5vh;
  font-size: 2.5em;
  line-height: 1.1;
  color: var(--as-color);
  font-weight: 600;
}

.ipv4,
.ipv6 {
  font-weight: 600;
  text-align: center;
}

.ipv4 {
  font-size: 3em;
}

.ipv6 {
  font-size: calc(min(5.2vw, 3rem));
}

.hostname {
  font-size: calc(min(4.8vw, 1.3rem));
  font-weight: 400;
  color: var(--secondary);
  opacity: 75%;
  text-align: center;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.as-name {
  font-size: 1em;
  font-size: calc((var(--size) + 0.590625vw) * 0.8);
}

.as-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 4px;
}
