* {
  box-sizing: border-box;
}

html {
  background: #eef4f8;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #eef4f8;
}

main {
  width: 600px;
  max-width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  background: white;
}

.site-header {
  display: block;
  width: calc(100% + 4rem);
  height: 170px;
  margin-left: -2rem;
  object-fit: cover;
}

.profile-photo {
  position: relative;
  display: block;
  width: 100px;
  height: 100px;
  margin-top: -50px;
  object-fit: cover;
  border: 5px solid white;
  border-radius: 12px;
}

main > a + p {
  margin-top: 2rem;
}

main img {
  width: 80px;
  height: auto;
}

.links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 2rem;
}

.route-links {
  flex-direction: row;
  align-items: center;
}

.terminal-content {
  margin-top: 2rem;
}

.terminal-starters {
  display: grid;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.terminal-starter {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.75rem;
}

.terminal-starter-label {
  color: #66737f;
  font-size: 0.85rem;
}

.terminal-starter code {
  overflow-wrap: anywhere;
  color: #26323d;
  font-size: 0.85rem;
}

.terminal-implemented-toggle {
  padding: 0;
  color: #0000ee;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.terminal-implemented-list {
  min-width: 0;
  max-width: 100%;
  margin: -0.5rem 0 1rem;
  padding: 0.5rem 0.75rem;
  overflow-wrap: anywhere;
  color: #52606d;
  background: #f5f6f7;
  border: 1px solid #e5e7eb;
}

.terminal-implemented-list > div:first-child {
  margin-bottom: 1.35em;
}

.terminal-command-flash.is-flashing {
  animation: terminal-command-flash 5400ms ease-in-out both;
}

.terminal-command-flash--delayed.is-flashing {
  animation-delay: 240ms;
}

@keyframes terminal-command-flash {
  0% {
    color: inherit;
  }

  6%, 28% {
    color: #f33f8f;
  }

  50%, 100% {
    color: inherit;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-command-flash.is-flashing {
    animation: none;
  }
}

@media (max-width: 420px) {
  .terminal-starter {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.feature-progress {
  color: #d22;
}

.virtual-terminal {
  overflow: hidden;
  margin-top: 2rem;
  color: #1f2933;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  line-height: 1.35;
  letter-spacing: normal;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  box-shadow: 0 12px 24px rgb(0 0 0 / 16%);
}

.terminal-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.5rem 0.75rem;
  background: #e8edf2;
  border-bottom: 1px solid #cbd5e1;
}

.terminal-title {
  position: absolute;
  left: 50%;
  color: #52606d;
  font-size: 0.7rem;
  transform: translateX(-50%);
  white-space: nowrap;
}

.terminal-screen {
  height: 18rem;
  padding: 0.75rem 0.5rem;
  color: #1f2933;
  background: #ffffff;
  box-sizing: border-box;
  overflow-y: auto;
}

.terminal-output > div {
  white-space: pre-wrap;
}

.terminal-process-hint {
  color: #52606d;
}

.terminal-command {
  margin-left: 0.35em;
}

.terminal-command-line,
.terminal-input-line {
  display: flex;
  align-items: center;
  min-height: 1.35em;
}

.terminal-input-line[hidden] {
  display: none;
}

.terminal-command-line,
.terminal-input-line {
  position: relative;
}

.terminal-command-line::before,
.terminal-command-line::after {
  position: absolute;
  color: #7c8792;
  pointer-events: none;
}

.terminal-command-line::before {
  content: "[";
  left: -0.5rem;
}

.terminal-command-line::after {
  content: "]";
  right: -0.5rem;
}

.terminal-input {
  width: 0.2ch;
  min-width: 0.2ch;
  height: 1.35em;
  padding: 0;
  color: inherit;
  font: inherit;
  line-height: 1.35em;
  background: transparent;
  border: 0;
  outline: 0;
  caret-color: transparent;
  appearance: none;
}

.terminal-prompt + .terminal-input {
  margin-left: 0.35em;
}

.terminal-input:focus {
  outline: 0;
}

.terminal-input::selection {
  color: #ffffff;
  background: #1f2933;
}

.terminal-caret {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  width: calc(0.45rem + 2px);
  height: calc(1em + 2px);
  color: #000000;
  font: inherit;
  line-height: 1em;
  text-align: center;
  background: #ffffff;
  border: 1px solid #000000;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  user-select: none;
}

.terminal-caret.is-positioned {
  opacity: 1;
}

.terminal-input-line:focus-within .terminal-caret {
  color: #ffffff;
  background: #000000;
}

.terminal-editor {
  display: flex;
  flex-direction: column;
  min-height: 14rem;
  gap: 0.35rem;
  padding: 0.2rem;
}

.terminal-editor-header,
.terminal-editor-status,
.terminal-editor-footer {
  min-height: 1.35em;
  color: #52606d;
}

.terminal-editor-status {
  color: #1f2933;
}

.terminal-editor-textarea {
  flex: 1;
  width: 100%;
  min-height: 10rem;
  padding: 0.35rem;
  color: inherit;
  font: inherit;
  line-height: inherit;
  resize: none;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  outline: 0;
}

.terminal-editor-textarea:focus {
  border-color: #52606d;
}

.pdf-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pdf-links details {
  width: 100%;
}

.pdf-links summary {
  cursor: pointer;
  color: #0000ee;
  list-style: none;
  text-decoration: underline;
}

.pdf-links summary::-webkit-details-marker {
  display: none;
}

.pdf-viewer {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #eef4f8;
  border: 1px solid #d7e0e7;
}

.pdf-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.pdf-page-label {
  font-size: 0.9rem;
}

.pdf-page-window {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: auto;
  aspect-ratio: 612 / 792;
  overflow: auto;
  padding: 0.75rem;
  background: #dfe8ee;
}

.pdf-viewer canvas {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: white;
  box-shadow: 0 1px 3px rgb(0 0 0 / 15%);
}

