@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-medium-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --carbon: #0E1114;
  --graphite: #22272E;
  --paper: #F2F2EE;
  --steel: #8A939E;
  --signal: #FF5B14;
  --sans: "Archivo", Arial, Helvetica, sans-serif;
  --mono: "IBM Plex Mono", Menlo, Consolas, monospace;
  --pad: max(1.5rem, env(safe-area-inset-left));
  --pad-r: max(1.5rem, env(safe-area-inset-right));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--carbon);
  color: var(--paper);
  color-scheme: dark;
  font-family: var(--sans);
  font-stretch: 100%;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--carbon);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(34, 39, 46, 0.95) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 39, 46, 0.95) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: calc(50% + 36px) calc(50% + 36px);
  -webkit-mask-image: radial-gradient(ellipse 78% 68% at 50% 46%, #000 15%, transparent 74%);
  mask-image: radial-gradient(ellipse 78% 68% at 50% 46%, #000 15%, transparent 74%);
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1.35rem var(--pad-r) 1.15rem var(--pad);
  animation: enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

header::after {
  content: "";
  position: absolute;
  left: var(--pad);
  right: var(--pad-r);
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(138, 147, 158, 0.28),
    rgba(138, 147, 158, 0.28) calc(50% - 18px),
    var(--signal) calc(50% - 18px),
    var(--signal) calc(50% + 18px),
    rgba(138, 147, 158, 0.28) calc(50% + 18px),
    rgba(138, 147, 158, 0.28)
  );
}

.coords,
footer p {
  margin: 0;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.coords {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: clamp(2.75rem, 8vh, 5rem) var(--pad-r) clamp(2.5rem, 7vh, 4.5rem) var(--pad);
}

h1 {
  margin: 0;
  padding: 0;
  line-height: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  animation: enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.logo {
  display: block;
  width: min(34rem, 100%);
  height: auto;
}

.descriptor {
  margin: 2.5rem 0 0;
  color: var(--paper);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.015em;
  line-height: 1.25;
  animation: enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

.contact {
  margin: 2.75rem 0 0;
  animation: enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.26s both;
}

.contact a {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  padding: 0.75rem 0.4rem;
  border-radius: 2px;
}

.contact a:hover {
  color: var(--signal);
}

.contact a:focus-visible {
  color: var(--signal);
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

footer {
  padding: 1.15rem var(--pad-r) max(1.35rem, env(safe-area-inset-bottom)) var(--pad);
  animation: enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both;
}

footer::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 1.15rem;
  background: rgba(138, 147, 158, 0.28);
}

footer p {
  letter-spacing: 0.06em;
  text-align: center;
}

.place {
  white-space: nowrap;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .descriptor {
    margin-top: 2.25rem;
  }

  .contact {
    margin-top: 2.25rem;
  }
}

@media (max-width: 380px) {
  .coords,
  footer p {
    letter-spacing: 0.06em;
    font-size: 0.6875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

::selection {
  background: var(--signal);
  color: var(--carbon);
}
