@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

:root {
  color-scheme: light dark;
  --accent: #22C55E;
  --ink: #111315;
  --paper: #F7F7F4;
  --muted: rgb(17 19 21 / .58);
  --faint: rgb(17 19 21 / .3);
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F7F7F4;
    --paper: #111315;
    --muted: rgb(247 247 244 / .62);
    --faint: rgb(247 247 244 / .3);
  }
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 500;
}

.card {
  width: min(92vw, 760px);
  min-height: 100svh;
  margin-inline: auto;
  padding-bottom: 6vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.title {
  margin: 0;
  min-height: 220px;
  display: flex;
  align-items: center;
  font: inherit;
}

.logo {
  display: flex;
  align-items: center;
  font-size: clamp(24px, 4.7vw, 44px);
  line-height: 1;
  white-space: nowrap;
}

.logo-mark {
  position: relative;
  flex: none;
  width: .8em;
  height: 1.46em;
  margin-right: .28em;
}

.logo-mark svg {
  position: absolute;
  inset: 0 auto auto 0;
  width: .55em;
  height: 1.46em;
  overflow: visible;
  fill: var(--accent);
}

.logo-tld {
  transition: color .18s ease;
}

.logo-tld.is-lit {
  color: var(--accent);
}

.contacts {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 12px;
  font-size: clamp(12px, 1.35vw, 15px);
  font-style: normal;
  line-height: 1;
  letter-spacing: .015em;
  color: var(--muted);
}

.contact-link {
  padding: 15px 2px;
  color: inherit;
  text-decoration: none;
  transition: color .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--accent);
}

.contact-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -8px;
  border-radius: 2px;
}

.contact-sep {
  color: var(--faint);
}

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

a.logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
  border-radius: 2px;
}

.term {
  max-width: 100%;
  font-size: clamp(12px, 1.5vw, 16px);
  line-height: 1.6;
  letter-spacing: .015em;
}

.term p {
  margin: 0;
  overflow-wrap: anywhere;
}

.term-prompt {
  color: var(--accent);
}

.term-out {
  color: var(--muted);
}

.term-caret {
  display: inline-block;
  width: .55em;
  height: 1.1em;
  margin-left: .1em;
  vertical-align: -.2em;
  background: var(--accent);
}

.term-caret-typing {
  display: none;
}

.term.is-typing .term-out,
.term.is-typing .term-idle {
  visibility: hidden;
}

.term.is-typing .term-caret-typing {
  display: inline-block;
}

.term.is-typing ~ .contacts {
  visibility: hidden;
}

.term + .contacts {
  margin-top: 21px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .card {
    padding-bottom: 4vh;
  }

  .contacts {
    margin-top: 9px;
  }
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .has-intro .logo {
    visibility: hidden;
    animation: reveal 0s 4s forwards;
  }

  .has-intro .logo.is-playing {
    visibility: visible;
    animation: none;
  }

  .has-intro .contacts {
    animation: fade-in .32s ease 3.5s both;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .term-idle .term-caret {
    animation: blink 1.06s steps(1) infinite;
  }

  .term.is-done ~ .contacts {
    animation: fade-in .32s ease both;
  }
}

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

@keyframes reveal {
  to { visibility: visible; }
}

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