:root {
  --bg: #090b0a;
  --text: #f1f5f2;
  --muted: #818983;
  --line: #2a2f2c;
  --prompt: #8dffae;
  --page-x: 40px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
  grid-template-rows: 64px 1fr 56px;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--prompt);
  color: var(--bg);
}

a {
  color: inherit;
}

.terminal-bar,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-x);
  color: var(--muted);
  font-size: 12px;
  text-transform: lowercase;
}

.terminal-bar {
  border-bottom: 1px solid var(--line);
}

footer {
  border-top: 1px solid var(--line);
}

.session {
  display: flex;
  width: 100%;
  max-width: 980px;
  flex-direction: column;
  justify-content: center;
  padding: 48px var(--page-x);
  gap: 30px;
}

.entry,
.command,
.output,
.identity h1,
.identity p {
  margin: 0;
}

.command {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.prompt {
  color: var(--prompt);
  font-weight: 700;
}

.output {
  margin-top: 10px;
  margin-left: 26px;
}

.identity {
  display: flex;
  align-items: end;
  gap: 44px;
}

.identity h1 {
  color: var(--text);
  font-size: 80px;
  font-weight: 700;
  line-height: 0.9;
}

.identity p {
  color: var(--muted);
}

.email {
  display: block;
  width: max-content;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

.email:hover,
.email:focus-visible {
  color: var(--prompt);
  text-decoration-color: var(--prompt);
}

.input-line {
  min-height: 24px;
}

.cursor {
  display: inline-block;
  width: 9px;
  height: 17px;
  background: var(--prompt);
  animation: blink 1.1s steps(1, end) infinite;
}

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

@media (max-width: 700px) {
  :root {
    --page-x: 20px;
  }

  body {
    font-size: 13px;
    grid-template-rows: 56px 1fr 48px;
  }

  .session {
    justify-content: flex-start;
    padding-top: 54px;
    padding-bottom: 32px;
    gap: 28px;
  }

  .identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .identity h1 {
    font-size: 48px;
  }

  .terminal-bar,
  footer {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
