@font-face {
  font-family: "Museo Slab";
  src: url('/__ext__/aHR0cHM6Ly9rYWN5LmxvbC9NdXNlb19TbGFiXzUwMC13ZWJmb250LnR0Zg') format("truetype");
  font-display: swap;
}

:root {
  --font-mono: Monaco, "Courier New", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace;
  --font-display: "Museo Slab", Georgia, "Times New Roman", serif;
  --color-text: #000;
  --color-accent: #56a0d3;
  --color-tagline: #ddd;
  --color-selection: #99badd;
  --color-selection-text: #fff;
  --shadow-strong: 2px 2px 2px #000;
  --page-padding: clamp(1.25rem, 2.5vw, 3rem);
  --terminal-max-width: 46rem;
  --terminal-size: clamp(1rem, 0.9rem + 1vw, 1.5rem);
  --response-size: 0.7em;
  --footer-size: clamp(2.75rem, 5vw + 1.5rem, 5rem);
  --tagline-size: clamp(0.8rem, 0.7rem + 0.35vw, 1rem);
  --motion-duration: 1000ms;
  --motion-easing: cubic-bezier(0.59, 0, 0, 1);
}

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

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 0.35rem;
  padding: var(--page-padding);
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
  overflow-x: hidden;
  font-family: var(--font-mono);
  color: var(--color-text);
  background-color: #cad2da;
  background-image: url('/__ext__/aHR0cHM6Ly9rYWN5LmxvbC9pY2VsYW5kLmpwZw');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

#terminal,
#footer,
#tagline {
  transform: translate3d(0, 0, 0);
}

#terminal {
  max-width: min(var(--terminal-max-width), 100%);
  font-size: var(--terminal-size);
  font-weight: 800;
  line-height: 1.35;
}

.entry + .entry {
  margin-top: 1rem;
}

.prompt {
  margin: 0;
  white-space: nowrap;
}

.response {
  display: block;
  margin-top: 0.45rem;
  margin-left: 0.85rem;
  font-size: var(--response-size);
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
}

.response-inline {
  max-width: min(58rem, 100%);
}

.line {
  display: block;
}

.indent-1 {
  padding-left: 2ch;
}

.indent-2 {
  padding-left: 4ch;
}

#footer {
  justify-self: end;
  align-self: end;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: var(--footer-size);
  line-height: 0.95;
  text-align: right;
  text-shadow: var(--shadow-strong);
}

#tagline {
  justify-self: end;
  margin: 0;
  color: var(--color-tagline);
  font-size: var(--tagline-size);
  text-align: right;
  text-shadow: var(--shadow-strong);
}

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

#footer a {
  color: var(--color-accent);
}

a:hover,
a:focus-visible {
  color: var(--color-accent);
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

::selection {
  color: var(--color-selection-text);
  background: var(--color-selection);
}

::-moz-selection {
  color: var(--color-selection-text);
  background: var(--color-selection);
}

@media (prefers-reduced-motion: no-preference) {
  #terminal,
  #footer,
  #tagline {
    transition:
      transform var(--motion-duration) var(--motion-easing),
      opacity 600ms ease-out;
    will-change: transform, opacity;
  }

  .js body:not(.is-ready) #terminal {
    opacity: 0;
    transform: translate3d(-16rem, 0, 0);
  }

  .js body:not(.is-ready) #footer {
    opacity: 0;
    transform: translate3d(0, -12rem, 0);
  }

  .js body:not(.is-ready) #tagline {
    opacity: 0;
    transform: translate3d(0, -8rem, 0);
  }
}

@media (max-width: 700px) {
  body {
    gap: 0.5rem;
    background-attachment: scroll;
  }

  #terminal {
    max-width: 100%;
    font-size: clamp(0.95rem, 0.85rem + 0.7vw, 1.2rem);
  }

  .prompt {
    white-space: normal;
  }

  #footer {
    width: 100%;
    font-size: clamp(2.35rem, 8vw, 4rem);
  }

  #tagline {
    width: 100%;
  }
}

@media (max-width: 500px) {
  body {
    padding: 1rem;
    padding-top: 1.5rem;
  }

  .entry + .entry {
    margin-top: 0.85rem;
  }

  .response {
    margin-left: 0.5rem;
  }

  .indent-1 {
    padding-left: 1.5ch;
  }

  .indent-2 {
    padding-left: 3ch;
  }
}
