@font-face {
  font-family: "Monocraft";
  src: url("fonts/Monocraft.ttf");
}

@font-face {
  font-family: "Minimalistic History";
  src: url("fonts/MinimalisticHistory_Full_Rfixed_final.ttf");
}

:root {
  --background: #0a0a0a;
  --amber: #cacbcc;
  --amber-britght: #ffffff;
  --dim: #a4a3a4;
  --plate: rgba(10, 10, 10, 0.6);
}

html,
body {
  overscroll-behavior: none;
  height: 100%;
  overflow: hidden;
  touch-action: none;
}

body {
  font-family: "Monocraft", monospace;
  background: var(--background);
  color: var(--amber);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
}

a {
  color: var(--amber-britght);
  text-decoration: none;
}

header a {
  min-width: 7ch;
}

header a:nth-child(3) {
  min-width: 8ch;
}

.intro {
  position: fixed;
  inset: 0;
  display: grid;
  color: var(--amber-britght);
  place-items: center;
  background: var(--background);
  z-index: 10;
  transition: opacity 1s ease;
}

.intro.hide {
  opacity: 0;
  visibility: hidden;
}

.type {
  font-size: clamp(18px, 2.5vw, 28px);
  white-space: nowrap;
}

.caret {
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

pre.globe {
  font-family: inherit;
  font-size: clamp(12px, 1.5vw, 24px);
  line-height: 1;
  text-align: left;
  font-variant-ligatures: none;
  width: fit-content;
  margin: 0 auto;
}

pre.map {
  font-family: inherit;
  font-size: clamp(6px, 0.9vw, 16px);
  line-height: 1;
  text-align: left;
  font-variant-ligatures: none;
  width: fit-content;
  margin: 0 auto;
}

main {
  flex: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  overflow: clip;
}

* {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#cord {
  position: absolute;
  top: 0;
  left: 0;
  width: min(420px, 100vw);
  height: auto;
  pointer-events: none;
  z-index: 20;
}

html.light {
  --background: #e9e5da;
  --amber: #1c1c1c;
  --amber-britght: #000000;
  --dim: #6b6b6b;
  --plate: rgba(233, 229, 218, 0.6);
}

.globe-wrap {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.globe-links {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.globe-links a {
  position: absolute;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: auto;
  color: var(--amber-britght);
  background: var(--plate);
  padding: 2px 6px;
  text-decoration: none;
  white-space: pre;
  text-align: center;
  line-height: 1.1;
  font-size: 14px;
}

.globe-links a:hover {
  background: var(--amber-britght);
  color: var(--background);
}

.stack {
  align-self: center;
  width: min(700px, 90vw);
}

.downloads {
  margin: 20px 0 56px; 
  width: 100%;
  border: 1px dashed var(--amber);
}

.dl {
  display: block;
  padding: 14px 24px;
  color: var(--amber);
}

.dl + .dl {
  border-top: 1px dashed var(--amber);
}

@media (max-width: 600px) {
  .dl {
    padding: 12px 16px;
  }

  pre.globe {
    font-size: 10px;
  }
}

.dl:hover {
  background: var(--amber);
  color: var(--background);
}

.back {
  display: block;
  width: fit-content;
  margin: 32px auto;
  color: var(--amber-britght);
}

.back:hover {
  background: var(--amber-britght);
  color: var(--background);
}

.globe-links a:focus {
  outline: none;
}

h1 {
  font-size: clamp(28px, 3.5vw, 56px);
  text-transform: uppercase;
  margin: 24px 0 20px;
}

body.mod h1 {
  font-family: "Minimalistic History", "Monocraft", monospace;
  
  font-size: clamp(33px, 4.1vw, 65px);
}

.sub {
  color: var(--dim);
  margin: 0 0 48px;
}

.mod main {
  position: relative; 
  overflow: visible;
  align-content: start;
  grid-template-rows: auto 1fr;
  }

.license {
  position: absolute;
  right: 36px;
  bottom: 28px;
  color: var(--dim);
  font-size: 12px;
  white-space: nowrap;
}

.head {
  text-align: center;
  margin-top: 10vh;
  margin-top: max(16px, 10vh);
}

@media (max-width: 600px) {
  .mod main {
    align-content: start;
    grid-template-rows: auto 1fr;
    padding: 16px;
  }

  .license {
    position: static;
    white-space: normal;
    margin: 4px 0 24px;
    font-size: 11px;
    line-height: 1.45;
  }

  h1,
  .sub {
    margin-left: 19vw;
  }

  .sub {
    margin-bottom: 0;
  }

  .stack {
    width: 100%;
  }
}

.chto {
  margin: 0;
  padding: 0 24px;
  list-style: none;
  color: var(--dim);
  text-align: left;
}

.chto li + li {
  margin-top: 6px;
}

.chto-label {
  color: var(--amber);
  margin-bottom: 28px; 
  position: relative;
  top: 18px; 
}
