:root {
  --paper: #ffffff;
  --ink: #111111;
  --hush: #7a7a7a;
  --focus: #111111;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
}

a {
  color: inherit;
}

.picker {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 48px 24px;
}

.choice {
  text-decoration: none;
  color: var(--ink);
  font-family: Syne, "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
}

.choice:hover,
.choice:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.choice:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.site-foot {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  text-align: right;
  color: var(--hush);
  font-size: 11px;
  letter-spacing: 0.08em;
  writing-mode: horizontal-tb;
  max-width: 12rem;
  line-height: 1.35;
  z-index: 2;
}

.vm-chrome {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.vm-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  font-size: 12px;
}

.vm-bar a {
  text-underline-offset: 0.15em;
}

.vm-title {
  font-family: Syne, "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.vm-stage {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 16px 40px;
}

html.graphic .vm-stage {
  align-items: center;
  padding: 24px 16px 32px;
}

#term_wrap {
  margin: 0;
  resize: both;
  overflow: hidden;
}

html.graphic #term_wrap {
  resize: none;
}

html.graphic #term_bar,
html.no-files #term_bar {
  display: none;
}

#term_bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 4px 0 0;
}

@media (max-width: 800px) {
  .picker {
    gap: 16px;
  }

  .choice {
    font-size: clamp(1.2rem, 6vw, 1.7rem);
  }

  .site-foot {
    right: 14px;
    max-width: 9rem;
  }

  .vm-bar {
    flex-wrap: wrap;
  }
}
